Skip to content

Instantly share code, notes, and snippets.

@Bambina-zz
Created March 4, 2018 17:55
Show Gist options
  • Save Bambina-zz/cab6dd4d6df8f42e9a775d4780eb7a08 to your computer and use it in GitHub Desktop.
Save Bambina-zz/cab6dd4d6df8f42e9a775d4780eb7a08 to your computer and use it in GitHub Desktop.
# Created by newuser for 5.2
export ZPLUG_HOME=/usr/local/opt/zplug
source $ZPLUG_HOME/init.zsh
# Alias
alias emacs='emacs -nw'
alias ls='ls -G -F'
## Android studio
export ANDROID_HOME=$HOME/Development/adt-bundle-mac/sdk
## JUnit4
export JUNIT_HOME=/Library/JUnit
export CLASSPATH=$CLASSPATH:$JUNIT_HOME/junit-4.12.jar:.
export CLASSPATH=$CLASSPATH:$JUNIT_HOME/hamcrest-core-1.3.jar:.
export PATH
PATH=/usr/local/bin:$HOME/bin:$PATH
PATH=$PATH:/opt/local
PATH=$PATH:/usr/local/rbenv/bin
PATH=$PATH:$HOME/.rbenv/shims
PATH=$PATH:$HOME/usr/local/share/npm/bin
PATH=$PATH:$HOME/Development/adt-bundle-mac/sdk/tools
PATH=$PATH:$HOME/Development/adt-bundle-mac/sdk/platform-tools
PATH=$PATH:$HOME/.nodebrew/current/bin
eval "$(rbenv init -)"
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
### rbenv auto rehash
function gem(){
$HOME/.rbenv/shims/gem $*
if [ "$1" = "install" ] || [ "$1" = "i" ] || [ "$1" = "uninstall" ] || [ "$1" = "uni" ]
then
rbenv rehash
fi
}
function bundle(){
$HOME/.rbenv/shims/bundle $*
if [ "$1" = "install" ] || [ "$1" = "update" ]
then
rbenv rehash
fi
}
### openssl
export PATH="/usr/local/ssl/bin:$PATH"
# Completion
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
# Prompt
PROMPT='%{$fg[cyan]%}%B%m %1d%b$(git_super_status) %# '
# Make sure to use double quotes
zplug "zsh-users/zsh-history-substring-search"
zplug "zsh-users/zsh-syntax-highlighting"
zplug "mrowa44/emojify", as:command
zplug "hchbaw/auto-fu.zsh"
zplug "olivierverdier/zsh-git-prompt", use:"zshrc.sh"
# 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
# Then, source plugins and add commands to $PATH
zplug load --verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment