13 lines
450 B
Bash
13 lines
450 B
Bash
# Some exports
|
|
export INFRA=/home/${USER}/dev/bearstech/infra
|
|
export PATH=$INFRA/bin:$INFRA/service/xen:$PATH
|
|
|
|
# Everyday aliases
|
|
bt-alerts() {ssh root@${1:-pidou} monshow | grep -v "none$"}
|
|
bt-release() {ssh root@$1 cat /etc/debian_version}
|
|
|
|
# Some completion functions
|
|
_complete_bt-host() {reply=($(ls $INFRA/host))}
|
|
compctl -K _complete_bt-host bt-dom0
|
|
compctl -K _complete_bt-host infra host
|
|
compctl -K _complete_bt-host bt-release
|