summaryrefslogtreecommitdiffstats
path: root/.config
diff options
context:
space:
mode:
authorJoe <rrbo@proton.me>2023-02-14 09:46:10 +0100
committerJoe <rrbo@proton.me>2023-02-14 09:46:10 +0100
commitf1641301e878927d0ec41c43675f932257805f1f (patch)
treea4434cb5cd529fc60ef8c04c248bee15226b24e8 /.config
parentup (diff)
downloaddotfiles-bsd-f1641301e878927d0ec41c43675f932257805f1f.tar.gz
dotfiles-bsd-f1641301e878927d0ec41c43675f932257805f1f.tar.bz2
dotfiles-bsd-f1641301e878927d0ec41c43675f932257805f1f.tar.xz
dotfiles-bsd-f1641301e878927d0ec41c43675f932257805f1f.tar.zst
dotfiles-bsd-f1641301e878927d0ec41c43675f932257805f1f.zip
up
Diffstat (limited to '.config')
-rw-r--r--.config/zsh/alias.zsh18
1 files changed, 16 insertions, 2 deletions
diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh
index c191479..a48056f 100644
--- a/.config/zsh/alias.zsh
+++ b/.config/zsh/alias.zsh
@@ -199,8 +199,22 @@ alias nb='newsboat' \
nsxiv='nsxiv -b -a' \
pinfo='pkg info -x' \
psearch='pkg search' \
- pinstall='doas pkg install' \
- update='doas pkg update && doas pkg upgrade'
+ pinstall='doas pkg install'
+update() {
+ case $(hostname -s) in
+ mother)
+ yay
+ ;;
+ po-rbo)
+ doas apt update && doas apt upgrade
+ nix-channel --update
+ nix-env -u
+ ;;
+ fbsd-tp)
+ doas pkg update && doas pkg upgrade
+ ;;
+ esac
+}
nixi() {
nix-env -iA $(for i in $@; do printf "nixpkgs.%s " "$i"; done)
}