wrappers/fish: add zoxide and direnv properly

This commit is contained in:
Nikodem Rabuliński 2024-02-02 00:35:18 +01:00
parent b03e1e7080
commit 03fcd581a9
3 changed files with 25 additions and 18 deletions

View file

@ -21,7 +21,6 @@ in {
];
programs.fish.enable = true;
programs.direnv.enable = true;
programs.nix-index.enable = true;
programs.ssh.enable = true;
programs.git = {

View file

@ -1,15 +1,25 @@
# Abbreviations
## nix
abbr --add --global -- ns 'nix shell'
abbr --add --global -- nss 'nix search'
abbr --add --global -- flake-update 'nix flake lock --update-input'
## git
abbr --add --global -- gs 'git status'
abbr --add --global -- gp 'git pull'
abbr --add --global -- gc 'git checkout'
abbr --add --global -- ga 'git add'
abbr --add --global -- gr 'git rebase'
status --is-interactive
and begin
# Aliases
alias cat bat
alias l 'eza -lah --group-directories-first --icons'
# Abbreviations
## nix
abbr --add --global -- ns 'nix shell'
abbr --add --global -- nss 'nix search'
abbr --add --global -- flake-update 'nix flake lock --update-input'
## git
abbr --add --global -- gs 'git status'
abbr --add --global -- gp 'git pull'
abbr --add --global -- gc 'git checkout'
abbr --add --global -- ga 'git add'
abbr --add --global -- gr 'git rebase'
abbr --add --global -- gd 'git diff'
abbr --add --global -- gl 'git log'
# Aliases
alias cat bat
alias l 'eza -lah --group-directories-first --icons'
zoxide init fish | source
direnv hook fish | source
end

View file

@ -22,14 +22,12 @@
source ${./config.fish}
source ${./prompt.fish}
${lib.getExe pkgs.zoxide} init fish | source
'';
in [
"-C"
"source ${config-fish}"
];
pathAdd = with pkgs; [eza bat fzf ripgrep];
pathAdd = with pkgs; [eza bat fzf ripgrep zoxide direnv];
};
}