63 lines
1.4 KiB
Bash
63 lines
1.4 KiB
Bash
# The following lines were added by compinstall
|
|
|
|
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 correct
|
|
|
|
# emacs keybindings
|
|
bindkey -e
|
|
|
|
# Prevent need to reset terminal
|
|
ttyctl -f
|
|
|
|
# Arrows in the Completition menu
|
|
zstyle ':completion:*' menu select
|
|
|
|
# colors
|
|
autoload -U colors && colors
|
|
|
|
# Load with prompt
|
|
autoload -U promptinit
|
|
promptinit
|
|
|
|
PROMPT="%{$fg_no_bold[blue]%}%n%{$reset_color%}%{$fg_no_bold[red]%}%#%{$reset_color%}%{$fg_no_bold[blue]%}%m%{$reset_color%}%{$fg_no_bold[green]%}%~:%{$fg_no_bold[yellow]%}%?%{$fg_no_bold[green]%}$ %{$reset_color%}"
|
|
RPROMPT="%{$fg_no_bold[green]%}%~%{$reset_color%} [%{$fg_no_bold[yellow]%}%*%{$reset_color%}]"
|
|
|
|
# Bashish navigation
|
|
autoload -U select-word-style
|
|
select-word-style bash
|
|
|
|
# Show cwd in titlebar
|
|
precmd() {
|
|
tab_label=${PWD/${HOME}/\~}
|
|
echo -ne "\e]2;${tab_label}\a"
|
|
}
|
|
|
|
# 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 ../../..'
|
|
|
|
. ~/.profile
|