summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2014-08-31 03:22:51 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2014-08-31 03:22:51 +0900
commit80efafccebb1104c6a0e3be2b65533ef7a2db825 (patch)
treebf551dd29a3765e4e7ce3dbfd33493b0afafa265 /install
parentb241409e4befcfb2d40184217134c65bd5968991 (diff)
Fix ALT-C keybinding to include symlinked directories
Related #95.
Diffstat (limited to 'install')
-rwxr-xr-xinstall6
1 files changed, 3 insertions, 3 deletions
diff --git a/install b/install
index a85b8ef1..e69b3f33 100755
--- a/install
+++ b/install
@@ -126,7 +126,7 @@ __fsel_tmux() {
__fcd() {
local dir
- dir=$(command find ${1:-*} -path '*/\.*' -prune -o -type d -print 2> /dev/null | fzf +m) && printf 'cd %q' "$dir"
+ dir=$(command find -L ${1:-*} -path '*/\.*' -prune -o -type d -print 2> /dev/null | fzf +m) && printf 'cd %q' "$dir"
}
__use_tmux=0
@@ -214,7 +214,7 @@ bindkey '^T' fzf-file-widget
# ALT-C - cd into the selected directory
fzf-cd-widget() {
- cd "${$(set -o nonomatch; command find * -path '*/\.*' -prune \
+ cd "${$(set -o nonomatch; command find -L * -path '*/\.*' -prune \
-o -type d -print 2> /dev/null | fzf):-.}"
zle reset-prompt
}
@@ -268,7 +268,7 @@ function fzf_key_bindings
end
function __fzf_list_dir
- command find * -path '*/\.*' -prune -o -type d -print 2> /dev/null
+ command find -L * -path '*/\.*' -prune -o -type d -print 2> /dev/null
end
function __fzf_escape