Skip to content

Instantly share code, notes, and snippets.

@kugaevsky
Last active December 23, 2015 05:29
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 kugaevsky/6587935 to your computer and use it in GitHub Desktop.
Save kugaevsky/6587935 to your computer and use it in GitHub Desktop.
oh-my-zsh config
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# 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="robbyrussell"
# Example aliases
# alias ohmyzsh="mate ~/.oh-my-zsh"
# alias deploy="rspec spec && rake assets:precompile && git push heroku master:master"
alias railslog="grc tail -100f log/development.log"
alias zshconfig="st ~/.zshrc"
alias rvmupdate="rvm get stable && rvm cleanup all && cd && cd - && rvm version"
alias grb="git rebase"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"
# 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=(brew bundler cake capistrano coffee cp encode64 git github heroku history history-substring-search jira node npm osx postgres rake rebar redis-cli ruby rvm sublime vagrant zeus)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
export PATH=/usr/local/share/npm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/nick/.rvm/bin:/usr/local/sbin:$PATH
export EDITOR=vim
export PAGER=most
export ANDROID_SDK_ROOT=/usr/local/opt/android-sdk
LANG="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_CTYPE="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_ALL="ru_RU.UTF-8"
# Emacs keybinds
bindkey -e
bindkey '^[^[[C' emacs-forward-word
bindkey '^[^[[D' emacs-backward-word
bindkey '9D' emacs-backward-word
bindkey '9C' emacs-forward-word
bindkey '^W' kill-region
bindkey '^I' complete-word
# Prompt
ZSH_THEME_GIT_PROMPT_PREFIX="±:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"
PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%~ %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
# PS1="$PS1 \$(~/.rvm/bin/rvm-prompt) > "
PATH=$PATH:$HOME/Projects/rvm/bin # Add RVM to PATH for scripting
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment