zsh: add switch
function
This commit is contained in:
@@ -171,7 +171,7 @@ in
|
|||||||
# see for an example: <https://filipe.kiss.ink/zmv-zsh-rename/>
|
# see for an example: <https://filipe.kiss.ink/zmv-zsh-rename/>
|
||||||
autoload -Uz zmv
|
autoload -Uz zmv
|
||||||
|
|
||||||
HISTORY_IGNORE='(sane-shutdown *|sane-reboot *|rm *|nixos-rebuild.* switch)'
|
HISTORY_IGNORE='(sane-shutdown *|sane-reboot *|rm *|nixos-rebuild.* switch|switch)'
|
||||||
|
|
||||||
# extra aliases
|
# extra aliases
|
||||||
# TODO: move to `shellAliases` config?
|
# TODO: move to `shellAliases` config?
|
||||||
@@ -179,6 +179,10 @@ in
|
|||||||
mkdir -p "$1";
|
mkdir -p "$1";
|
||||||
pushd "$1";
|
pushd "$1";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function switch() {
|
||||||
|
sudo nixos-rebuild --flake . switch;
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
syntaxHighlighting.enable = true;
|
syntaxHighlighting.enable = true;
|
||||||
|
Reference in New Issue
Block a user