minor changes, add ansible log path
This commit is contained in:
parent
0da51643c5
commit
d9d906cce2
2 changed files with 7 additions and 7 deletions
|
|
@ -4,11 +4,10 @@ export PATH=$INFRA/bin:$INFRA/../xen:$PATH
|
|||
|
||||
# Everyday aliases
|
||||
bt-alerts() {ssh root@pidou monshow | grep -v "none$" | grep -v "^ " | grep -v "^$"}
|
||||
bt-dom0() {awk '/Container:/{ print $2}' ${INFRA}/host/${1}}
|
||||
bt-each() {$INFRA/bin/foreach $@}
|
||||
bt-host() {cat $INFRA/host/$1}
|
||||
bt-known_hosts() {scp cloud@pompon:.ssh/known_hosts ~/.ssh/known_hosts.bearstech}
|
||||
bt-release() {ssh root@$1 cat /etc/debian_version}
|
||||
bt-tickets() {echo "Tickets:$(curl -s "https://maudin:$(/home/hybris/.scripts/keepcli -p Dashbeard)@dashbeard.bearstech.com/api/dashbeard.txt")"}
|
||||
|
||||
# Google Cloud
|
||||
# The next line updates PATH for the Google Cloud SDK.
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ dualscreen() {[ $# -eq 1 ] && xrandr --auto && xrandr --output $1 --primary
|
|||
e() {emacsclient -n $@ > /dev/null 2>&1}
|
||||
tramp() {emacsclient -n $(for x in $@; do echo /root@$x:README; done) > /dev/null 2>&1}
|
||||
fd() {fdfind -H -I -L $@}
|
||||
ips() {ssh ubnt@unifi-flux-capacitor curl -q --interface eth0 ipinfo.io 2> /dev/null | jq -r '.ip'; ssh ubnt@unifi-flux-capacitor curl -q --interface eth2 ipinfo.io 2> /dev/null | jq -r '.ip'}
|
||||
ips() {ssh ubnt@unifi-flux-capacitor curl -q --interface eth0 ipinfo.io 2> /dev/null | jq -r '.ip'; ssh ubnt@unifi-flux-capacitor curl -q --interface eth1 ipinfo.io 2> /dev/null | jq -r '.ip'}
|
||||
unifi-balance() {ssh ubnt@192.168.42.1 /opt/vyatta/bin/vyatta-op-cmd-wrapper 'show load-balance watchdog' 2> /dev/null}
|
||||
j() {if [ $# -eq 0 ]; then marks; else jump $@; fi}
|
||||
loop() {while [ 1 ]; do sh -c "$@"; done}
|
||||
|
|
@ -35,6 +35,7 @@ bindkey "^[Od" backward-word
|
|||
bindkey "^[Oc" forward-word
|
||||
|
||||
# Some exports
|
||||
export ANSIBLE_LOGPATH=/var/log/ansible-bearstech/${role}-$(date +%Y%m%d%H%M%S).log
|
||||
export EDITOR=emacsclient
|
||||
export LESS=-cex2MRX
|
||||
export LESSOPEN='|~/.lessfilter %s'
|
||||
|
|
|
|||
Loading…
Reference in a new issue