lf, change lfcd to lf in zshrc
This commit is contained in:
parent
0508cddeb0
commit
0336466d64
1 changed files with 4 additions and 4 deletions
|
|
@ -18,11 +18,11 @@
|
||||||
history.path = "${config.xdg.dataHome}/zsh/history";
|
history.path = "${config.xdg.dataHome}/zsh/history";
|
||||||
initExtra = let
|
initExtra = let
|
||||||
lf = lib.optionalString config.lf.enable ''
|
lf = lib.optionalString config.lf.enable ''
|
||||||
# Lf change directory command
|
# Lf changes directory
|
||||||
lfcd () {
|
lf () {
|
||||||
cd "$(command lf -print-last-dir "$@")"
|
cd "$(command ${pkgs.lf}/bin/lf -print-last-dir "$@")"
|
||||||
}
|
}
|
||||||
bindkey -s '^o' 'lfcd\n'
|
bindkey -s '^o' 'lf\n'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
in lf + ''
|
in lf + ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue