2008-03-16 21:02:24 +00:00
|
|
|
# Copyright (C) 2004 Gabriel Ebner
|
|
|
|
# vim:fdm=marker:
|
|
|
|
|
|
|
|
. /etc/profile
|
|
|
|
export USER=$USERNAME
|
|
|
|
fpath=(~/.zfuncs $fpath)
|
|
|
|
|
|
|
|
# $MYPREFIX {{{1
|
|
|
|
|
2010-03-18 10:10:15 +00:00
|
|
|
add_to() {
|
2008-03-16 21:02:24 +00:00
|
|
|
if [[ `eval echo \$\{\+$1\}` == 1 ]]; then
|
2010-03-18 10:10:15 +00:00
|
|
|
export $1=$2:`eval echo \$\{$1\}`
|
2008-03-16 21:02:24 +00:00
|
|
|
else
|
2010-03-18 10:10:15 +00:00
|
|
|
export $1=$2
|
2008-03-16 21:02:24 +00:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2010-03-18 10:10:15 +00:00
|
|
|
add_myprefix_to() {
|
|
|
|
add_to "$1" "$MYPREFIX/$2"
|
|
|
|
}
|
|
|
|
|
2008-03-16 21:02:24 +00:00
|
|
|
MYPREFIX=~/build/myprefix
|
|
|
|
add_myprefix_to PATH bin
|
2008-11-02 17:12:12 +00:00
|
|
|
add_myprefix_to PATH sbin
|
2011-02-21 15:18:20 +00:00
|
|
|
add_to PATH ~/.cabal/bin
|
2008-03-16 21:02:24 +00:00
|
|
|
add_myprefix_to LD_LIBRARY_PATH lib
|
|
|
|
add_myprefix_to LD_LIBRARY_PATH lib64
|
|
|
|
add_myprefix_to MANPATH man
|
|
|
|
add_myprefix_to PKG_CONFIG_PATH lib/pkgconfig
|
2011-02-21 15:18:20 +00:00
|
|
|
add_myprefix_to PYTHONPATH lib/python2.6/site-packages
|
2008-03-16 21:02:24 +00:00
|
|
|
add_myprefix_to PYTHONPATH lib/python/site-packages
|
|
|
|
add_myprefix_to PYTHONPATH lib/python
|
|
|
|
add_myprefix_to PERL5LIB lib/perl/`perl -e 'printf"%vd\n",$^V'`
|
|
|
|
add_myprefix_to PERL5LIB share/perl/`perl -e 'printf"%vd\n",$^V'`
|
|
|
|
add_myprefix_to R_LIBS lib/R:/usr/lib/R/site-library
|
2011-02-21 15:18:20 +00:00
|
|
|
add_to PATH ~/build/android-sdk-linux_86/platform-tools:~/build/android-sdk-linux_86/tools
|
2008-03-16 21:02:24 +00:00
|
|
|
|
|
|
|
# ZLE {{{1
|
|
|
|
bindkey '\e[3~' delete-char
|
|
|
|
bindkey "\e[1~" beginning-of-line
|
|
|
|
bindkey "\e[4~" end-of-line
|
2011-02-21 15:18:20 +00:00
|
|
|
bindkey "\eOH" beginning-of-line
|
|
|
|
bindkey "\eOF" end-of-line
|
2008-03-16 21:02:24 +00:00
|
|
|
setopt printeightbit
|
|
|
|
|
|
|
|
# Prompt {{{1
|
|
|
|
autoload -U promptinit
|
|
|
|
promptinit
|
|
|
|
prompt gebner
|
|
|
|
|
|
|
|
# Window Title {{{1
|
|
|
|
chpwd() { [[ -t 1 ]] && print -Pn '\e]2;%n@%m:%~\a' }; chpwd
|
|
|
|
|
|
|
|
# Customisation of Programs {{{1
|
|
|
|
alias ls='ls --color=auto'
|
|
|
|
export EMAIL='Gabriel Ebner <ge@gabrielebner.at>'
|
2011-02-21 15:18:20 +00:00
|
|
|
test -x /usr/bin/lesspipe && export LESSOPEN="|lesspipe.sh %s"
|
2008-03-16 21:02:24 +00:00
|
|
|
test -x /usr/bin/vim && export EDITOR=/usr/bin/vim
|
|
|
|
|
|
|
|
export MPD_HOST=127.0.0.1 MPD_PORT=6600
|
|
|
|
|
|
|
|
# History {{{1
|
|
|
|
setopt APPEND_HISTORY SHARE_HISTORY EXTENDED_HISTORY INC_APPEND_HISTORY \
|
2010-03-18 10:06:24 +00:00
|
|
|
HIST_IGNORE_ALL_DUPS HIST_FIND_NO_DUPS HIST_IGNORE_SPACE
|
2008-03-16 21:02:24 +00:00
|
|
|
HISTSIZE=100000
|
|
|
|
SAVEHIST=100000
|
|
|
|
HISTFILE=~/.zhist
|
|
|
|
|
|
|
|
# Completion {{{1
|
|
|
|
|
|
|
|
# The following lines were added by compinstall
|
|
|
|
zstyle ':completion:*' completer _complete
|
|
|
|
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
|
|
|
|
zstyle :compinstall filename '/home/gebner/.zshrc'
|
|
|
|
|
|
|
|
autoload -U compinit
|
|
|
|
compinit
|
|
|
|
# End of lines added by compinstall
|