summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2024-01-23 08:59:01 -0800
committerMike Crute <mike@crute.us>2024-01-23 08:59:01 -0800
commitd50c5ff0d2fc571e955c74e5fb83985e7a4b009f (patch)
tree4e1f1a8018d74ba8e2d2f1fa6e7fc6aa8c18dba4
parentc1d5a5cc4b23c96a12e3201a071ff2c081daba8d (diff)
downloaddotfiles-d50c5ff0d2fc571e955c74e5fb83985e7a4b009f.tar.bz2
dotfiles-d50c5ff0d2fc571e955c74e5fb83985e7a4b009f.tar.xz
dotfiles-d50c5ff0d2fc571e955c74e5fb83985e7a4b009f.zip
Prompt3 fixes
-rw-r--r--.bashrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 12f5e6e..cec587e 100644
--- a/.bashrc
+++ b/.bashrc
@@ -108,6 +108,14 @@ set bell-style none
108set completion-ignore-case on 108set completion-ignore-case on
109 109
110MY_SHELL=$(ps -o command -p $$ | awk '/^[^C]/ { print $1 }') 110MY_SHELL=$(ps -o command -p $$ | awk '/^[^C]/ { print $1 }')
111
112# Prompt 3 runs through a host process that breaks normal shell detection
113# but this can be discovered by looking at the PPID. This might be a bug
114# in Prompt because it exposes the shell as just "-l".
115if [[ "$(ps -c -o command -p $PPID | tail -n1)" =~ "PromptLocalTerminal" ]]; then
116 MY_SHELL="bash"
117fi
118
111if [[ "$MY_SHELL" =~ "bash" ]]; then 119if [[ "$MY_SHELL" =~ "bash" ]]; then
112 shopt -s checkwinsize 120 shopt -s checkwinsize
113 shopt -s cdspell 121 shopt -s cdspell