dotfiles-zsh/.zshrc

64 lines
1.4 KiB
Bash
Raw Normal View History

2015-09-19 22:49:04 +02:00
# The following lines were added by compinstall
zstyle ':completion:*' completer _complete _ignored
2016-01-04 22:18:20 +01:00
zstyle :compinstall filename '~/.zshrc'
2015-09-19 22:49:04 +02:00
2016-02-29 21:28:55 +01:00
# Completion
2015-09-19 22:49:04 +02:00
autoload -Uz compinit
compinit
2016-02-29 21:28:55 +01:00
2015-09-19 22:49:04 +02:00
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
2016-02-21 16:40:16 +01:00
HISTSIZE=2000
SAVEHIST=2000
2015-09-19 22:49:04 +02:00
2016-02-29 21:28:55 +01:00
setopt appendhistory beep nomatch notify autocd histignoredups correct
# emacs keybindings
2015-09-19 22:49:04 +02:00
bindkey -e
2016-02-29 21:28:55 +01:00
# Prevent need to reset terminal
ttyctl -f
2015-09-19 22:49:04 +02:00
# 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%}"
2015-11-26 17:34:23 +01:00
RPROMPT="%{$fg_no_bold[green]%}%~%{$reset_color%} [%{$fg_no_bold[yellow]%}%*%{$reset_color%}]"
2015-09-19 22:49:04 +02:00
2016-02-23 22:53:18 +01:00
# Bashish navigation
autoload -U select-word-style
select-word-style bash
2015-09-19 22:49:04 +02:00
# Show cwd in titlebar
precmd() {
tab_label=${PWD/${HOME}/\~}
echo -ne "\e]2;${tab_label}\a"
}
2016-02-29 21:28:55 +01:00
# Report CPU usage for commands running longer than 1 second
REPORTTIME=1
2016-02-29 21:28:55 +01:00
# Dirstack
DIRSTACKSIZE=20
setopt autopushd pushdsilent pushdtohome
# Dirstack # Remove duplicate entries
setopt pushdignoredups
# Dirstack # This reverts the +/- operators.
setopt pushdminus
alias ../..='cd ../..'
alias ../../..='cd ../../..'
2016-02-23 22:53:18 +01:00
. ~/.profile