Parcourir la source

switch lfcd from ctrl+o to ctrl+p

Noah Vogt il y a 1 jour
Parent
commit
327cb1ca3c
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      dot-config/zsh/.zshrc

+ 2 - 2
dot-config/zsh/.zshrc

@@ -46,7 +46,7 @@ zle -N zle-line-init
 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.
 
-# Use lf to switch directories and bind it to ctrl-o
+# Use lf to switch directories and bind it to ctrl-p
 lfcd () {
     tmp="$(mktemp)"
     lfub -last-dir-path="$tmp" "$@"
@@ -56,7 +56,7 @@ lfcd () {
         [ -d "$dir" ] && [ "$dir" != "$(pwd)" ] && cd "$dir"
     fi
 }
-bindkey -s '^o' 'lfcd\n'
+bindkey -s '^p' 'lfcd\n'
 
 # Edit line in vim with ctrl-e:
 autoload edit-command-line; zle -N edit-command-line