git-sh icon indicating copy to clipboard operation
git-sh copied to clipboard

Adding support for .bash_profile

Open taupecat opened this issue 11 years ago • 3 comments

Most OS X systems have .bash_profile files, not .bashrc. This pull request adds .bash_profile sourcing.

taupecat avatar May 22 '13 20:05 taupecat

One of my many OSX pet peeves. I think most unix junkies end up eventually symlinking ~/.bashrc to ~/.bash_profile after getting burned by this. But anyways, nice fix! However I think it'd be nicer if this fix only modified one of the two files (ie, if/elif), otherwise the file will be sourced twice if the user has both files (not uncommon in my experience).

nikreiman avatar May 23 '13 07:05 nikreiman

Hadn't thought of symlinking. Seems obvious in retrospect. At first, I just put a "source ~/.bash_profile" in an otherwise empty .bashrc file before deciding that was too clunky and it was just as easy to change the build script.

I'll try adding the logic at some point.

Something else that was bugging me working with git-sh yesterday was its lack of support for git-flow, an add-on that I think is fairly popular (at least, we use it heavily where I work). I'll see what's involved in adding that as well.

taupecat avatar May 23 '13 13:05 taupecat

Hello,

I've merged the 'git flow' alias into my fork at https://github.com/vlad2/git-sh.

I didn't merge the rest of the .bash_profile changes, as they overwrite the .bashrc usage, which would ruin the fun of Linux users, at least in the current state of this pull request. I wanted to merge the entire pull request at first, I thought it would make it work on both Linux/OSX.

vlad2 avatar Mar 13 '17 23:03 vlad2