Prompt work...mostly, notes

Hack together a prompt that does most of what we did before but is a bit
simpler.  Throw it all into precmd because why not....
This commit is contained in:
Andrew Tomaka 2015-12-10 16:17:09 -05:00
parent db3bfa4036
commit f2676dabcf
7 changed files with 53 additions and 41 deletions

18
zshrc
View file

@ -1,27 +1,15 @@
PATH="$HOME/bin:$PATH"
if [[ "$OSTYPE" == darwin* ]]; then
PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
MANPATH="/usr/local/opt/coreutils/libexec/gnuman:$MANPATH"
NVM_DIR="/usr/local/opt/nvm"
else
NVM_DIR="/home/atomaka/.nvm"
fi
# add path to newer bins on cse servers (github/rmblair)
if test -d /soft/linux/pkg/bin ; then
export PATH=/soft/linux/pkg/bin:${PATH};
export PATH=/soft/lus/linux/vim/7.4-$(uname -m)/bin:$PATH;
fi
[[ -d "$GNU_TOOLS_PATH" ]] && PATH="$GNU_TOOLS_PATH:$PATH"
[[ -d "$GNU_TOOLS_MAN_PATH" ]] && MANPATH="$GNU_TOOLS_MAN_PATH:$MANPATH"
# clean up duplicate paths
typeset -U PATH
# List directory when changing (github/r00k)
chpwd() {
ls -lvh --color=auto
}
# Larger history
HISTSIZE=20000
HISTFILE=~/.zsh_history
@ -38,7 +26,7 @@ stty stop undef
# Aliases/Functions files
source $HOME/.aliases
source $HOME/.functions
source $HOME/.zsh/prompt
source $HOME/.zsh/new-prompt
if [[ "$OSTYPE" == darwin* ]]; then
source $HOME/.aliases-mac