Basic updates.
This commit is contained in:
parent
08c122f3fd
commit
a3bd316ea2
12 changed files with 352 additions and 152 deletions
|
@ -16,7 +16,16 @@ plug "zap-zsh/completions"
|
|||
plug "zap-zsh/vim"
|
||||
plug "zsh-users/zsh-autosuggestions"
|
||||
plug "zsh-users/zsh-completions"
|
||||
plug "zsh-users/zsh-syntax-highlighting"
|
||||
plug "chivalryq/git-alias"
|
||||
plug "zdharma-continuum/fast-syntax-highlighting"
|
||||
plug "zsh-users/zsh-history-substring-search"
|
||||
plug "MichaelAquilina/zsh-you-should-use"
|
||||
|
||||
# Substring search settings
|
||||
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="bg=blue,fg=black,bold"
|
||||
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND='bg=red,fg=black,bold'
|
||||
bindkey -M vicmd 'k' history-substring-search-up
|
||||
bindkey -M vicmd 'j' history-substring-search-down
|
||||
|
||||
# Plugin settings
|
||||
if [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ]; then
|
||||
|
@ -33,7 +42,16 @@ plug "$XDG_CONFIG_HOME/zsh/functions.zsh"
|
|||
setopt appendhistory
|
||||
setopt INC_APPEND_HISTORY
|
||||
export HISTTIMEFORMAT="[%F %T]"
|
||||
# HISTSIZE=10000
|
||||
# SAVEHIST=5000
|
||||
|
||||
HISTFILE="$XDG_STATE_HOME"/zsh/history
|
||||
|
||||
[ -n "$NNNLVL" ] && PS1="N$NNNLVL $PS1"
|
||||
|
||||
nnn_cd ()
|
||||
{
|
||||
if ! [ -z "$NNN_PIPE" ]; then
|
||||
printf "%s\0" "0c${PWD}" > "${NNN_PIPE}" !&
|
||||
fi
|
||||
}
|
||||
|
||||
trap nnn_cd EXIT
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue