From ab2dadb7f513f0c8c0787032bd75211f3a760eef Mon Sep 17 00:00:00 2001 From: finga Date: Mon, 29 Feb 2016 21:28:55 +0100 Subject: [PATCH] add dirstack --- .zshrc | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index 4d3c8ee..278e014 100644 --- a/.zshrc +++ b/.zshrc @@ -3,17 +3,23 @@ zstyle ':completion:*' completer _complete _ignored zstyle :compinstall filename '~/.zshrc' +# Completion autoload -Uz compinit compinit + # End of lines added by compinstall # Lines configured by zsh-newuser-install HISTFILE=~/.histfile HISTSIZE=2000 SAVEHIST=2000 -setopt appendhistory beep nomatch notify autocd histignoredups +setopt appendhistory beep nomatch notify autocd histignoredups correct + +# emacs keybindings bindkey -e -# End of lines configured by zsh-newuser-install + +# Prevent need to reset terminal +ttyctl -f # Arrows in the Completition menu zstyle ':completion:*' menu select @@ -38,9 +44,19 @@ precmd() { echo -ne "\e]2;${tab_label}\a" } -# Report CPU usage for commands running longer than 5 seconds +# Report CPU usage for commands running longer than 1 second REPORTTIME=1 +# Dirstack +DIRSTACKSIZE=20 +setopt autopushd pushdsilent pushdtohome + +# Dirstack # Remove duplicate entries +setopt pushdignoredups + +# Dirstack # This reverts the +/- operators. +setopt pushdminus + alias ../..='cd ../..' alias ../../..='cd ../../..'