Add shell shortcut to pull and update nixos config
This commit is contained in:
parent
745ace9d82
commit
6131cefaf3
5
home/env/bash.nix
vendored
5
home/env/bash.nix
vendored
|
@ -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
5
home/env/fish.nix
vendored
|
@ -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
6
home/env/zsh.nix
vendored
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue