Improve completions (bash-completions in zsh still broken)

This commit is contained in:
Tobias Reisinger 2024-01-27 20:44:38 +01:00
parent 8d2d9bf10c
commit 26aff394c0
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
3 changed files with 9 additions and 11 deletions

View file

@ -29,13 +29,3 @@ _dott_completions()
fi fi
} }
complete -F _dott_completions ".t" complete -F _dott_completions ".t"
completions_dir="$XDG_CONFIG_HOME/completionsrc.d/"
if [ -n "$(ls "$completions_dir" 2>/dev/null)" ]
then
for additional_completions in "$completions_dir"*
do
# shellcheck disable=1090
. "$additional_completions"
done
fi

View file

@ -9,7 +9,7 @@ set +a
export AUTOSTART_DISPLAY='' export AUTOSTART_DISPLAY=''
export BASH_COMPLETION_USER_DIR="$XDG_DATA_HOME" export BASH_COMPLETION_USER_DIR="$XDG_DATA_HOME/bash-completion"
export BEMENU_OPTS="--tb '#6272a4'\ export BEMENU_OPTS="--tb '#6272a4'\
--tf '#f8f8f2'\ --tf '#f8f8f2'\
--fb '#282a36'\ --fb '#282a36'\

View file

@ -65,6 +65,14 @@ ZSH_CUSTOM=$ZDOTDIR/custom
export plugin_path="$ZSH_CUSTOM/plugins" export plugin_path="$ZSH_CUSTOM/plugins"
autoinstall run oh-my-zsh autoinstall run oh-my-zsh
nix_completions="$HOME/.nix-profile/share/zsh/site-functions"
if [ -d "$nix_completions" ]; then
fpath=($nix_completions $fpath)
fi
fpath=(
"$XDG_DATA_HOME/zsh/site-functions"
$fpath
)
# Which plugins would you like to load? # Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/ # Standard plugins can be found in $ZSH/plugins/