aboutsummaryrefslogtreecommitdiffstats
path: root/bash
diff options
context:
space:
mode:
authorGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2015-09-12 20:36:18 +0000
committerGravatar Tom van der Lee <t0m.vd.l33@gmail.com>2015-09-12 20:36:18 +0000
commit3cf7a66a66f31e60e14665156c5e19d09a1f7b95 (patch)
tree81bf9dc3970d9f962e1060feb0d22c488a68f5b5 /bash
parent50cc959ff51fc1fb2aa1fbc58a2d8399bf2c5a7c (diff)
downloaddotfiles-3cf7a66a66f31e60e14665156c5e19d09a1f7b95.tar.gz
dotfiles-3cf7a66a66f31e60e14665156c5e19d09a1f7b95.tar.bz2
dotfiles-3cf7a66a66f31e60e14665156c5e19d09a1f7b95.zip
Fixed whereis syntax on FreeBSD
Diffstat (limited to 'bash')
-rwxr-xr-xbash/.bashrc2
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
89fi 89fi
90 90
91vim() { 91vim() {
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