blob: e4b43370c74a6e6955ef8305f65ba1ca10c62022 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
fzf-change-dir() {
local result=$(find -type d | fzf);
if ! [[ -z "$result" ]]; then
cd "$result"
fi
zle send-break
}
zle -N fzf-change-dir;
bindkey '^P' fzf-change-dir;
|