From aa32fd08ecec2e3eec071e5e475cb4def4ff2a9b Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 13 Oct 2022 18:48:37 +0200 Subject: cool --- .config/zsh/alias.zsh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to '.config/zsh') diff --git a/.config/zsh/alias.zsh b/.config/zsh/alias.zsh index c3839ca..a180727 100644 --- a/.config/zsh/alias.zsh +++ b/.config/zsh/alias.zsh @@ -63,16 +63,18 @@ alias \ dgit='git --git-dir=$HOME/docs/dotfiles-bsd --work-tree=$HOME' \ confgit='git --git-dir=$HOME/docs/conffiles-bsd --work-tree=/' bssh() { + user='rbousset' + host='bastion' if [ "$1" != "--osh" ]; then tmp="$1" shift 1 if ! grep -F '@' <<< "$tmp" >/dev/null 2>&1; then - ssh rbousset@bastion -t -- root@"$tmp" $* + ssh $user@$host -t -- root@"$tmp" $* else - ssh rbousset@bastion -t -- "$tmp" $* + ssh $user@$host -t -- "$tmp" $* fi else - ssh rbousset@bastion -t -- $* + ssh $user@$host -t -- $* fi } upsrc() { -- cgit v1.2.3