diff options
| author | 2015-09-12 20:36:18 +0000 | |
|---|---|---|
| committer | 2015-09-12 20:36:18 +0000 | |
| commit | 3cf7a66a66f31e60e14665156c5e19d09a1f7b95 (patch) | |
| tree | 81bf9dc3970d9f962e1060feb0d22c488a68f5b5 | |
| parent | 50cc959ff51fc1fb2aa1fbc58a2d8399bf2c5a7c (diff) | |
| download | dotfiles-3cf7a66a66f31e60e14665156c5e19d09a1f7b95.tar.gz dotfiles-3cf7a66a66f31e60e14665156c5e19d09a1f7b95.tar.bz2 dotfiles-3cf7a66a66f31e60e14665156c5e19d09a1f7b95.zip | |
Fixed whereis syntax on FreeBSD
| -rwxr-xr-x | bash/.bashrc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/.bashrc b/bash/.bashrc index 5edd73a..73e42a9 100755 --- a/bash/.bashrc +++ b/bash/.bashrc | |||
| @@ -89,7 +89,7 @@ elif exists vi; then | |||
| 89 | fi | 89 | fi |
| 90 | 90 | ||
| 91 | vim() { | 91 | vim() { |
| 92 | vim_bin=$(whereis -B $(sed "s/:/ /g" <(echo $PATH)) -b $EDITOR | cut -d' ' -f2-) | 92 | vim_bin=$(whereis -b -B $(sed "s/:/ /g" <(echo $PATH)) -f $EDITOR | cut -d' ' -f2-) |
| 93 | if [[ -z $@ ]]; then | 93 | if [[ -z $@ ]]; then |
| 94 | $vim_bin | 94 | $vim_bin |
| 95 | elif [[ -d $@ ]]; then | 95 | elif [[ -d $@ ]]; then |
