bash - Git .bash_profile Not Working With the Right-click -
my .bash_profile not working whenever right click folder , click git bash. works fine when open git bash desktop icon. here's .bash_profile:
source ~/git-completion.bash green="\[\033[0;32m\]" blue="\[\033[0;34m\]" purple="\[\033[0;35m\]" reset="\[\033[0m\]" source ~/git-prompt.sh export git_ps1_showdirtystate=1 export ps1="$green\u$green\$(__git_ps1)$blue \w $ $reset"
i tried searching far don't see answers or @ least hints answer question.
btw got code course in udacity called "using git , github". have discussion forum there enrolled in free course can't access it
thanks in advance!
bash sources .bash_profile
if opened login shell. when opening git bash right clicking on folder, not opened login shell bash not source .bash_profile
. correct file place settings .bashrc
, sourced bash in interactive non-login shells.
simply rename .bash_profile
.bashrc
.
Comments
Post a Comment