From f1641301e878927d0ec41c43675f932257805f1f Mon Sep 17 00:00:00 2001 From: Joe Date: Tue, 14 Feb 2023 09:46:10 +0100 Subject: up --- .config/zsh/alias.zsh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to '.config/zsh') 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) } -- cgit v1.2.3