Update README and install script

- Added examples: fbr and fco
- Always use local variables
This commit is contained in:
Junegunn Choi
2014-03-14 17:46:55 +09:00
parent c6acb2a639
commit f4c5aa03d7
2 changed files with 24 additions and 4 deletions

View File

@@ -111,7 +111,8 @@ __fsel() {
}
__fcd() {
DIR=$(find ${1:-*} -path '*/\.*' -prune -o -type d -print 2> /dev/null | fzf) && printf 'cd %q' "$DIR"
local dir
dir=$(find ${1:-*} -path '*/\.*' -prune -o -type d -print 2> /dev/null | fzf) && printf 'cd %q' "$dir"
}
if [ -z "$(set -o | grep '^vi.*on')" ]; then