Skip to content

Commit

Permalink
fix: add in missing sourcing for bash's shell integration (#102)
Browse files Browse the repository at this point in the history
Signed-off-by: Chapman Pendery <cpendery@vt.edu>
  • Loading branch information
cpendery authored Dec 5, 2023
1 parent 8f75afc commit 59f56fe
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion shell/shellIntegration.bash
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
if [ -r ~/.bashrc ]; then
. ~/.bashrc
fi
if [ -r /etc/profile ]; then
. /etc/profile
fi
if [ -r ~/.bash_profile ]; then
. ~/.bash_profile
elif [ -r ~/.bash_login ]; then
. ~/.bash_login
elif [ -r ~/.profile ]; then
. ~/.profile
fi

__is_prompt_start() {
builtin printf '\e]6973;PS\a'
}
Expand All @@ -10,7 +24,7 @@ __is_update_prompt() {
if [[ "$__is_custom_PS1" == "" || "$__is_custom_PS1" != "$PS1" ]]; then
__is_original_PS1=$PS1
__is_custom_PS1="\[$(__is_prompt_start)\]$__is_original_PS1\[$(__is_prompt_end)\]"
PS1="$__is_custom_PS1"
export PS1="$__is_custom_PS1"
fi
}

Expand Down

0 comments on commit 59f56fe

Please # to comment.