Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### zshrc
- # path to your oh-my-zsh configuration.
- export ZSH=$HOME/.oh-my-zsh
- # set to this to use case-sensitive completion
- # export CASE_SENSITIVE="true"
- # comment this out to disable weekly auto-update checks
- # export DISABLE_AUTO_UPDATE="true"
- # uncomment following line if you want to disable colors in ls
- # export DISABLE_LS_COLORS="true"
- # which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
- # example format: plugins=(rails git textmate ruby lighthouse)
- plugins=(git rails3 ruby dirpersist gem vi-mode)
- # set to the name theme to load.
- # look in ~/.oh-my-zsh/themes/
- export ZSH_THEME="cies"
- # load oh-my-zsh config framework
- source $ZSH/oh-my-zsh.sh
- # Customize to your needs...
- export PATH=$HOME/bin:$HOME/github/erlang/elixir/bin:$HOME/.cabal/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- # ^Q and ^S should not do what they normally do (control scrolling)
- # this allows some (less sophisticated) software to actually use these keys
- stty start undef # frees ctrl-q
- stty stop undef # frees ctrl-s
- # set some ctrl key binds (vi modes are used otherwise)
- bindkey "^E" end-of-line
- bindkey "^A" beginning-of-line
- bindkey "^R" history-incremental-search-backward
- # make shift-tab work like expected
- bindkey '^[[Z' reverse-menu-complete
- # get tmux to play nice with 256 colors
- export TERM=xterm-256color
- alias tmux TERM=xterm-256color tmux
- # get emecs' tramp (ssh) mode to work
- if [[ "$TERM" == "dumb" ]]
- then
- unsetopt zle
- unsetopt prompt_cr
- unsetopt prompt_subst
- unfunction precmd
- unfunction preexec
- PS1='$ '
- fi
- # set less options
- if [[ -x $(which less) ]]
- then
- export PAGER="less"
- export LESS="--ignore-case --LONG-PROMPT --QUIET --chop-long-lines -Sm --RAW-CONTROL-CHARS --quit-if-one-screen --no-init"
- if [[ -x $(which lesspipe.sh) ]]
- then
- LESSOPEN="| lesspipe.sh %s"
- export LESSOPEN
- fi
- fi
- # set default editor
- if [[ -x $(which vim) ]]
- then
- export EDITOR="vi"
- export USE_EDITOR=$EDITOR
- export VISUAL=$EDITOR
- fi
- # settings for history
- export HISTIGNORE="&:exit:reset:clear"
- export HISTSIZE=25000
- export HISTFILE=~/.zsh_history
- export SAVEHIST=5000
- setopt INC_APPEND_HISTORY
- setopt HIST_IGNORE_ALL_DUPS
- setopt HIST_IGNORE_SPACE
- setopt HIST_REDUCE_BLANKS
- setopt HIST_VERIFY
- # say how long a command took, if it took more than 30 seconds
- export REPORTTIME=30
- # prompts for confirmation after 'rm *' etc
- # helps avoid mistakes like 'rm * o' when 'rm *.o' was intended
- setopt RM_STAR_WAIT
- # quick find
- f() {
- echo "find . -iname \"*$1*\""
- find . -iname "*$1*"
- }
- # setup ssh-agent
- # TODO: ssh-agents should only be run on long running sessions
- #zstyle :omz:plugins:ssh-agent agent-forwarding on
- #zstyle :omz:plugins:ssh-agent id_rsa # add more space separated identities
- # ack id often only available as ack-grep
- alias ack="ack-grep"
- # the following lines set up rvm for the current shell session
- # it gives precendence to local installs over global installs of rvm
- # and enables the default ruby as set with "rvm use <ID> --default"
- # make sure these come after setting the PATH!
- [[ -s "/usr/local/lib/rvm" ]] && . "/usr/local/lib/rvm" # global
- [[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # local
Advertisement
Add Comment
Please, Sign In to add comment