From aef4b18791e08d4f665da6d327e0b7c37aa4a797 Mon Sep 17 00:00:00 2001 From: Samir Benmendil Date: Wed, 14 Nov 2012 06:19:38 +0100 Subject: [PATCH] initial zshrc --- Makefile | 2 +- zshrc | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 zshrc diff --git a/Makefile b/Makefile index 64e9b73..4fd7e47 100644 --- 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 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 ) -- 2.48.1