mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 06:17:00 +08:00
riot: shortcuts i,x,j
This commit is contained in:
parent
2ecdf945a9
commit
dbba66ccd0
|
@ -29,6 +29,14 @@ get_server_meta() {
|
|||
RET_JUMP_SERVER="" # optional
|
||||
# body
|
||||
local remote="$1"
|
||||
# shortcuts
|
||||
if [[ "$remote" == "i" ]]; then
|
||||
remote="sir0.ibd"
|
||||
elif [[ "$remote" == "x" ]]; then
|
||||
remote="bj1.ibd"
|
||||
elif [[ "$remote" == "j" ]]; then
|
||||
remote="sir0.ibd:36122"
|
||||
fi
|
||||
# if in the form user@...
|
||||
if [[ "$remote" == *@* ]]; then
|
||||
RET_USERNAME=${remote%%@*}
|
||||
|
|
Loading…
Reference in New Issue
Block a user