zsh fixes

This commit is contained in:
Christian Nieves
2023-11-17 19:54:47 +00:00
parent 1c0fa0e214
commit a1d684ca5c

View File

@ -1,19 +1,38 @@
# set -xv # set -xv
HISTSIZE=10000000
SAVEHIST=10000000
setopt SHARE_HISTORY
setopt HIST_REDUCE_BLANKS
setopt HIST_FIND_NO_DUPS
setopt HIST_IGNORE_SPACE
if [ -f ${HOME}/.zplug/init.zsh ]; then if [ -f ${HOME}/.zplug/init.zsh ]; then
source ${HOME}/.zplug/init.zsh source ${HOME}/.zplug/init.zsh
else else
curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh curl -sL --proto-redir -all,https https://raw.githubusercontent.com/zplug/installer/master/installer.zsh | zsh
fi fi
# run zplug install after changing!!!! # RUN ZPLUG INSTALL AFTER CHANGING!!!!
zplug "lib/completion", from:oh-my-zsh zplug "lib/completion", from:oh-my-zsh
zplug "plugins/git", from:oh-my-zsh zplug "plugins/git", from:oh-my-zsh;
zplug "zsh-users/zsh-syntax-highlighting", defer:2 zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug "mafredri/zsh-async", from:"github", use:"async.zsh" zplug "mafredri/zsh-async", from:"github", use:"async.zsh"
zplug "desyncr/auto-ls"
zplug "zsh-users/zsh-autosuggestions" zplug "zsh-users/zsh-autosuggestions"
zplug romkatv/powerlevel10k, as:theme, depth:1 zplug "zsh-users/zsh-history-substring-search"
zplug "modules/prompt", from:prezto
zplug "romkatv/powerlevel10k", as:theme, depth:1
zplug "stedolan/jq", from:gh-r, as:command, rename-to:jq
# Install plugins if there are plugins that have not been installed
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
# Then, source plugins and add commands to $PATH
zplug load zplug load
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
@ -56,9 +75,12 @@ bindkey '\ef' forward-word
bindkey '\eb' backward-word bindkey '\eb' backward-word
bindkey '\ed' kill-word bindkey '\ed' kill-word
bindkey '^[^?' backward-kill-word bindkey '^[^?' backward-kill-word
bindkey "^[[A" history-beginning-search-backward # bindkey "^[[A" up-history
bindkey "^[[B" history-beginning-search-forward # bindkey "^[[B" down-history
# bindkey "^[[A" history-beginning-search-backward
# bindkey "^[[B" history-beginning-search-forward
bindkey "^[[A" history-substring-search-up
bindkey "^[[B" history-substring-search-down
# Put standard ANSI color codes in shell parameters for easy use. # Put standard ANSI color codes in shell parameters for easy use.
# Note that some terminals do not support all combinations. # Note that some terminals do not support all combinations.