various: update shell init and move around aliases
This commit is contained in:
+23
-1
@@ -7,13 +7,35 @@ in
|
||||
inputs.lazyvim.homeManagerModules.default
|
||||
];
|
||||
|
||||
home.shellAliases = {
|
||||
l = "ls -alh";
|
||||
ll = "ls -l";
|
||||
ls = "ls --color=tty";
|
||||
gs = "git status";
|
||||
ga = "git add";
|
||||
gc = "git commit -m";
|
||||
gpll = "git pull";
|
||||
gpsh = "git push";
|
||||
ff = "clear;fastfetch --logo nixos2";
|
||||
ffw = "clear;fastfetch --logo nixos2;printf '\n';weather kmco";
|
||||
wget = "wget --hsts-file=$XDG_DATA_HOME/wget-hsts";
|
||||
nix-rebuild =
|
||||
if pkgs.stdenv.hostPlatform.isDarwin then
|
||||
"sudo darwin-rebuild switch"
|
||||
else
|
||||
"sudo nixos-rebuild switch";
|
||||
};
|
||||
|
||||
programs = {
|
||||
bash = {
|
||||
enable = true;
|
||||
|
||||
# Display fastfetch on shell open.
|
||||
# Import SSH identities and
|
||||
# display fastfetch on shell open.
|
||||
initExtra = ''
|
||||
eval "$(devenv hook bash)"
|
||||
[ -f $HOME/.ssh/id_floturcocantsee@daguerro.net ] && ssh-add $HOME/.ssh/id_floturcocantsee@daguerro.net
|
||||
[ -f $HOME/.ssh/id_rsa ] && ssh-add $HOME/.ssh/id_rsa
|
||||
clear;fastfetch
|
||||
'';
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user