summaryrefslogtreecommitdiffstats
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
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 '')
-rw-r--r--.config/zsh/alias.zsh18
-rwxr-xr-x.local/bin/vps4
2 files changed, 18 insertions, 4 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)
}
diff --git a/.local/bin/vps b/.local/bin/vps
index 564d7c0..231d1d3 100755
--- a/.local/bin/vps
+++ b/.local/bin/vps
@@ -9,14 +9,14 @@ rsync -avh --no-o --no-g --progress --delete-after \
--exclude 'LICENSE' \
--exclude 'asm-example.cgi' \
"$HOME"/dev/web/joe-www/ \
- root@$serv_addr:/usr/local/www/jozan
+ root@$serv_addr:/var/jail/www/usr/local/www/jozan
# joe-gemini
rsync -avh --no-o --no-g --progress --delete-after \
--exclude '.*' \
--exclude 'README.org' \
--exclude 'LICENSE' \
"$HOME"/dev/web/joe-gemini/ \
- root@$serv_addr:/usr/local/gemini
+ root@$serv_addr:/var/jail/www/usr/local/gemini
# gitjoe-cgit
rsync -avh --no-o --no-g --progress --delete-after \
--exclude 'cgit.cgi' \