From ccdbd6417d7325da8fc17e8a72babe73ae215279 Mon Sep 17 00:00:00 2001 From: Jonas Forsberg Date: Thu, 4 Jun 2020 12:47:57 +0200 Subject: [PATCH] New source for new sps --- .bashrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 2e9d70e..60e6643 100644 --- a/.bashrc +++ b/.bashrc @@ -28,8 +28,16 @@ fi [[ -f "$HOME/.functions.sh" ]] && source ~/.functions.sh -[[ -f "$HOME/Develop/sps/completion.sh" ]] && source ~/Develop/sps/completion.sh [[ -f "$HOME/Develop/MyDot/completion.sh" ]] && source ~/Develop/MyDot/completion.sh [[ "$(type -t dotf)" == "alias" ]] && [[ "$(type -t __git_complete)" == "function" ]] && __git_complete dotf _git [[ "$(type -t _todo)" == "function" ]] && complete -F _todo t + +if [[ "$(type -t sps)" == "file" ]];then + if [[ -f "$HOME/.sps.completion" ]];then + source "$HOME/.sps.completion" + else + sps completion bash > "$HOME/.sps.completion" + source "$HOME/.sps.completion" + fi +fi