1
0
Fork 0

ZSH: add key binding to skip words

This commit is contained in:
Aires 2024-10-18 11:45:40 -04:00
parent 2f925428ed
commit 741c17aac5

View file

@ -1,5 +1,5 @@
# Additional ZSH settings via Home Manager # Additional ZSH settings via Home Manager
{ pkgs, ... }: { ... }:
{ {
programs = { programs = {
# Set up Starship # Set up Starship
@ -14,10 +14,13 @@
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
history.ignoreDups = true; # Do not enter command lines into the history list if they are duplicates of the previous event. history.ignoreDups = true; # Do not enter command lines into the history list if they are duplicates of the previous event.
initExtra = '' initExtra = ''
function set_win_title(){ function set_win_title(){
echo -ne "\033]0; $(basename "$PWD") \007" echo -ne "\033]0; $(basename "$PWD") \007"
} }
precmd_functions+=(set_win_title) precmd_functions+=(set_win_title)
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
''; '';
}; };
}; };