Add shell shortcut to pull and update nixos config

This commit is contained in:
Evie Litherland-Smith 2023-05-16 15:58:12 +01:00
parent 745ace9d82
commit 6131cefaf3
3 changed files with 13 additions and 3 deletions

5
home/env/bash.nix vendored
View file

@ -3,7 +3,10 @@
{
programs.bash = {
enable = true;
shellAliases = { lg = "lazygit"; };
shellAliases = {
lg = "lazygit";
nixos-update = "sudo git -c /etc/nixos/config pull && sudo nixos-rebuild switch";
};
};
programs.keychain.enableBashIntegration = true;
programs.starship.enableBashIntegration = true;

5
home/env/fish.nix vendored
View file

@ -3,7 +3,10 @@
{
programs.fish = {
enable = true;
shellAbbrs = { lg = "lazygit"; };
shellAbbrs = {
lg = "lazygit";
nixos-update = "sudo git -c /etc/nixos/config pull && sudo nixos-rebuild switch";
};
};
programs.keychain.enableFishIntegration = true;
programs.starship.enableFishIntegration = true;

6
home/env/zsh.nix vendored
View file

@ -3,7 +3,11 @@
{
programs.zsh = {
enable = true;
shellAliases = { ll = "ls -l"; lg = "lazygit"; };
shellAliases = {
ll = "ls -l";
lg = "lazygit";
nixos-update = "sudo git -c /etc/nixos/config pull && sudo nixos-rebuild switch";
};
history = {
size = 10000;
path = "${config.xdg.dataHome}/zsh/history";