1
0

adjust completion in zsh

This commit is contained in:
2025-03-30 10:37:25 +02:00
parent e5bfcdac99
commit 81c3491c57
4 changed files with 8 additions and 18 deletions

3
.gitmodules vendored
View File

@@ -4,3 +4,6 @@
[submodule "scripts/pokemon-colorscripts"]
path = scripts/pokemon-colorscripts
url = https://gitlab.com/phoneybadger/pokemon-colorscripts.git
[submodule "zsh/zsh-autosuggestions"]
path = zsh/zsh-autosuggestions
url = https://github.com/zsh-users/zsh-autosuggestions

View File

@@ -31,8 +31,11 @@ esac
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
# Set fpath before sourcing completion.zsh
fpath=("$DOTFILES/zsh/zsh-completions/src" $fpath)
# Source completion configuration
source "$DOTFILES/zsh/completion.zsh"
fpath=("$DOTFILES/zsh/zsh-completions/src" "$fpath")
source "$DOTFILES/zsh/zsh-autosuggestions/zsh-autosuggestions.zsh"
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"

View File

@@ -1,26 +1,9 @@
# ____ ___ __ __ ____ _ _____ _____ ___ ___ _ _
# / ___/ _ \| \/ | _ \| | | ____|_ _|_ _/ _ \| \ | |
# | | | | | | |\/| | |_) | | | _| | | | | | | | \| |
# | |__| |_| | | | | __/| |___| |___ | | | | |_| | |\ |
# \____\___/|_| |_|_| |_____|_____| |_| |___\___/|_| \_|
#
# +---------+
# | General |
# +---------+
# source ./gambit.zsh
# Should be called before compinit
zmodload zsh/complist
autoload -U compinit; compinit
_comp_options+=(globdots) # With hidden files
# Only work with the Zsh function vman
# See $DOTFILES/zsh/scripts.zsh
compdef vman="man"
# +---------+
# | Options |
# +---------+