From bd3a592b708676dc41b36138e3821b5dfb2eed6f Mon Sep 17 00:00:00 2001 From: yage Date: Tue, 14 Nov 2023 13:05:09 -0700 Subject: [PATCH] start the change to alacritty --- config/xinitrc.common | 3 +++ vim/vundle.vim | 3 +++ zsh/unipicker | 10 ++++++++++ 3 files changed, 16 insertions(+) create mode 100644 zsh/unipicker diff --git a/config/xinitrc.common b/config/xinitrc.common index e287743..80e6593 100644 --- a/config/xinitrc.common +++ b/config/xinitrc.common @@ -4,4 +4,7 @@ export PATH="$DOTWRYN/bin/$(hostnamectl --static):$PATH" command -v kitty >/dev/null 2>&1 \ && export TERMINAL=$(which kitty) +command -v alacritty >/dev/null 2>&1 \ + && export TERMINAL=$(which alacritty) + for SCRIPT in $(find /etc/x11/xinit/xinitrc.d); do source $SCRIPT; done diff --git a/vim/vundle.vim b/vim/vundle.vim index 287b9fa..05d7b99 100644 --- a/vim/vundle.vim +++ b/vim/vundle.vim @@ -15,6 +15,7 @@ Plugin 'VundleVim/Vundle.vim' Plugin 'tpope/vim-surround' Plugin 'valloric/youcompleteme' Plugin 'w0rp/ale' + Plugin 'chrisbra/unicode.vim' " }}} " --------------------------------------------------------------------- call vundle#end() @@ -78,5 +79,7 @@ nmap ae (ale_next) nmap ar (ale_previous) nmap f (ale_fix) +imap (UnicodeFuzzy) + " }}} " --------------------------------------------------------------------- diff --git a/zsh/unipicker b/zsh/unipicker new file mode 100644 index 0000000..ee03d83 --- /dev/null +++ b/zsh/unipicker @@ -0,0 +1,10 @@ +#!/bin/zsh +command -v unipicker >/dev/null 2>&1 || return 0 + +__ZSH_SHORTCUT__UNIPICKER() { + LBUFFER+="$(unipicker)" + zle reset-prompt +} + +zle -N unipicker __ZSH_SHORTCUT__UNIPICKER +bindkey  unipicker