summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.config/zsh/alias.zsh8
1 files changed, 5 insertions, 3 deletions
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() {