You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

71 lines
1.7 KiB

# 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(){
10 years ago
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"
10 years ago
autoload -U promptinit
promptinit
plugins=(git brew npm coffee)
10 years ago
# User configuration
10 years ago
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
# export MANPATH="/usr/local/man:$MANPATH"
10 years ago
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
10 years ago
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
10 years ago
# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"
10 years ago
# 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"
10 years ago
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
. ~/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true
10 years ago
# Set up colors
autoload -U colors && colors
# Set up custom prompt
setopt PROMPT_SUBST
RPROMPT="%{$fg[yellow]%}${vcs_info_msg_0_}%{$reset_color%}"
10 years ago
PROMPT="%{$fg[white]%}┌[%{$fg[yellow]%}%n%{$reset_color%}@%{$fg[cyan]%}%m%{$reset_color%}]─[%{$fg[green]%}%d%{$reset_color%}]
└─╼ "