Improve completions (bash-completions in zsh still broken)
This commit is contained in:
parent
8d2d9bf10c
commit
26aff394c0
3 changed files with 9 additions and 11 deletions
|
@ -29,13 +29,3 @@ _dott_completions()
|
|||
fi
|
||||
}
|
||||
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
|
||||
|
|
|
@ -9,7 +9,7 @@ set +a
|
|||
|
||||
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'\
|
||||
--tf '#f8f8f2'\
|
||||
--fb '#282a36'\
|
||||
|
|
|
@ -65,6 +65,14 @@ ZSH_CUSTOM=$ZDOTDIR/custom
|
|||
export plugin_path="$ZSH_CUSTOM/plugins"
|
||||
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?
|
||||
# Standard plugins can be found in $ZSH/plugins/
|
||||
|
|
Loading…
Reference in a new issue