Update zshrc.
This commit is contained in:
parent
86f280dd04
commit
c1f43386ae
@ -4,9 +4,10 @@ pfetch
|
|||||||
|
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
|
|
||||||
[ -f "$HOME/.local/share/zap/zap.zsh" ] && source "$HOME/.local/share/zap/zap.zsh"
|
# Startup zoxide
|
||||||
|
eval "$(zoxide init zsh)"
|
||||||
|
|
||||||
zstyle ':completion:*' rehash true
|
[ -f "$HOME/.local/share/zap/zap.zsh" ] && source "$HOME/.local/share/zap/zap.zsh"
|
||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
plug "kutsan/zsh-system-clipboard"
|
plug "kutsan/zsh-system-clipboard"
|
||||||
@ -17,12 +18,14 @@ plug "zap-zsh/vim"
|
|||||||
plug "zsh-users/zsh-autosuggestions"
|
plug "zsh-users/zsh-autosuggestions"
|
||||||
plug "zsh-users/zsh-completions"
|
plug "zsh-users/zsh-completions"
|
||||||
plug "chivalryq/git-alias"
|
plug "chivalryq/git-alias"
|
||||||
|
plug "zap-zsh/fzf"
|
||||||
|
plug "zap-zsh/magic-enter"
|
||||||
plug "zdharma-continuum/fast-syntax-highlighting"
|
plug "zdharma-continuum/fast-syntax-highlighting"
|
||||||
plug "zsh-users/zsh-history-substring-search"
|
plug "zsh-users/zsh-history-substring-search"
|
||||||
plug "MichaelAquilina/zsh-you-should-use"
|
plug "MichaelAquilina/zsh-you-should-use"
|
||||||
|
|
||||||
# Startup zoxide
|
# VI Mode escape timeout fix
|
||||||
eval "$(zoxide init zsh)"
|
export KEYTIMEOUT=1
|
||||||
|
|
||||||
# Substring search settings
|
# Substring search settings
|
||||||
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="bg=blue,fg=black,bold"
|
export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND="bg=blue,fg=black,bold"
|
||||||
@ -30,7 +33,7 @@ export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_NOT_FOUND='bg=red,fg=black,bold'
|
|||||||
bindkey -M vicmd 'k' history-substring-search-up
|
bindkey -M vicmd 'k' history-substring-search-up
|
||||||
bindkey -M vicmd 'j' history-substring-search-down
|
bindkey -M vicmd 'j' history-substring-search-down
|
||||||
|
|
||||||
# Plugin settings
|
# Zsh System keyboard settings
|
||||||
if [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ]; then
|
if [ -n "$DISPLAY" ] && [ -z "$WAYLAND_DISPLAY" ]; then
|
||||||
ZSH_SYSTEM_CLIPBOARD_METHOD="xsc"
|
ZSH_SYSTEM_CLIPBOARD_METHOD="xsc"
|
||||||
else
|
else
|
||||||
@ -42,12 +45,12 @@ plug "$XDG_CONFIG_HOME/zsh/aliases.zsh"
|
|||||||
plug "$XDG_CONFIG_HOME/zsh/functions.zsh"
|
plug "$XDG_CONFIG_HOME/zsh/functions.zsh"
|
||||||
|
|
||||||
# History settings
|
# History settings
|
||||||
setopt appendhistory
|
|
||||||
setopt INC_APPEND_HISTORY
|
setopt INC_APPEND_HISTORY
|
||||||
export HISTTIMEFORMAT="[%F %T]"
|
export HISTTIMEFORMAT="[%F %T]"
|
||||||
|
|
||||||
HISTFILE="$XDG_STATE_HOME"/zsh/history
|
HISTFILE="$XDG_STATE_HOME"/zsh/history
|
||||||
|
|
||||||
|
# Add nnn shell level to prompt
|
||||||
[ -n "$NNNLVL" ] && PS1="N$NNNLVL $PS1"
|
[ -n "$NNNLVL" ] && PS1="N$NNNLVL $PS1"
|
||||||
|
|
||||||
# cd on nnn quiting
|
# cd on nnn quiting
|
||||||
@ -64,3 +67,7 @@ trap nnn_cd EXIT
|
|||||||
if [ ! -z "$TMUX" ] && [ -d "./env" ]; then
|
if [ ! -z "$TMUX" ] && [ -d "./env" ]; then
|
||||||
. ./env/bin/activate
|
. ./env/bin/activate
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Magic enter settings
|
||||||
|
MAGIC_ENTER_GIT_COMMAND='gst -u'
|
||||||
|
MAGIC_ENTER_OTHER_COMMAND='ls'
|
||||||
|
Loading…
Reference in New Issue
Block a user