diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2012-03-22 23:56:30 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2012-03-22 23:56:30 +1300 |
commit | 216c053b02368aae37da7eba4b94765d7ab249b7 (patch) | |
tree | c3de111b4f90fe11c4ef767dd9945a096c63b051 /bash | |
parent | Swap order of history appending calls. (diff) | |
download | dotfiles-216c053b02368aae37da7eba4b94765d7ab249b7.tar.gz dotfiles-216c053b02368aae37da7eba4b94765d7ab249b7.zip |
Simpler syntax for editor existence check.
Diffstat (limited to 'bash')
-rw-r--r-- | bash/bashrc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bash/bashrc b/bash/bashrc index 81fea1fa..740af645 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -66,10 +66,7 @@ stty -ixon setterm -bfreq 0 # Use vi as my text editor, if available. -hash vi &>/dev/null -if [ $? -eq 0 ]; then - export EDITOR=vi -fi +hash vi &>/dev/null && export EDITOR=vi # Terminal-specific settings. case "$TERM" in |