mirror of
https://github.com/srid/nixos-config.git
synced 2026-02-23 05:15:19 +08:00
common shell
This commit is contained in:
parent
4484c4506a
commit
870ea0c919
3 changed files with 14 additions and 15 deletions
|
|
@ -127,10 +127,7 @@
|
|||
];
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
g = "${pkgs.git}/bin/git";
|
||||
};
|
||||
};
|
||||
} // (import ./home/shellcommon.nix);
|
||||
home.stateVersion = "21.11";
|
||||
};
|
||||
}
|
||||
|
|
|
|||
12
home.nix
12
home.nix
|
|
@ -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
12
home/shellcommon.nix
Normal 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 = { };
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue