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 = {
|
programs.bash = {
|
||||||
enable = true;
|
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.keychain.enableBashIntegration = true;
|
||||||
programs.starship.enableBashIntegration = true;
|
programs.starship.enableBashIntegration = true;
|
||||||
|
|
5
home/env/fish.nix
vendored
5
home/env/fish.nix
vendored
|
@ -3,7 +3,10 @@
|
||||||
{
|
{
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
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.keychain.enableFishIntegration = true;
|
||||||
programs.starship.enableFishIntegration = true;
|
programs.starship.enableFishIntegration = true;
|
||||||
|
|
6
home/env/zsh.nix
vendored
6
home/env/zsh.nix
vendored
|
@ -3,7 +3,11 @@
|
||||||
{
|
{
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
enable = true;
|
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 = {
|
history = {
|
||||||
size = 10000;
|
size = 10000;
|
||||||
path = "${config.xdg.dataHome}/zsh/history";
|
path = "${config.xdg.dataHome}/zsh/history";
|
||||||
|
|
Loading…
Reference in a new issue