Add fzf and readline vi mode
This commit is contained in:
parent
6b66695908
commit
b35efa261a
|
@ -42,4 +42,27 @@
|
|||
style = "header,rule,snip,changes";
|
||||
};
|
||||
};
|
||||
|
||||
programs.readline = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
set editing-mode vi
|
||||
set show-all-if-ambiguous on
|
||||
set editing-mode vi
|
||||
|
||||
set keymap vi-command
|
||||
# these are for vi-command mode
|
||||
"\e[A": history-search-backward
|
||||
"\e[B": history-search-forward
|
||||
j: history-search-forward
|
||||
k: history-search-backward
|
||||
set keymap vi-insert
|
||||
# these are for vi-insert mode
|
||||
"\e[A": history-search-backward
|
||||
"\e[B": history-search-forward
|
||||
'';
|
||||
};
|
||||
|
||||
programs.fzf.enable = true;
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue