mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[nix] Add a shell function for updating Nix
This commit is contained in:
parent
8917a49ad7
commit
a02a00d437
1 changed files with 8 additions and 0 deletions
|
|
@ -13,6 +13,14 @@
|
||||||
export PATH="$PATH:$HOME/.npm-packages/bin"
|
export PATH="$PATH:$HOME/.npm-packages/bin"
|
||||||
export FRENYARD_SCALE=2.40
|
export FRENYARD_SCALE=2.40
|
||||||
export RETHINK_API="https://rethink.alyxia.dev"
|
export RETHINK_API="https://rethink.alyxia.dev"
|
||||||
|
|
||||||
|
function violent-update() {
|
||||||
|
# <https://github.com/adryd325/dotfiles/blob/c52d10f0cb4b54ee46e2ac5b01b8be9f8d57973d/install.sh#L17>
|
||||||
|
sudo -v; while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
|
||||||
|
cd "$HOME/.dotfiles/nix";
|
||||||
|
sudo nix-channel --update && nix-channel --update;
|
||||||
|
sudo nix-env -u;
|
||||||
|
}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue