various: update shell init and move around aliases

This commit is contained in:
2026-09-15 12:16:05 -04:00
parent db627ed56e
commit b51058d250
3 changed files with 37 additions and 4 deletions
+23 -1
View File
@@ -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
'';
};