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.

59 lines
1.4 KiB

#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
9 years ago
alias irssi='TERM=screen-256color irssi'
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
10 years ago
}
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
autoload -U colors && colors
10 years ago
autoload -U promptinit
autoload -U compinit && compinit
autoload -Uz vcs_info
zstyle ':completion:*' menu select
zstyle ':vcs_info:git*' formats "%{$fg[white]%}[%{$reset_color%}%{$fg[blue]%}%b%{$fg[white]%}]%{$reset_color%} %a"
10 years ago
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
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
10 years ago
# Haskell stuff
PATH=$PATH:~/.cabal/bin
PATH=$PATH:.cabal-sandbox/bin
# Git Town
PATH=$PATH:~/git-town/src
MANPATH=$MANPATH:~/git-town/man
precmd(){
vcs_info
}
10 years ago
10 years ago
# Set up custom prompt
setopt PROMPT_SUBST
RPROMPT="%{$fg[white]%}\${vcs_info_msg_0_}%{$reset_color%}"
PROMPT="%{$fg[white]%}┌%{$reset_color%}[%{$fg[yellow]%}%n%{$reset_color%}@%{$fg[cyan]%}%m%{$reset_color%}]─[%{$fg[green]%}%d%{$reset_color%}]
%{$fg[white]%}└─╼%{$reset_color%} "