Move path manipulation back to .zprofile

This commit is contained in:
Tom Willemse 2013-05-31 17:59:10 +02:00
parent e68f45b48b
commit 7e2091503b
2 changed files with 16 additions and 7 deletions

View file

@ -1,6 +1,22 @@
export BROWSER=conkeror export BROWSER=conkeror
export EDITOR="emacsclient -c -a emacs" export EDITOR="emacsclient -c -a emacs"
function add-to-list()
{
source "$HOME"/.zsh/functions/add-to-list
}
add-to-list PATH "$HOME/usr/bin"
add-to-list PATH "/usr/local/clark/bin" t
export PATH
add-to-list INFOPATH "$HOME/documents/info"
add-to-list INFOPATH "$HOME/.emacs.d/vendor-lisp/org/doc"
add-to-list INFOPATH "/usr/share/info" t
add-to-list INFOPATH "/usr/local/share/info" t
add-to-list INFOPATH "/usr/local/clark/share/info" t
export INFOPATH
if [ -z "$SSH_AGENT_PID" ]; then if [ -z "$SSH_AGENT_PID" ]; then
eval `ssh-agent` eval `ssh-agent`
fi fi

7
.zshrc
View file

@ -68,13 +68,6 @@ case $TERM in
;; ;;
esac esac
add-to-list PATH "$HOME/usr/bin"
add-to-list PATH "/usr/local/clark/bin" t
add-to-list INFOPATH "$HOME/documents/info"
add-to-list INFOPATH "$HOME/.emacs.d/vendor-lisp/org/doc"
add-to-list INFOPATH "/usr/local/clark/share/info" t
export XDG_CACHE_HOME="$HOME/.cache" export XDG_CACHE_HOME="$HOME/.cache"
export XDG_CONFIG_HOME="$HOME/.config" export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$HOME/.local/share" export XDG_DATA_HOME="$HOME/.local/share"