Compare commits

...

7 Commits

2 changed files with 12 additions and 4 deletions

6
vimrc
View File

@@ -28,6 +28,12 @@ let g:netrw_banner=0
" Tree style listing in netrw
let g:netrw_liststyle=3
" controls maximum quantity of entries in recently-visited directory history list
let g:netrw_dirhistmax=0
" never re-use directory listings buffers
let g:netrw_fastbrowse=0
" let command-line completion operates in an enhanced mode
set wildmenu

8
zshrc
View File

@@ -14,7 +14,7 @@ bindkey '^P' history-beginning-search-backward
bindkey '^N' history-beginning-search-forward
# List of non-alphanumeric characters considered part of a word
export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
# Do not create a history file for less
export LESSHISTFILE=/dev/null
@@ -68,7 +68,7 @@ setopt HIST_IGNORE_SPACE
# When writing out the history file, older commands that duplicate newer ones are omitted
setopt HIST_SAVE_NO_DUPS
# Enable vcs_info
# parameter expansion, command substitution and arithmetic expansion are performed in prompts
setopt PROMPT_SUBST
# Comfortable aliases
@@ -91,7 +91,7 @@ alias less='less --line-numbers'
alias cdt='builtin cd "$(mktemp -d)"'
# Defines the prompt
precmd() {
precmd_define_prompt() {
vcs_info
# check if vcs_info_msg_0_ is empty to avoid an anoying space in the prompt
@@ -101,6 +101,8 @@ precmd() {
PS1='%B%K{white}%F{black}%(3~|…/%1~|%~)%k%f %F{green}${vcs_info_msg_0_}%f %%%b '
fi
}
typeset -ga precmd_functions
precmd_functions+=precmd_define_prompt
# include reading files from directory
source "${HOME}"/.zsh/*