Update zsh configs

Move input method to zprofile, add fzf bindings, change default keymap
master
livie 2024-02-20 23:27:46 +02:00
parent 860c3e06a6
commit 3bf168c517
2 changed files with 29 additions and 10 deletions

View File

@ -1,3 +1,12 @@
export PATH="$PATH:/home/livie/.cargo/bin" export PATH="$PATH:/home/livie/.cargo/bin"
# Created by `pipx` on 2023-06-17 16:56:49 # Created by `pipx` on 2023-06-17 16:56:49
export PATH="$PATH:/home/livie/.local/bin" export PATH="$PATH:/home/livie/.local/bin"
# input method
if command -v fcitx5 >/dev/null 2>&1; then
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export SDL_IM_MODULE=fcitx
export GLFW_IM_MODULE=ibus
fi

30
zshrc
View File

@ -24,15 +24,6 @@ command -v bat >/dev/null 2>&1 && alias cat='bat'
powerline-daemon -q powerline-daemon -q
. /usr/share/powerline/bindings/zsh/powerline.zsh . /usr/share/powerline/bindings/zsh/powerline.zsh
# input method
if command -v fcitx5 >/dev/null 2>&1; then
export GTK_IM_MODULE=fcitx
export QT_IM_MODULE=fcitx
export XMODIFIERS=@im=fcitx
export SDL_IM_MODULE=fcitx
export GLFW_IM_MODULE=ibus
fi
# The following lines were added by compinstall # The following lines were added by compinstall
zstyle ':completion:*' completer _complete _ignored zstyle ':completion:*' completer _complete _ignored
@ -48,9 +39,28 @@ HISTSIZE=1000
SAVEHIST=10000 SAVEHIST=10000
setopt nomatch notify setopt nomatch notify
unsetopt autocd beep extendedglob unsetopt autocd beep extendedglob
bindkey -v bindkey -e
# End of lines configured by zsh-newuser-install # End of lines configured by zsh-newuser-install
# Created by `pipx` on 2023-06-17 16:56:49 # Created by `pipx` on 2023-06-17 16:56:49
export PATH="$PATH:/home/livie/.local/bin" export PATH="$PATH:/home/livie/.local/bin"
# fzf autocompletion
if command -v fzf >/dev/null 2>&1; then
source /usr/share/fzf/key-bindings.zsh
source /usr/share/fzf/completion.zsh
fi
# fzf opts
#export FZF_COMPLETION_OPTS=''
# fd use for fzf
_fzf_compgen_path() {
fd --hidden --follow --exclude ".git" . "$1"
}
_fzf_compgen_dir() {
fd --type d --hidden --follow ^^exclude ".git" . "$1"
}