wrappers/fish: add zoxide and direnv properly
This commit is contained in:
parent
b03e1e7080
commit
03fcd581a9
3 changed files with 25 additions and 18 deletions
|
@ -21,7 +21,6 @@ in {
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.fish.enable = true;
|
programs.fish.enable = true;
|
||||||
programs.direnv.enable = true;
|
|
||||||
programs.nix-index.enable = true;
|
programs.nix-index.enable = true;
|
||||||
programs.ssh.enable = true;
|
programs.ssh.enable = true;
|
||||||
programs.git = {
|
programs.git = {
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
status --is-interactive
|
||||||
|
and begin
|
||||||
|
|
||||||
# Abbreviations
|
# Abbreviations
|
||||||
## nix
|
## nix
|
||||||
abbr --add --global -- ns 'nix shell'
|
abbr --add --global -- ns 'nix shell'
|
||||||
|
@ -9,7 +12,14 @@ abbr --add --global -- gp 'git pull'
|
||||||
abbr --add --global -- gc 'git checkout'
|
abbr --add --global -- gc 'git checkout'
|
||||||
abbr --add --global -- ga 'git add'
|
abbr --add --global -- ga 'git add'
|
||||||
abbr --add --global -- gr 'git rebase'
|
abbr --add --global -- gr 'git rebase'
|
||||||
|
abbr --add --global -- gd 'git diff'
|
||||||
|
abbr --add --global -- gl 'git log'
|
||||||
|
|
||||||
# Aliases
|
# Aliases
|
||||||
alias cat bat
|
alias cat bat
|
||||||
alias l 'eza -lah --group-directories-first --icons'
|
alias l 'eza -lah --group-directories-first --icons'
|
||||||
|
|
||||||
|
zoxide init fish | source
|
||||||
|
direnv hook fish | source
|
||||||
|
|
||||||
|
end
|
||||||
|
|
|
@ -22,14 +22,12 @@
|
||||||
|
|
||||||
source ${./config.fish}
|
source ${./config.fish}
|
||||||
source ${./prompt.fish}
|
source ${./prompt.fish}
|
||||||
|
|
||||||
${lib.getExe pkgs.zoxide} init fish | source
|
|
||||||
'';
|
'';
|
||||||
in [
|
in [
|
||||||
"-C"
|
"-C"
|
||||||
"source ${config-fish}"
|
"source ${config-fish}"
|
||||||
];
|
];
|
||||||
|
|
||||||
pathAdd = with pkgs; [eza bat fzf ripgrep];
|
pathAdd = with pkgs; [eza bat fzf ripgrep zoxide direnv];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue