added pi
This commit is contained in:
+8
-10
@@ -1,6 +1,5 @@
|
||||
# Set the directory to store zinit and plugins
|
||||
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.locale/share}/zinit/zinit.git"
|
||||
|
||||
# Download Zinit if not present
|
||||
if [ ! -d "$ZINIT_HOME" ]; then
|
||||
mkdir -p "$(dirname $ZINIT_HOME)"
|
||||
@@ -14,17 +13,17 @@ source ~/.plugins.zsh
|
||||
source ~/.export.zsh
|
||||
|
||||
# Initialization settings for zsh-vi-mode
|
||||
ZVM_INIT_MODE=sourcing
|
||||
# ZVM_INIT_MODE=sourcing
|
||||
|
||||
# CONSOLIDATED FUNCTION: All zsh-vi-mode logic must be in one place [2]
|
||||
function zvm_after_init() {
|
||||
# Fix fzf interaction
|
||||
Fix fzf interaction
|
||||
source <(fzf --zsh)
|
||||
|
||||
|
||||
# Bind Atuin search for both Insert and Normal modes [9]
|
||||
zvm_bindkey viins '^R' atuin-search
|
||||
zvm_bindkey vicmd '^R' atuin-search
|
||||
|
||||
|
||||
# Re-bind autosuggest-accept
|
||||
bindkey '^@' autosuggest-accept
|
||||
}
|
||||
@@ -58,10 +57,10 @@ _fzf_comprun() {
|
||||
local command=$1
|
||||
shift
|
||||
case "$command" in
|
||||
cd) fzf --preview 'eza --tree --color=always {} | head -200' "$@" ;;
|
||||
export|unset) fzf --preview "eval 'echo \$' {}" "$@" ;;
|
||||
ssh) fzf --preview 'dig {}' "$@" ;;
|
||||
*) fzf --preview "--preview 'bat -n --color=always --line-range :10 {}'" "$@" ;;
|
||||
cd) fzf --preview 'eza --tree --color=always {} | head -200' "$@" ;;
|
||||
export | unset) fzf --preview "eval 'echo \$' {}" "$@" ;;
|
||||
ssh) fzf --preview 'dig {}' "$@" ;;
|
||||
*) fzf --preview "--preview 'bat -n --color=always --line-range :10 {}'" "$@" ;;
|
||||
esac
|
||||
}
|
||||
|
||||
@@ -75,7 +74,6 @@ function y() {
|
||||
rm -f -- "$tmp"
|
||||
}
|
||||
|
||||
|
||||
zinit ice depth=1
|
||||
# Zinit Annexes
|
||||
zinit light-mode for \
|
||||
|
||||
Reference in New Issue
Block a user