common shell

This commit is contained in:
Sridhar Ratnakumar 2022-04-08 22:16:34 -04:00
parent 4484c4506a
commit 870ea0c919
3 changed files with 14 additions and 15 deletions

View file

@ -127,10 +127,7 @@
];
programs.zsh = {
enable = true;
shellAliases = {
g = "${pkgs.git}/bin/git";
};
};
} // (import ./home/shellcommon.nix);
home.stateVersion = "21.11";
};
}

View file

@ -50,16 +50,6 @@ rec {
};
bash = {
enable = true;
shellAliases = {
g = "${pkgs.git}/bin/git";
t = "${pkgs.tig}/bin/tig";
l = "${pkgs.exa}/bin/exa";
ll = "${pkgs.exa}/bin/exa -l";
ls = "l";
pux = "sh -c \"tmux -S $(pwd).tmux attach\"";
pux-iterm = "sh -c \"tmux -S $(pwd).tmux -CC attach\"";
};
sessionVariables = { };
# XXX: These are needed only on non-NixOS Linux (on NixOS, they are broken)
#bashrcExtra = ''
# . ~/.nix-profile/etc/profile.d/nix.sh
@ -70,7 +60,7 @@ rec {
# source "$completion_script"
# done
#'';
};
} // (import ./home/shellcommon.nix);
direnv = {
enable = true;

12
home/shellcommon.nix Normal file
View file

@ -0,0 +1,12 @@
{
shellAliases = {
g = "${pkgs.git}/bin/git";
t = "${pkgs.tig}/bin/tig";
l = "${pkgs.exa}/bin/exa";
ll = "${pkgs.exa}/bin/exa -l";
ls = "l";
pux = "sh -c \"tmux -S $(pwd).tmux attach\"";
pux-iterm = "sh -c \"tmux -S $(pwd).tmux -CC attach\"";
};
sessionVariables = { };
}