Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (44 sloc) 1.52 KB
source $HOME/.shell/prompt.sh
red="$(tput setaf 1 2>/dev/null || echo '\e[0;31m')"
grn="$(tput setaf 2 2>/dev/null || echo '\e[0;32m')"
blu="$(tput setaf 4 2>/dev/null || echo '\e[0;34m')"
cyn="$(tput setaf 6 2>/dev/null || echo '\e[0;36m')"
rst="$(tput sgr 0 2>/dev/null || echo '\e[0m')"
if [[ "$(uname -s)" == "Darwin" ]]; then
export PS1="\[$blu\]\w\[$cyn\]\$gitb\[$red\]\$gitd\[$rst\] "
else
m="\[$grn\][ulysses]\[$grn\]\[$rst\]"
export PS1="$m \[$blu\]\w\[$cyn\]\$gitb\[$red\]\$gitd\[$rst\] "
fi
if [[ "$(uname -s)" == "Linux" ]]; then
export PATH=$HOME/.remote:$PATH
fi
# /usr/local/texlive/2017basic/bin/x86_64-darwin
export PATH=$HOME/.bin:$PATH:$HOME/.go/bin:$HOME/.cargo/bin
export GOPATH=$HOME/.go
export EDITOR='vim'
shopt -s cmdhist
shopt -s cdspell
shopt -s histappend
export HISTFILESIZE=100000
export HISTSIZE=100000
export HISTTIMEFORMAT="%F %T "
export HISTCONTROL=ignoredups:erasedups
export PROMPT_COMMAND="history -a${PROMPT_COMMAND:+; $PROMPT_COMMAND}"
tk1=token1
tk2=token2
export SLACK_TOKEN=$tk1$tk2
export PYTHONDONTWRITEBYTECODE=1
# color modifications for brew grc
export CLICOLOR=1
export LSCOLORS=Exfxcxdxbxegedabagacad
if [[ "$(uname -s)" == "Darwin" ]]; then
export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'
fi
# point to and source z in order to track and build dir list
# assumes z installed via brew and current ver is 1.9
if [[ "$(uname -s)" == "Darwin" ]]; then
. /usr/local/Cellar/z/1.9/etc/profile.d/z.sh
elif [[ "$(uname -s)" == "Linux" ]]; then
. $HOME/.remote/z.sh
fi