add dirstack

This commit is contained in:
finga 2016-02-29 21:28:55 +01:00
parent 560d272d4d
commit ab2dadb7f5

22
.zshrc
View file

@ -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 ../../..'