From c85848e78d1214bab82e47c61415ed90e64774f4 Mon Sep 17 00:00:00 2001 From: Andrew Coleman Date: Mon, 5 Nov 2018 16:09:02 -0500 Subject: [PATCH] explicitly source bash completion and ignore powerline for vscode --- .bashrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 7d371c2..445f16f 100644 --- a/.bashrc +++ b/.bashrc @@ -1,4 +1,5 @@ test -f /etc/bashrc && . /etc/bashrc || true +test -f /etc/bash_completion && . /etc/bash_completion || true test -f $HOME/.bash_aliases && . $HOME/.bash_aliases || true #export AWS_ACCESS_KEY_ID= @@ -29,7 +30,7 @@ for k in $HOME/bin/*.bash ; do . $k ; done function _update_ps1() { PS1="$(powerline-go -error $?)" } -if [[ $(which powerline-go 2>/dev/null) && "$TERM" != "linux" ]]; then +if [[ $(which powerline-go 2>/dev/null) && "$TERM" != "linux" && "$TERM_PROGRAM" != "vscode" ]]; then PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND" else PS1='[\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w$(__git_ps1 " (%s)")\[\033[00m\]]\$ '