# Path to your oh-my-zsh installation. #Portable across both mac and linux now export ZSH=~/.oh-my-zsh export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 export VISUAL=vim export EDITOR="$VISUAL" export TERM=xterm-256color parse_git_branch(){ ref=$(git symbolic-ref HEAD 2> /dev/null | cut -d'/' -f3) if [ -n "$ref" ]; then echo "[$ref]"; fi } HISTFILE=~/.histfile HISTSIZE=10000 SAVEHIST=10000 # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ # Optionally, if you set this to "random", it'll load a random theme each # time that oh-my-zsh is loaded. ZSH_THEME="juanghurtado" autoload -U promptinit promptinit plugins=(git brew npm coffee) # User configuration export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" # export MANPATH="/usr/local/man:$MANPATH" # Preferred editor for local and remote sessions # if [[ -n $SSH_CONNECTION ]]; then # export EDITOR='vim' # else # export EDITOR='mvim' # fi # Compilation flags # export ARCHFLAGS="-arch x86_64" # ssh # export SSH_KEY_PATH="~/.ssh/dsa_id" # Set personal aliases, overriding those provided by oh-my-zsh libs, # plugins, and themes. Aliases can be placed here, though oh-my-zsh # users are encouraged to define aliases within the ZSH_CUSTOM folder. # For a full list of active aliases, run `alias`. # # Example aliases # alias zshconfig="mate ~/.zshrc" export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting . ~/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true # Set up colors autoload -U colors && colors # Set up custom prompt setopt PROMPT_SUBST RPROMPT="%{$fg[yellow]%}${vcs_info_msg_0_}%{$reset_color%}" PROMPT="%{$fg[white]%}┌[%{$fg[yellow]%}%n%{$reset_color%}@%{$fg[cyan]%}%m%{$reset_color%}]─[%{$fg[green]%}%d%{$reset_color%}] └─╼ "