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 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 = { programs = {
bash = { bash = {
enable = true; enable = true;
# Display fastfetch on shell open. # Import SSH identities and
# display fastfetch on shell open.
initExtra = '' initExtra = ''
eval "$(devenv hook bash)" 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 clear;fastfetch
''; '';
}; };
+9 -2
View File
@@ -61,8 +61,15 @@
l = "ls -alh"; l = "ls -alh";
ll = "ls -l"; ll = "ls -l";
ls = "ls --color=tty"; ls = "ls --color=tty";
ff = "clear;fastfetch"; gs = "git status";
nb = "nix-build"; 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 = "sudo darwin-rebuild switch";
}; };
systemPackages = with pkgs; [ systemPackages = with pkgs; [
+5 -1
View File
@@ -389,10 +389,14 @@ in
l = "ls -alh"; l = "ls -alh";
ll = "ls -l"; ll = "ls -l";
ls = "ls --color=tty"; 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"; ff = "clear;fastfetch --logo nixos2";
ffw = "clear;fastfetch --logo nixos2;printf '\n';weather kmco"; ffw = "clear;fastfetch --logo nixos2;printf '\n';weather kmco";
wget = "wget --hsts-file=$XDG_DATA_HOME/wget-hsts"; wget = "wget --hsts-file=$XDG_DATA_HOME/wget-hsts";
nb = "nix-build";
nix-rebuild = "sudo nixos-rebuild switch"; nix-rebuild = "sudo nixos-rebuild switch";
}; };