dotfiles/zshrc
2018-02-21 19:07:32 -06:00

76 lines
1.8 KiB
Bash

#########
# zplug configuraton
#########
export ZPLUG_HOME=/usr/local/opt/zplug
source $ZPLUG_HOME/init.zsh
zplug "plugins/git", from:oh-my-zsh
zplug "plugins/iterm2", from:oh-my-zsh
zplug "lib/*", from:oh-my-zsh
# Stuff that modifies
zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug "zsh-users/zsh-autosuggestions", defer:3
zplug "zsh-users/zsh-completions", defer:2
setopt prompt_subst # Make sure prompt is able to be generated properly.
setopt auto_cd # Get that ~ in here.
zplug "caiogondim/bullet-train.zsh", use:bullet-train.zsh-theme, defer:3
# Configure prompt to my liking.
BULLETTRAIN_PROMPT_ORDER=(
time
status
custom
context
dir
screen
ruby
go
git
)
BULLETTRAIN_PROMPT_CHAR=">"
# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
# Let's do this.
zplug load
#########
# the env _essentials_
#########
# Local stuff, homebrew python, theos
export PATH="${HOME}/bin:${HOME}/bin/android-sdk/platform-tools:${PATH}"
if [[ $OSTYPE == darwin* ]]; then
# Google Cloud tools
# On Arch and etcetera, we'd be installing these ourselves and putting it in global path.
# Not on a Mac, so...
source ${HOME}/bin/google-cloud-sdk/completion.zsh.inc
source ${HOME}/bin/google-cloud-sdk/path.zsh.inc
fi
export EDITOR=nano
# Go
export GOPATH=${HOME}/go
export PATH=${GOPATH}/bin:${PATH}
# theos
export THEOS=${HOME}/.theos
export PATH=${THEOS}/bin:$PATH
export THEOS_DEVICE_IP=192.168.1.173 THEOS_DEVICE_PORT=22
# devkitPro and the like
export DEVKITPRO=${HOME}/devkitPro
export DEVKITPPC=${DEVKITPRO}/devkitPPC
export DEVKITARM=${DEVKITPRO}/devkitARM
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" ]]