Skip to content

Instantly share code, notes, and snippets.

@baojie
Last active October 13, 2015 01:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baojie/4117143 to your computer and use it in GitHub Desktop.
Save baojie/4117143 to your computer and use it in GitHub Desktop.
zsh config
DISABLE_AUTO_UPDATE="true"
ZSH=$HOME/.oh-my-zsh
# Look in ~/.oh-my-zsh/themes/
ZSH_THEME="bira"
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
DISABLE_AUTO_UPDATE="true"
COMPLETION_WAITING_DOTS="true"
HISTCONTROL=ignorespace # ignore command starts with space from being added to history
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git pip)
source $ZSH/oh-my-zsh.sh
export PATH=/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
unsetopt correct_all
#alias rvm-prompt=$HOME/.rvm/bin/rvm-prompt
PATH="$PATH:/opt/bin"
# show recent history without timestamp
alias recent="history | tail -20 | sed 's/^\s*[0-9|\*]*\s//'"
alias newest="ls -c|head -n1"
alias mute="amixer -D pulse set Master toggle"
alias unmute="amixer -D pulse set Master toggle"
# disable touchpad when typing
syndaemon -i 1 -d
# use vim key binding
#bindkey -v
export LD_LIBRARY_PATH=/usr/local/lib
# disable Gnome keyring checking
unset GNOME_KEYRING_CONTROL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment