Fix vscode failure to resolve shell.
This commit is contained in:
parent
8fd7494aac
commit
bbb5b2a7b8
@ -47,7 +47,9 @@ if [ -e ~/.bash_secrets ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
|
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ]; then
|
||||||
exec tmux
|
if ! pstree -s $$ | grep -wq code; then
|
||||||
|
exec tmux >/dev/null 2>&1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Set the default terminal to use konsole, with kapper profile
|
# Set the default terminal to use konsole, with kapper profile
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user