feat(shell-aliases): break out to separate module to ensure aliases can be used over all shells
This commit is contained in:
parent
384b9cc0bb
commit
24d55a33e8
3 changed files with 28 additions and 25 deletions
|
|
@ -15,6 +15,7 @@
|
||||||
"gh"
|
"gh"
|
||||||
"git"
|
"git"
|
||||||
"lazygit"
|
"lazygit"
|
||||||
|
"shell-aliases"
|
||||||
"starship"
|
"starship"
|
||||||
"yazi"
|
"yazi"
|
||||||
"zoxide"
|
"zoxide"
|
||||||
|
|
|
||||||
|
|
@ -9,31 +9,6 @@
|
||||||
interactiveShellInit = ''
|
interactiveShellInit = ''
|
||||||
set fish_greeting
|
set fish_greeting
|
||||||
'';
|
'';
|
||||||
shellAliases = {
|
|
||||||
# keep-sorted start
|
|
||||||
",cat" = "bat";
|
|
||||||
",curl" = "xh";
|
|
||||||
",cut" = "choose";
|
|
||||||
",df" = "duf";
|
|
||||||
",diff" = "delta";
|
|
||||||
",du" = "dua";
|
|
||||||
",find" = "fd";
|
|
||||||
",grep" = "rga";
|
|
||||||
",ping" = "gping";
|
|
||||||
",ps" = "procs";
|
|
||||||
",sed" = "sd";
|
|
||||||
",ss" = "snitch";
|
|
||||||
",top" = "btm";
|
|
||||||
",unzip" = "ripunzip";
|
|
||||||
"g" = "lazygit";
|
|
||||||
"l" = "eza";
|
|
||||||
"la" = "eza -a";
|
|
||||||
"ls" = "eza";
|
|
||||||
"ns" = "nh os switch";
|
|
||||||
"vi" = "nvim";
|
|
||||||
"vim" = "nvim";
|
|
||||||
# keep-sorted end
|
|
||||||
};
|
|
||||||
plugins = [
|
plugins = [
|
||||||
# INFO: Using this to get shell completion for programs added to the path through nix+direnv.
|
# INFO: Using this to get shell completion for programs added to the path through nix+direnv.
|
||||||
# Issue to upstream into direnv:Add commentMore actions
|
# Issue to upstream into direnv:Add commentMore actions
|
||||||
|
|
|
||||||
27
modules/home-manager/features/shell-aliases.nix
Normal file
27
modules/home-manager/features/shell-aliases.nix
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
{
|
||||||
|
home.shellAliases = {
|
||||||
|
# keep-sorted start
|
||||||
|
",cat" = "bat";
|
||||||
|
",curl" = "xh";
|
||||||
|
",cut" = "choose";
|
||||||
|
",df" = "duf";
|
||||||
|
",diff" = "delta";
|
||||||
|
",du" = "dua";
|
||||||
|
",find" = "fd";
|
||||||
|
",grep" = "rga";
|
||||||
|
",ping" = "gping";
|
||||||
|
",ps" = "procs";
|
||||||
|
",sed" = "sd";
|
||||||
|
",ss" = "snitch";
|
||||||
|
",top" = "btm";
|
||||||
|
",unzip" = "ripunzip";
|
||||||
|
"g" = "lazygit";
|
||||||
|
"l" = "eza";
|
||||||
|
"la" = "eza -a";
|
||||||
|
"ls" = "eza";
|
||||||
|
"ns" = "nh os switch";
|
||||||
|
"vi" = "nvim";
|
||||||
|
"vim" = "nvim";
|
||||||
|
# keep-sorted end
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue