all repos — nixfiles @ f0f628fc2c99ee387dc729c09ebde77dc6ec9644

System and user configuration, managed by nix and home-manager

which -> command -v http://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script/677212#677212 TL;DR `command` is a POSIX-specified builtin. `which` is unreliable.

Alan Pearce
commit

f0f628fc2c99ee387dc729c09ebde77dc6ec9644

parent

f8d667341977a445fd701a07112b97896b0ce1f9

1 file changed, 1 insertion(+), 1 deletion(-)

jump to
M hooks/post-up/emacshooks/post-up/emacs
@@ -1,6 +1,6 @@
#!/bin/sh -EMACS_COMMAND=$(which Emacs || which emacs) +EMACS_COMMAND=$(command -v Emacs || command -v emacs) if [[ -s $EMACS_COMMAND ]] then