update to universalvars

This commit is contained in:
kp2pml30 2024-09-01 11:02:55 +03:00
parent 9b79d32c60
commit 8971348f5b
3 changed files with 33 additions and 13 deletions

View file

@ -0,0 +1,19 @@
function 'scrap-default-tool-paths'
set -le NP
for dir in "$HOME/.cargo/bin" "$HOME/.local/bin" "$HOME/.bin" "$HOME/.ghcup/bin" "$HOME/.cabal/bin"
if test -d "$dir"
echo "$dir exists"
set -a NP "$dir"
end
end
echo "found path is $NP"
set -U KP2PATH "$NP"
set -l IFS ''
set -le COMPLETIONS
if command -v poetry > /dev/null
set -l out (poetry completions fish)
set COMPLETIONS "$COMPLETIONS"\n"$out"
end
set -U KP2COMPLETIONS "$COMPLETIONS"
end