Skip to content

Commit 0559d46

Browse files
committed
zsh: fixes and cleanup
1 parent 00ed18b commit 0559d46

File tree

2 files changed

+1
-50
lines changed

2 files changed

+1
-50
lines changed

zsh-syntax-highlighting

zshrc

-49
Original file line numberDiff line numberDiff line change
@@ -343,14 +343,6 @@ function rmd () {
343343
export VIRTUAL_ENV_DISABLE_PROMPT=1
344344

345345

346-
#if [[ $TERM == "xterm" ]] && [[ $COLORTERM == "gnome-terminal" ]]; then
347-
#if [[ "$TERM" == "alacritty" || "$TERM" == "xterm-kitty" ]]; then
348-
#not well enough supported yet
349-
#export TERM="xterm-256color"
350-
#fi
351-
#fi
352-
#export PS1="$PS1"'$([ -n "$TMUX" ] && tmux setenv TMUXPWD_$(tmux display -p "#D" | tr -d %) "$PWD")' #tmux-powerline support
353-
354346

355347
export GPGKEY="1A31555C"
356348
#if [ -f "${HOME}/.gpg-agent-info" ]; then
@@ -394,49 +386,8 @@ bindkey '^h' backward-delete-char
394386
bindkey '^w' backward-kill-word
395387
bindkey '^r' history-incremental-search-backward
396388

397-
set_cursor() {
398-
local style
399-
case $1 in
400-
reset) style=0;; # The terminal emulator's default
401-
blink-block) style=1;;
402-
block) style=2;;
403-
blink-underline) style=3;;
404-
underline) style=4;;
405-
blink-vertical-line) style=5;;
406-
vertical-line) style=6;;
407-
esac
408-
409-
[ $style -ge 0 ] && print -n -- "\e[${style} q"
410-
}
411-
412-
function zle-line-init zle-keymap-select {
413-
case $KEYMAP in
414-
vicmd)
415-
set_cursor block
416-
echo -ne "\033]12;Red\007"
417-
;;
418-
*)
419-
set_cursor block
420-
echo -ne "\033]12;Grey\007"
421-
;;
422-
esac
423-
}
424-
#function zle-line-init zle-keymap-select {
425-
# VIM_PROMPT="%{$fg_bold[yellow]%} [% NORMAL]% %{$reset_color%}"
426-
# RPS1="${${KEYMAP/vicmd/$VIM_PROMPT}/(main|viins)/}$RPROMPT $EPS1"
427-
# zle reset-prompt
428-
#}
429-
#
430-
431-
zle -N zle-line-init
432-
zle -N zle-keymap-select
433-
zle-line-init() { echoti smkx 2>/dev/null; }
434-
zle-line-finish() { echoti rmkx 2>/dev/null; }
435-
zle -N zle-line-init
436-
zle -N zle-line-finish
437389
export KEYTIMEOUT=1
438390

439-
440391
#bindkey -M viins 'jj' vi-cmd-mode
441392

442393
if [ $TERM != "xterm-kitty" ]; then

0 commit comments

Comments
 (0)