Skip to content

Instantly share code, notes, and snippets.

@jaturken
Created November 2, 2012 16:51
Show Gist options
  • Save jaturken/4002653 to your computer and use it in GitHub Desktop.
Save jaturken/4002653 to your computer and use it in GitHub Desktop.
.zshrc
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
HISTSIZE=1000
SAVEHIST=1000
setopt append_history
setopt inc_append_history
setopt extended_history
setopt hist_find_no_dups
setopt hist_ignore_all_dups
setopt hist_reduce_blanks
setopt hist_ignore_space
setopt hist_no_store
setopt hist_no_functions
setopt no_hist_beep
setopt hist_save_no_dups
ZSH_THEME="bira"
# Aliases
alias ls='ls --color=always'
alias ll='ls -lah'
alias grep='grep --color=always'
alias trt='touch tmp/restart.txt'
alias less='less -R'
alias pwgen='pwgen -1cnsB'
alias ack='ack -a'
alias rake='bundle exec rake'
alias sublime='Sublime\ Text\ 2/sublime_text'
alias be='bundle exec'
alias pgstart="sudo /etc.init.d/postgresql start"
alias pgstop="sudo /etc/init.d/postgresql stop"
COMPLETION_WAITING_DOTS="true"
plugins=(git ruby gem sublime bundler compleat git lol)
source $ZSH/oh-my-zsh.sh
# zhh in vim-mode
zle -N edit-command-line
bindkey -M vicmd v edit-command-line
# Customize to your needs...
export PATH=/home/user/.rvm/gems/ruby-1.9.2-p180@pi-system/bin:/home/user/.rvm/gems/ruby-1.9.2-p180@global/bin:/home/user/.rvm/rubies/ruby-1.9.2-p180/bin:/home/user/.rvm/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
#===================PUGRE==================================
clear_memory(){
echo -e "Memory usage before purge:" && free -om
sync && echo 1 > sudo tee /proc/sys/vm/drop_caches || (exit && echo " Error purging memory")
echo -e "\nMemory usage after purge:" && free -om
}
alias purge='clear_memory'
#==================/PURGE==================================
#==================IGOHOME=================================
alias igohome='sudo pm-hibernate'
#==================/IGIHOME================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment