Commit for generation 236

This commit is contained in:
2024-10-10 05:12:27 -04:00
parent 65fe42aff7
commit f3516992c9
2 changed files with 4 additions and 16 deletions

View File

@@ -37,18 +37,3 @@ bindkey -M vicmd "k" up-beep
ZSH_AUTOSUGGEST_ACCEPT_WIDGETS+=("right-beep")
function zle-keymap-select {
if [[ ${KEYMAP} == vicmd ]] || [[ $1 == 'block' ]]; then
echo -ne "\e[1 q" # Change cursor to block (normal mode)
else
echo -ne "\e[5 q" # Change cursor to line (insert mode)
fi
}
if ! typeset -f zle-line-init | grep -q 'zle-keymap-select'; then
zle -N zle-keymap-select
zle-line-init() {
zle-keymap-select 'insert'
}
zle -N zle-line-init
fi

View File

@@ -309,7 +309,10 @@ fi
clear
source ~/sysflakes/glasshouse-desktop/home/zsh/zkbd
~/coding/scripts/splash.sh
eval "$(starship init zsh)"
type starship_zle-keymap-select >/dev/null || \
{
eval "$(/usr/local/bin/starship init zsh)"
}
s_check && (aplay ~/sound/sys/sh-source.wav > /dev/null 2>&1 &)
'';