Created
May 6, 2016 02:55
-
-
Save domluna/745024ab707b866d05cc5f7561c78c3f to your computer and use it in GitHub Desktop.
new zsh config with zgen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# User configuration | |
export PATH="$HOME/.linuxbrew/bin:$PATH" | |
export MANPATH="$HOME/.linuxbrew/share/man:$MANPATH" | |
export INFOPATH="$HOME/.linuxbrew/share/info:$INFOPATH" | |
# add cuda tools to command path | |
export PATH=/usr/local/cuda/bin:${PATH} | |
export MANPATH=/usr/local/cuda/man:${MANPATH} | |
# add cuda libraries to library path | |
if [[ "${LD_LIBRARY_PATH}" != "" ]] | |
then | |
export LD_LIBRARY_PATH=/usr/local/cuda/lib64:${LD_LIBRARY_PATH} | |
else | |
export LD_LIBRARY_PATH=/usr/local/cuda/lib64 | |
fi | |
# Anaconda | |
export PATH="/home/dom/miniconda2/bin:$PATH" | |
# Go | |
export GOPATH=$HOME/gosu | |
export PATH=$PATH:$GOPATH/bin | |
# some custom binaries | |
export PATH="$PATH:$HOME/bin" | |
export PATH="/home/dom/.linuxbrew/sbin:$PATH" | |
alias rm='rm -i' | |
alias vi='nvim' | |
alias vim='nvim' | |
alias apt-get='sudo apt-get' | |
alias bubu='brew update; brew upgrade; brew cleanup; brew prune' | |
alias j='julia' | |
alias brightness='xrandr --output DVI-I-0 --brightness' | |
alias reload='exec -l $SHELL' | |
alias clang++='clang++-3.9' | |
alias clang='clang-3.9' | |
export EDITOR=nvim | |
# export MODELSHOME=/home/dom/third_party/models | |
# export PYTHONPATH=$MODELSHOME/swivel | |
# export PYTHONPATH=$PYTHONPATH:$MODELSHOME/neural_gpu | |
# export PYTHONPATH=$PYTHONPATH:$MODELSHOME/inception | |
# export PYTHONPATH=$PYTHONPATH:$MODELSHOME/autoencoder | |
# secret stuff | |
[ -f ~/.creds ] && source ~/.creds | |
# zgen | |
source $HOME/.zgen/zgen.zsh | |
# if the init scipt doesn't exist | |
if ! zgen saved; then | |
zgen oh-my-zsh | |
zgen oh-my-zsh plugins/git | |
zgen oh-my-zsh plugins/sudo | |
zgen oh-my-zsh plugins/command-not-found | |
zgen load zsh-users/zsh-syntax-highlighting | |
zgen oh-my-zsh themes/arrow | |
# generate the init script from plugins above | |
zgen save | |
fi | |
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment