1
0
Fork 0
zsh/hybris.plugin.zsh

56 lines
1.6 KiB
Bash
Raw Normal View History

2016-02-24 00:18:23 +01:00
# bip at command end
function precmd() {echo -n -e "\a"}
2016-10-03 16:32:42 +02:00
# function preexec() {print -Pn "\e]0;\a"}
2016-02-24 00:18:23 +01:00
# do not share history between terms...
unsetopt share_history
# SSH agent lives for 2 hours
# zstyle :omz:plugins:ssh-agent lifetime 2h
# Scripts files
SCRIPT_DIR=$HOME/.scripts
if [ -d $SCRIPT_DIR ]
then
files=`ls $SCRIPT_DIR`
if [ "x$files" != "x" ]
then
for i in `ls --file-type $SCRIPT_DIR`
do
ALIAS=`echo $i | cut -d. -f1`
alias $ALIAS=$SCRIPT_DIR/$i
done
fi
fi
# Everyday aliases
alias j=jump
alias dnsfix="sudo service bind9 restart"
2016-07-28 14:41:54 +02:00
alias open_ports="sudo netstat -tulpen 2> /dev/null | grep LISTEN"
2016-02-24 00:18:23 +01:00
cless() {for a in $@; do colorize_via_pygmentize $a | less; done}
2016-07-28 14:41:54 +02:00
r() {if [ $# -eq 1 ]; then ssh root@$1; else sudo su -; fi}
health() {/usr/bin/screen -O -S health -c ~/.config/screen_health}
2016-10-03 16:30:05 +02:00
loop() {while [ 1 ]; do sh -c "$@"; done}
2016-02-24 00:18:23 +01:00
# Some exports
export EDITOR=emacsclient
export HISTFILE=~/.zhist
export HISTSIZE=5000
export INFRA=/home/hybris/dev/bearstech/bearstech/infra
export LESS=-cex2MRX
export LESSOPEN='|~/.lessfilter %s'
export LOGCHECK=60
export PATH=/usr/local/bin:$INFRA/bin:/home/hybris/dev/bearstech/bearstech/xen:$PATH
export READNULLCMD=${PAGER:-/usr/bin/pager}
export SAVEHIST=5000
export WATCH=all
export WATCHFMT="%n has %a %l from %M"
2016-07-28 14:41:54 +02:00
grep "^Subject: " /var/spool/mail/hybris | sed 's/^Subject: / * /'
# 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'