1
0
Fork 0
zsh/hybris.zsh

33 lines
909 B
Bash
Raw Normal View History

2016-02-24 00:18:23 +01:00
# bip at command end
function precmd() {echo -n -e "\a"}
# do not share history between terms...
unsetopt share_history
2018-01-30 17:37:08 +01:00
# Load keychain
keychain -q
2016-02-24 00:18:23 +01:00
# Everyday aliases
2017-03-29 18:03:20 +02:00
cless() {for a in $@; do colorize_via_pygmentize $a | less; done}
e() {emacsclient -n $@ > /dev/null 2>&1}
health() {/usr/bin/screen -O -S health -c ~/.config/screen_health}
j() {jump $@}
loop() {while [ 1 ]; do sh -c "$@"; done}
2017-03-29 18:04:20 +02:00
open_ports() {sudo netstat -tulpen 2> /dev/null | grep "LISTEN"}
2017-03-29 18:03:20 +02:00
r() {if [ $# -eq 1 ]; then ssh root@$1; else sudo su -; fi}
2017-05-24 17:29:14 +02:00
dontknow() {echo -n "¯\\_(ツ)_/¯" | xclip}
2017-03-29 18:03:20 +02:00
# Usefull bindings
bindkey "^[Od" backward-word
bindkey "^[Oc" forward-word
2016-02-24 00:18:23 +01:00
# Some exports
export EDITOR=emacsclient
export LESS=-cex2MRX
export LESSOPEN='|~/.lessfilter %s'
export LOGCHECK=60
2017-04-06 16:26:30 +02:00
export PATH=$HOME/.scripts:$PATH
2016-02-24 00:18:23 +01:00
export READNULLCMD=${PAGER:-/usr/bin/pager}
export WATCH=all
export WATCHFMT="%n has %a %l from %M"