summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-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