ZSH: add key binding to skip words
This commit is contained in:
parent
2f925428ed
commit
741c17aac5
|
@ -1,5 +1,5 @@
|
|||
# Additional ZSH settings via Home Manager
|
||||
{ pkgs, ... }:
|
||||
{ ... }:
|
||||
{
|
||||
programs = {
|
||||
# Set up Starship
|
||||
|
@ -14,10 +14,13 @@
|
|||
syntaxHighlighting.enable = true;
|
||||
history.ignoreDups = true; # Do not enter command lines into the history list if they are duplicates of the previous event.
|
||||
initExtra = ''
|
||||
function set_win_title(){
|
||||
echo -ne "\033]0; $(basename "$PWD") \007"
|
||||
}
|
||||
precmd_functions+=(set_win_title)
|
||||
function set_win_title(){
|
||||
echo -ne "\033]0; $(basename "$PWD") \007"
|
||||
}
|
||||
precmd_functions+=(set_win_title)
|
||||
|
||||
bindkey "^[[1;5C" forward-word
|
||||
bindkey "^[[1;5D" backward-word
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue