lf, add fish cd-alias
This commit is contained in:
parent
9978fb7921
commit
b16fb47719
2 changed files with 19 additions and 3 deletions
|
|
@ -10,6 +10,13 @@
|
|||
config = lib.mkIf config.lf.enable {
|
||||
xdg.configFile."lf/icons".source = ./icons;
|
||||
|
||||
fish.extraFunctions = lib.mkIf config.fish.enable {
|
||||
lf = {
|
||||
body = ''cd "$(command ${pkgs.lf}/bin/lf -print-last-dir "$argv")"'';
|
||||
wraps = "${pkgs.lf}/bin/lf";
|
||||
};
|
||||
};
|
||||
|
||||
programs.lf = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue