From 7fd8c0d229859968f06bf5e3c47953d8f0376714 Mon Sep 17 00:00:00 2001 From: "flyingscorpio@arch-desktop" Date: Tue, 14 Jul 2020 23:23:19 +0200 Subject: [PATCH] Add pip command for agcomplete --- dotfiles/bash/bashrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dotfiles/bash/bashrc b/dotfiles/bash/bashrc index e36c297..21451bd 100644 --- a/dotfiles/bash/bashrc +++ b/dotfiles/bash/bashrc @@ -49,7 +49,10 @@ if [ -f "$HOME/.bash-git-prompt/gitprompt.sh" ]; then source ~/.bash-git-prompt/gitprompt.sh fi -eval "$(register-python-argcomplete schedule_timer)" +if pip show argcomplete >/dev/null 2>&1; then + eval "$(register-python-argcomplete schedule_timer)" +fi + case "$TERM" in xterm-kitty) source <(kitty + complete setup bash);;