2009-09-23 01:45:15 +02:00
|
|
|
## smart urls
|
|
|
|
autoload -U url-quote-magic
|
|
|
|
zle -N self-insert url-quote-magic
|
|
|
|
|
2009-09-23 02:18:15 +02:00
|
|
|
## jobs
|
2009-09-24 02:12:19 +02:00
|
|
|
setopt long_list_jobs
|
2009-11-04 20:37:18 +01:00
|
|
|
|
|
|
|
## pager
|
2012-10-13 22:53:34 +02:00
|
|
|
export PAGER="less"
|
|
|
|
export LESS="-R"
|
|
|
|
|
2014-01-10 23:53:14 +01:00
|
|
|
## super user alias
|
|
|
|
alias _='sudo'
|
|
|
|
alias please='sudo'
|
|
|
|
|
|
|
|
## more intelligent acking for ubuntu users
|
|
|
|
alias afind='ack-grep -il'
|
2013-07-29 20:04:23 +02:00
|
|
|
|
|
|
|
## how to interpret text characters
|
|
|
|
if [[ -z "$LC_CTYPE" && -z "$LC_ALL" ]]; then # only define if undefined
|
|
|
|
export LC_CTYPE=${LANG%%:*} # pick the first entry from LANG
|
|
|
|
[[ -z "$LC_CTYPE" ]] && \
|
|
|
|
export LC_CTYPE=`locale -a | grep en_US.utf8 | head -1`
|
|
|
|
[[ -z "$LC_CTYPE" ]] && \
|
|
|
|
export LC_CTYPE=`locale -a | grep en_US | head -1`
|
|
|
|
[[ -z "$LC_CTYPE" ]] && \
|
|
|
|
export LC_CTYPE=C # default to internal encoding.
|
|
|
|
fi
|
|
|
|
|