1
0
Fork 0
zsh/bearstech.zsh

20 lines
888 B
Bash
Raw Normal View History

2017-04-06 16:26:30 +02:00
# Some exports
export INFRA=/home/hybris/dev/bearstech/bearstech/infra
export PATH=$INFRA/bin:$INFRA/../xen:$PATH
# Everyday aliases
bthost() {cat $INFRA/host/$1}
dom0() {awk '/Container:/{ print $2}' ${INFRA}/host/${1}}
alerts() {ssh root@pidou monshow | grep -v "none$" | grep -v "^ " | grep -v "^$"}
tickets() {curl "https://maudin:$(/home/hybris/.scripts/keepcli -p Dashbeard)@dashbeard.bearstech.com/api/dashbeard.txt"}
vpn-bear() {for i in $(nmcli con | grep vpn | grep -v -- -- | cut -d' ' -f1); do nmcli con down $i; done; nmcli con up bearstech}
# Google Cloud
# The next line updates PATH for the Google Cloud SDK.
source '/home/hybris/dev/bearstech/google-cloud-sdk/path.zsh.inc'
# The next line enables shell command completion for gcloud.
source '/home/hybris/dev/bearstech/google-cloud-sdk/completion.zsh.inc'
2017-05-24 17:25:11 +02:00
# OVH
source '/home/hybris/dev/bearstech/ovh.sh'