add dirstack
This commit is contained in:
parent
560d272d4d
commit
ab2dadb7f5
1 changed files with 19 additions and 3 deletions
22
.zshrc
22
.zshrc
|
@ -3,17 +3,23 @@
|
||||||
zstyle ':completion:*' completer _complete _ignored
|
zstyle ':completion:*' completer _complete _ignored
|
||||||
zstyle :compinstall filename '~/.zshrc'
|
zstyle :compinstall filename '~/.zshrc'
|
||||||
|
|
||||||
|
# Completion
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
compinit
|
compinit
|
||||||
|
|
||||||
# End of lines added by compinstall
|
# End of lines added by compinstall
|
||||||
# Lines configured by zsh-newuser-install
|
# Lines configured by zsh-newuser-install
|
||||||
HISTFILE=~/.histfile
|
HISTFILE=~/.histfile
|
||||||
HISTSIZE=2000
|
HISTSIZE=2000
|
||||||
SAVEHIST=2000
|
SAVEHIST=2000
|
||||||
setopt appendhistory beep nomatch notify autocd histignoredups
|
|
||||||
|
|
||||||
|
setopt appendhistory beep nomatch notify autocd histignoredups correct
|
||||||
|
|
||||||
|
# emacs keybindings
|
||||||
bindkey -e
|
bindkey -e
|
||||||
# End of lines configured by zsh-newuser-install
|
|
||||||
|
# Prevent need to reset terminal
|
||||||
|
ttyctl -f
|
||||||
|
|
||||||
# Arrows in the Completition menu
|
# Arrows in the Completition menu
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
|
@ -38,9 +44,19 @@ precmd() {
|
||||||
echo -ne "\e]2;${tab_label}\a"
|
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
|
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 ../..'
|
||||||
alias ../../..='cd ../../..'
|
alias ../../..='cd ../../..'
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue