Add fish wrapper and make it my default shell
This commit is contained in:
parent
b81483f2a1
commit
cd884602d9
4 changed files with 50 additions and 3 deletions
9
wrappers/fish/config.fish
Normal file
9
wrappers/fish/config.fish
Normal file
|
@ -0,0 +1,9 @@
|
|||
# Abbreviations
|
||||
abbr --add --global -- flake-update 'nix flake lock --update-input'
|
||||
abbr --add --global -- ns 'nix shell'
|
||||
abbr --add --global -- nss 'nix search'
|
||||
abbr --add --global -- vim hx
|
||||
|
||||
# Aliases
|
||||
alias cat bat
|
||||
alias l 'eza -lah --group-directories-first --icons'
|
15
wrappers/fish/default.nix
Normal file
15
wrappers/fish/default.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{lib, pkgs, ...}: {
|
||||
# TODO: Fix once https://github.com/viperML/wrapper-manager/issues/14 is resolved
|
||||
wrappers.fish = {
|
||||
basePackage = pkgs.runCommandNoCC "fish-binary" {} ''
|
||||
install -D -m555 ${lib.getExe pkgs.fish} "$out/bin/fish"
|
||||
'';
|
||||
|
||||
prependFlags = [
|
||||
"-C"
|
||||
"source ${./config.fish}"
|
||||
];
|
||||
|
||||
pathAdd = with pkgs; [bat eza];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue