summaryrefslogtreecommitdiffstats
path: root/.config/zsh
diff options
context:
space:
mode:
authorJoe <rrbo@proton.me>2022-10-26 10:27:21 +0200
committerJoe <rrbo@proton.me>2022-10-26 10:27:21 +0200
commit7b67e94144c8ab66d652f096e09d017385ef191e (patch)
tree9eb1a7de4ae5754964cd401c8b007ea5a2fa0a4e /.config/zsh
parentbssh bup (diff)
downloaddotfiles-bsd-7b67e94144c8ab66d652f096e09d017385ef191e.tar.gz
dotfiles-bsd-7b67e94144c8ab66d652f096e09d017385ef191e.tar.bz2
dotfiles-bsd-7b67e94144c8ab66d652f096e09d017385ef191e.tar.xz
dotfiles-bsd-7b67e94144c8ab66d652f096e09d017385ef191e.tar.zst
dotfiles-bsd-7b67e94144c8ab66d652f096e09d017385ef191e.zip
up
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/alias.zsh16
1 files changed, 1 insertions, 15 deletions
diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh
index 4998eca..1ea2690 100644
--- a/.config/zsh/alias.zsh
+++ b/.config/zsh/alias.zsh
@@ -84,21 +84,7 @@ bssh() {
assh() {
user='admin'
host='bastion'
- if [ -z "$1" ]; then
- ssh $user@$host -- --osh
- return
- fi
- if [ "$1" != "--osh" ]; then
- tmp="$1"
- shift 1
- if ! grep -F '@' <<< "$tmp" >/dev/null 2>&1; then
- ssh $user@$host -t -- root@"$tmp" $*
- else
- ssh $user@$host -t -- "$tmp" $*
- fi
- else
- ssh $user@$host -t -- $*
- fi
+ ssh $user@$host -- --osh $*
}
upsrc() {
doas git -C /usr/src pull --ff-only