new sps completion

This commit is contained in:
Jonas Forsberg 2020-06-13 17:17:25 +02:00
parent dc43f5bdba
commit 9f8fd4773e
No known key found for this signature in database
GPG Key ID: F2E9818C70350CC9

View File

@ -33,11 +33,4 @@ fi
[[ "$(type -t dotf)" == "alias" ]] && [[ "$(type -t __git_complete)" == "function" ]] && __git_complete dotf _git [[ "$(type -t dotf)" == "alias" ]] && [[ "$(type -t __git_complete)" == "function" ]] && __git_complete dotf _git
[[ "$(type -t _todo)" == "function" ]] && complete -F _todo t [[ "$(type -t _todo)" == "function" ]] && complete -F _todo t
if [[ "$(type -t sps)" == "file" ]];then [[ "$(type -t _todo)" == "function" ]] && source <(sps completion bash)
if [[ -f "$HOME/.sps.completion" ]];then
source "$HOME/.sps.completion"
else
sps completion bash > "$HOME/.sps.completion"
source "$HOME/.sps.completion"
fi
fi