]> git.rmz.io Git - dotfiles.git/commitdiff
update zshrc
authorSamir Benmendil <ram-z@chakra-project.org>
Mon, 3 Dec 2012 05:48:06 +0000 (06:48 +0100)
committerSamir Benmendil <ram-z@chakra-project.org>
Mon, 3 Dec 2012 05:48:06 +0000 (06:48 +0100)
zshrc

diff --git a/zshrc b/zshrc
index c52d8b082805442530d3da5d78e7ab8c4f32bc73..307d8e6265ff153f1f3f9b3c25f39e846cb74783 100644 (file)
--- a/zshrc
+++ b/zshrc
@@ -1,14 +1,38 @@
-# configure history
-HISTFILE=~/.histfile
-HISTSIZE=1000
-SAVEHIST=2000
-setopt hist_ignore_dups
-setopt hist_ignore_space
-setopt append_history
-setopt inc_append_history
-setopt extended_history
+# Path to your oh-my-zsh configuration.
+ZSH=$HOME/.zsh
 
-# misc
+# Set name of the theme to load.
+# Look in ~/.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="ramsi"
+
+# Set to this to use case-sensitive completion
+CASE_SENSITIVE="true"
+
+# Comment this out to disable bi-weekly auto-update checks
+DISABLE_AUTO_UPDATE="true"
+
+# Uncomment to change how many often would you like to wait before auto-updates occur? (in days)
+# export UPDATE_ZSH_DAYS=13
+
+# 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 ~/.zsh/plugins/*)
+# Custom plugins may be added to ~/.zsh/custom/plugins/
+# Example format: plugins=(rails git textmate ruby lighthouse)
+plugins=(git)
+
+source $ZSH/oh-my-zsh.sh
+
+# miscelaneous options
 setopt beep
 setopt extendedglob
 setopt csh_nullglob # if glob does not match, remove pattern, if no glob matches print error
@@ -17,18 +41,6 @@ setopt noclobber    # don't allow overwriting files with '>', use '>!' instead
 setopt notify
 setopt rcquotes     # echo 'don''t'; prints don't
 
-# key bindings
-bindkey -e  # emacs key bindings, vi is weird
-[[ -r ~/.zsh/bindkeyrc ]] && source ~/.zsh/bindkeyrc
-
-# Completion
-zstyle :compinstall filename '/home/ramsi/.zshrc'
-zstyle ':completion:*' list-colors ''
-
-setopt complete_in_word     # allow completion in the middle of a word
-autoload -Uz compinit
-compinit
-
 # populate path
 typeset -U path     # make path a unique array
 [[ -d ~/bin ]] && path=(~/bin $path)
@@ -39,28 +51,7 @@ typeset -U fpath    # make fpath a unique array
 autoload -U ${fpath[1]}/*(:t)   # loads all functions in the first element of fpath
 
 # source aliases
-[[ -f ~/.aliasesrc ]] && source ~/.aliasesrc
-
-# set up prompt
-autoload -U colors && colors
-[[ $(hostname) == "tardis" ]] && hostcolor=red
-[[ $(hostname) == "shada" ]]  && hostcolor=green
-PROMPT="%(?..%{$fg_bold[white]%}[%?])%{$reset_color%}[%D{%k:%M} %n@%{$fg[$hostcolor]%}%m%{$reset_color%}]%# "
-RPROMPT="%{$fg[green]%}%~%{$reset_color%}"
-
-# make cd act like pushd
-DIRSTACKSIZE=10          # number of dirs to remember
-setopt auto_pushd        # cd acts like pushd
-setopt pushd_minus       # inverts the meaning of cp -1 and cp +1
-setopt pushd_silent      # don't print dir stack everytime
-setopt pushd_to_home     # pushd with no argumens pushes to ~
-setopt pushd_ignore_dups # ignore dups in pushd/cd
-alias dh='dirs -v'       # show numbers with dirs
-
-setopt auto_cd           # if no command matches the input, try to cd into it; .. = cd ..
-
-# set search path for cd
-cdpath=(~ /mnt)
+[[ -f ~/.aliases ]] && source ~/.aliases
 
 # set up a few named directories
 hash -d Skaro=/mnt/Skaro