Permalink
Browse files

[aliases] Smart-ness about connecting to briar* servers

  • Loading branch information...
1 parent a0bbae8 commit 5e317e49d2663e62c4d4306a4aed4d763d23dc99 Dean Strelau committed Nov 6, 2009
Showing with 10 additions and 2 deletions.
  1. +10 −2 bash_aliases
View
12 bash_aliases
@@ -59,8 +59,16 @@ branch_point() {
# SERVERS
bp() {
- ssh briarpatch-0${1}.vm.brightbox.net
+ if [ $1 -lt 8 ]
+ then ssh mint@briarpatch-0${1}.vm.brightbox.net
+ else
+ ssh dean@briarpatch-0${1}.vm.brightbox.net
+ fi
}
by() {
- ssh briaryear-0${1}.vm.brightbox.net
+ if [ ! $1 -eq 18 ]
+ then ssh mint@briaryear-0${1}.vm.brightbox.net
+ else
+ ssh dean@briaryear-0${1}.vm.brightbox.net
+ fi
}

0 comments on commit 5e317e4

Please sign in to comment.