Compare commits
7 Commits
d1f3baacce
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 254fc3062c | |||
| 1b8218f193 | |||
| 3343658120 | |||
| 7fc93e8351 | |||
| 3734e7f232 | |||
| 8b948cd1dc | |||
| 74308124dd |
8
vimrc
8
vimrc
@@ -26,7 +26,13 @@ set list listchars=tab:>-,trail:-
|
|||||||
let g:netrw_banner=0
|
let g:netrw_banner=0
|
||||||
|
|
||||||
" Tree style listing in netrw
|
" Tree style listing in netrw
|
||||||
let g:netrw_liststyle = 3
|
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
|
" let command-line completion operates in an enhanced mode
|
||||||
set wildmenu
|
set wildmenu
|
||||||
|
|||||||
8
zshrc
8
zshrc
@@ -14,7 +14,7 @@ bindkey '^P' history-beginning-search-backward
|
|||||||
bindkey '^N' history-beginning-search-forward
|
bindkey '^N' history-beginning-search-forward
|
||||||
|
|
||||||
# List of non-alphanumeric characters considered part of a word
|
# List of non-alphanumeric characters considered part of a word
|
||||||
export WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
|
WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
|
||||||
|
|
||||||
# Do not create a history file for less
|
# Do not create a history file for less
|
||||||
export LESSHISTFILE=/dev/null
|
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
|
# When writing out the history file, older commands that duplicate newer ones are omitted
|
||||||
setopt HIST_SAVE_NO_DUPS
|
setopt HIST_SAVE_NO_DUPS
|
||||||
|
|
||||||
# Enable vcs_info
|
# parameter expansion, command substitution and arithmetic expansion are performed in prompts
|
||||||
setopt PROMPT_SUBST
|
setopt PROMPT_SUBST
|
||||||
|
|
||||||
# Comfortable aliases
|
# Comfortable aliases
|
||||||
@@ -91,7 +91,7 @@ alias less='less --line-numbers'
|
|||||||
alias cdt='builtin cd "$(mktemp -d)"'
|
alias cdt='builtin cd "$(mktemp -d)"'
|
||||||
|
|
||||||
# Defines the prompt
|
# Defines the prompt
|
||||||
precmd() {
|
precmd_define_prompt() {
|
||||||
vcs_info
|
vcs_info
|
||||||
|
|
||||||
# check if vcs_info_msg_0_ is empty to avoid an anoying space in the prompt
|
# 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 '
|
PS1='%B%K{white}%F{black}%(3~|…/%1~|%~)%k%f %F{green}${vcs_info_msg_0_}%f %%%b '
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
typeset -ga precmd_functions
|
||||||
|
precmd_functions+=precmd_define_prompt
|
||||||
|
|
||||||
# include reading files from directory
|
# include reading files from directory
|
||||||
source "${HOME}"/.zsh/*
|
source "${HOME}"/.zsh/*
|
||||||
|
|||||||
Reference in New Issue
Block a user