Move PATHS to .zshrc
And use a new function to make it clean
This commit is contained in:
parent
d9323f0c01
commit
370726e0cc
4 changed files with 18 additions and 13 deletions
12
.zprofile
12
.zprofile
|
@ -1,18 +1,6 @@
|
||||||
export BROWSER=conkeror
|
export BROWSER=conkeror
|
||||||
export EDITOR="emacsclient -c -a emacs"
|
export EDITOR="emacsclient -c -a emacs"
|
||||||
|
|
||||||
INFOPATH="$HOME/documents/info"
|
|
||||||
INFOPATH="$INFOPATH:/usr/local/emacs/share/info"
|
|
||||||
INFOPATH="$INFOPATH:/usr/share/info"
|
|
||||||
INFOPATH="$INFOPATH:/usr/local/clark/share/info"
|
|
||||||
export INFOPATH="$INFOPATH:/usr/local/stumpwm/share/info"
|
|
||||||
|
|
||||||
PATH="${HOME}/usr/bin:${PATH}:/usr/local/bin:/usr/local/stumpwm/bin"
|
|
||||||
PATH="/usr/local/scwm/bin:$PATH"
|
|
||||||
PATH="/usr/local/clfswm/bin:$PATH"
|
|
||||||
PATH="/usr/local/clark/bin:$PATH"
|
|
||||||
export PATH="/usr/local/emacs/bin:$PATH"
|
|
||||||
|
|
||||||
if [ -z "$SSH_AGENT_PID" ]; then
|
if [ -z "$SSH_AGENT_PID" ]; then
|
||||||
eval `ssh-agent`
|
eval `ssh-agent`
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -2,6 +2,6 @@ SUBDIR=functions
|
||||||
objects=chpwd_show_todo chpwd_update_git_vars env get_cnt line \
|
objects=chpwd_show_todo chpwd_update_git_vars env get_cnt line \
|
||||||
precmd_maybe_festival precmd_update_git_vars precmd_update_updates \
|
precmd_maybe_festival precmd_update_git_vars precmd_update_updates \
|
||||||
preexec_update_vars prompt prompt_git_info rprompt \
|
preexec_update_vars prompt prompt_git_info rprompt \
|
||||||
update_current_git_vars welcome venv
|
update_current_git_vars welcome venv add-to-list
|
||||||
|
|
||||||
include ../../dotfiles.mk
|
include ../../dotfiles.mk
|
||||||
|
|
10
.zsh/functions/add-to-list
Normal file
10
.zsh/functions/add-to-list
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# -*- mode: sh; -*-
|
||||||
|
if [[ ! "${(P)${1}}" =~ (^|:)"$2"(:|$) ]]; then
|
||||||
|
if [ -n "$3" ]; then
|
||||||
|
# Append
|
||||||
|
typeset -g $1="${(P)${1}}:$2"
|
||||||
|
else
|
||||||
|
# Prepend
|
||||||
|
typeset -g $1="$2:${(P)${1}}"
|
||||||
|
fi
|
||||||
|
fi
|
7
.zshrc
7
.zshrc
|
@ -70,6 +70,13 @@ 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
|
||||||
|
|
||||||
# Set terminal keys
|
# Set terminal keys
|
||||||
bindkey "\e[1~" beginning-of-line
|
bindkey "\e[1~" beginning-of-line
|
||||||
bindkey "\e[4~" end-of-line
|
bindkey "\e[4~" end-of-line
|
||||||
|
|
Loading…
Reference in a new issue