1
0
Fork 0
zsh/bearstech.zsh

14 lines
450 B
Bash
Raw Normal View History

2017-04-06 16:26:30 +02:00
# Some exports
2024-12-09 17:42:00 +01:00
export INFRA=/home/${USER}/dev/bearstech/infra
export PATH=$INFRA/bin:$INFRA/service/xen:$PATH
2017-04-06 16:26:30 +02:00
# Everyday aliases
2024-12-09 17:42:00 +01:00
bt-alerts() {ssh root@${1:-pidou} monshow | grep -v "none$"}
2022-07-02 13:50:12 +02:00
bt-release() {ssh root@$1 cat /etc/debian_version}
2017-04-06 16:26:30 +02:00
2018-04-25 15:30:02 +02:00
# Some completion functions
_complete_bt-host() {reply=($(ls $INFRA/host))}
compctl -K _complete_bt-host bt-dom0
2024-12-09 17:42:00 +01:00
compctl -K _complete_bt-host infra host
2018-04-25 15:30:02 +02:00
compctl -K _complete_bt-host bt-release