|
@@ -46,7 +46,7 @@ zle -N zle-line-init
|
|
|
echo -ne '\e[5 q' # Use beam shape cursor on startup.
|
|
echo -ne '\e[5 q' # Use beam shape cursor on startup.
|
|
|
preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt.
|
|
preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt.
|
|
|
|
|
|
|
|
-# Use lf to switch directories and bind it to ctrl-o
|
|
|
|
|
|
|
+# Use lf to switch directories and bind it to ctrl-p
|
|
|
lfcd () {
|
|
lfcd () {
|
|
|
tmp="$(mktemp)"
|
|
tmp="$(mktemp)"
|
|
|
lfub -last-dir-path="$tmp" "$@"
|
|
lfub -last-dir-path="$tmp" "$@"
|
|
@@ -56,7 +56,7 @@ lfcd () {
|
|
|
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
|
|
[ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
|
|
|
fi
|
|
fi
|
|
|
}
|
|
}
|
|
|
-bindkey -s '^o' 'lfcd\n'
|
|
|
|
|
|
|
+bindkey -s '^p' 'lfcd\n'
|
|
|
|
|
|
|
|
# Edit line in vim with ctrl-e:
|
|
# Edit line in vim with ctrl-e:
|
|
|
autoload edit-command-line; zle -N edit-command-line
|
|
autoload edit-command-line; zle -N edit-command-line
|