1

I opened up Git Bash which is basically a standard bash program. I deleted my .bashrc file and my .bash_profile file in my HOME directory and restarted the program. However when I type in alias, I notice I have aliases.

Image

Where is Git Bash saving these? There are no more text files (even hidden ones) in my HOME directory. How can I see where it is loading these? Thanks.

2
  • you're probably picking the aliases up from the system defaults -- /etc/profile and any files referenced in that script (/etc/bash.bashrc is common, as is files in /etc/profile.d/). specifics differ among distributions.
    – quixotic
    Feb 18, 2017 at 5:33
  • 6.2 Bash Startup Files
    – DavidPostill
    Feb 18, 2017 at 9:57

1 Answer 1

1

There are actually several files that are opened in the /etc directory. The most likely location is going to be in /etc/bash_completion.d but there are some others, have alook around /etc/profile.d, /etc/bashrc, /etc/bashrc.bashrc and so on depending on your distribution.

1
  • Thank you. What's weird is it says that those defaults will not be used if I have a bash profile or bash rc and yet it still uses them despite that. Any how, thank you.
    – Hatefiend
    Feb 18, 2017 at 5:37

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .