Skip to content

Instantly share code, notes, and snippets.

@dorentus
Created July 4, 2014 06:17
Show Gist options
  • Save dorentus/0f3ced2dfd5e059ba297 to your computer and use it in GitHub Desktop.
Save dorentus/0f3ced2dfd5e059ba297 to your computer and use it in GitHub Desktop.
$HOME/.zshrc
# history, http://wiki.gentoo.org/wiki/Zsh/HOWTO#History
export HISTSIZE=2000
export HISTFILE="$HOME/.history"
export SAVEHIST=$HISTSIZE
setopt hist_ignore_all_dups
setopt hist_ignore_space
# Banner
$HOME/bin/95-lolcat
/usr/local/bin/archey -c
# completion
fpath=(/usr/local/share/zsh-completions $fpath)
autoload -U compinit
compinit
# PROMPT
source /usr/local/etc/bash_completion.d/git-prompt.sh
setopt PROMPT_SUBST
PS1=$'\n%{\e[0;30m%}┌─%{\e[0m%}%{\e[01;30m%}%n@'
PS1+=`scutil --get ComputerName`
PS1+=$'%{\e[00m%}:%{\e[01;34m%}%~%{\e[00m%}\n%{\e[0;30m%}└───%{\e[0m%}'
PS1+=$($HOME/bin/choose_by_hostname 🍏 👾 💊 ⭕ 🌀 🌐)
PS1+=$' %{\e[00;33m%}$(__git_ps1 "(%s)")%{\e[00m%} '
RPROMPT='💫'
# bin
export PATH=$HOME/bin:/usr/local/bin:/usr/local/sbin:$PATH
# aliases
if [ -f ~/.bash_aliases ]; then
source ~/.bash_aliases
fi
# functions
if [ -f ~/.bash_functions ]; then
source ~/.bash_functions
fi
# EDITOR
export EDITOR=vim
# zsh-syntax-highlighting
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# rbenv
if which rbenv > /dev/null; then eval "$(rbenv init - zsh)"; fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment