initial commit of zsh configuration
This commit is contained in:
commit
2e584c0935
1 changed files with 37 additions and 0 deletions
37
.zshrc
Normal file
37
.zshrc
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
# The following lines were added by compinstall
|
||||||
|
|
||||||
|
zstyle ':completion:*' completer _complete _ignored
|
||||||
|
zstyle :compinstall filename '/home/finga/.zshrc'
|
||||||
|
|
||||||
|
autoload -Uz compinit
|
||||||
|
compinit
|
||||||
|
# End of lines added by compinstall
|
||||||
|
# Lines configured by zsh-newuser-install
|
||||||
|
HISTFILE=~/.histfile
|
||||||
|
HISTSIZE=1000
|
||||||
|
SAVEHIST=1000
|
||||||
|
setopt appendhistory beep nomatch notify autocd histignoredups
|
||||||
|
|
||||||
|
bindkey -e
|
||||||
|
# End of lines configured by zsh-newuser-install
|
||||||
|
|
||||||
|
# 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[yellow]%}%*%{$reset_color%}]"
|
||||||
|
|
||||||
|
# Show cwd in titlebar
|
||||||
|
precmd() {
|
||||||
|
tab_label=${PWD/${HOME}/\~}
|
||||||
|
echo -ne "\e]2;${tab_label}\a"
|
||||||
|
}
|
||||||
|
|
||||||
|
source ~/.aliases
|
Loading…
Reference in a new issue