Manage fish with home-manager
I patched home-manager locally to support fzf keybindings for fish. I will PR this into home-manager, but I haven't yet, which means that my home.nix file depends on my local ~/home-manager.
This commit is contained in:
parent
fe61dee511
commit
2eb9259a1b
3 changed files with 113 additions and 249 deletions
|
|
@ -71,9 +71,40 @@
|
|||
};
|
||||
};
|
||||
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
c = "xclip -selection clipboard -i";
|
||||
p = "xclip -selection clipboard -o";
|
||||
cat = "bat";
|
||||
rgh = "rg --hidden";
|
||||
fdh = "fd --hidden";
|
||||
tpr = "tput reset";
|
||||
ls = "exa --sort=type";
|
||||
ll = "exa --long --sort=type";
|
||||
la = "exa --long --all --sort=type";
|
||||
gst = "git status";
|
||||
gsh = "git show HEAD";
|
||||
gpf = "git push --force-with-lease";
|
||||
gd = "git diff";
|
||||
};
|
||||
shellAbbrs = {
|
||||
sys = "systemctl";
|
||||
sysu = "systemctl --user";
|
||||
};
|
||||
promptInit = builtins.readFile ../fish/prompt.fish;
|
||||
};
|
||||
|
||||
programs.fzf = rec {
|
||||
enable = true;
|
||||
defaultCommand = "fd --hidden --follow --exclude '.git'";
|
||||
fileWidgetCommand = defaultCommand;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
|
||||
programs.direnv = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
};
|
||||
|
||||
##############################################################################
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue