]> git.rmz.io Git - dotfiles.git/commitdiff
initial zshrc
authorSamir Benmendil <ram-z@chakra-project.org>
Wed, 14 Nov 2012 05:19:38 +0000 (06:19 +0100)
committerSamir Benmendil <ram-z@chakra-project.org>
Wed, 14 Nov 2012 05:19:49 +0000 (06:19 +0100)
Makefile
zshrc [new file with mode: 0644]

index 64e9b73113b34a5ee1fccdd245a73c1398b0deab..4fd7e4767673fb6bbefccf235dc1e3aa337e11e3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,7 @@ APATH := $(realpath .)
 RPATH := $(subst $(wildcard ~/),,$(APATH))
 
 FILES := bin
-DOTFILES := bash* flexget vim*
+DOTFILES := bash* flexget vim* zsh*
 
 .PHONY: install $(FILES) $(DOTFILES)
 install: $(FILES) $(DOTFILES)
diff --git a/zshrc b/zshrc
new file mode 100644 (file)
index 0000000..54dba89
--- /dev/null
+++ b/zshrc
@@ -0,0 +1,44 @@
+# Lines configured by zsh-newuser-install
+HISTFILE=~/.histfile
+HISTSIZE=10000
+SAVEHIST=20000
+setopt histignoredups
+setopt histignorespace
+setopt appendhistory
+
+setopt autocd
+setopt beep
+setopt extendedglob
+setopt nomatch
+setopt noclobber    # don't allow overwriting files with '>', use '>!' instead
+setopt rcquotes     # echo 'don''t'; prints don't
+
+unsetopt notify
+
+bindkey -e
+# End of lines configured by zsh-newuser-install
+# The following lines were added by compinstall
+zstyle :compinstall filename '/home/ramsi/.zshrc'
+
+autoload -Uz compinit
+compinit
+# End of lines added by compinstall
+
+# source aliases
+[[ -f ~/.bash_aliases ]] && source ~/.bash_aliases
+
+# set up prompt
+autoload -U promptinit
+promptinit
+prompt walters
+
+# make cd act like pushd
+DIRSTACKSIZE=10
+setopt autopushd    # cd acts like pushd
+setopt pushdminus   # inverts the meaning of cp -1 and cp +1
+setopt pushdsilent  # don't print dir stack everytime
+setopt pushdtohome  # pushd with no argumens pushes to ~
+alias dh='dirs -v'
+
+# set search path for cd
+cdpath=( ~ /mnt )