Linked Questions

63
votes
6answers
2k views

Choosing between .bashrc, .profile, .bash_profile, etc [duplicate]

This is embarrassing, but after many years of using POSIX systems full time, I still have a hard time figuring out if a shell customization should go in .bashrc, .profile, or somewhere else. Not to ...
20
votes
4answers
29k views

What's the difference between .profile and .bash_profile, and when do you configure which? (Mac) [duplicate]

Possible Duplicate: Difference between .bashrc and .bash_profile What's the difference between .profile and .bash_profile, and when do you configure which? I.e if I configure the ...
14
votes
2answers
15k views

Environment variables in bash_profile or bashrc?

I have found this question [blog]: Difference between .bashrc and .bash_profile very useful but after seeing the most voted answer (very good by the way) I have further questions. Towards the end of ...
10
votes
2answers
8k views

How do I modify my git bash profile in Windows?

I'm using Git Bash on Windows 7 and would like to set up bash profile aliases such as alias gs='git status' to make my life easier. How can I do this?
9
votes
2answers
15k views

Open gnome terminal programmatically and execute commands after bashrc was executed

For starting my dev environment I wrote a little script. One part is to open a gnome terminal with several tabs where automatically some commands should be executed. Some of those commands depend on ...
6
votes
1answer
2k views

Make OS X Terminal commands I type BOLD

I'd like to make commands I've typed (input) into terminal stand out from all the output. For example: imac:~ buster$ chmod -R g-w myfolder imac:~ buster$ cd myfolder imac:myfolder buster$ ls -l ...
5
votes
1answer
3k views

export PATH= not holding in Bash OS X

This is somewhat of a noob question but I'm having problems adding to my path and can't remember how I got changes working the last time I did it. So I'm using the command "export ...
4
votes
1answer
609 views

Bash shell: how to reconcile portable configuration files and GUI terminal start-up types (login or interactive)?

In an attempt to "properly" implement a standard configuration of my preferred shell, bash, for use across multiple platforms, I've come across some confusion when dealing with terminals that are ...
3
votes
1answer
3k views

Adjusting $PATH in /etc/profile does not affect root

H I added a directory to the $PATH variable in /etc/profile. This works for my user account but not for root. It's easy to add it to my /root/.bashrc but I would like to understand whats's wrong. ...
3
votes
1answer
828 views

Where do I initialize my environment when the shell loads?

I am using bash shell and have content in my .bashrc. When Terminal app opens (on my mac), this file however is not initialized. I am always able to manually . ./.bashrc, however i'd rather not have ...
2
votes
4answers
3k views

Aliases in .bash_profile do not work

I have added some cd blah blah commands as alias in my .bash_login so as to ease changing directories.It was working fine .Suddenly though none of the aliases in there work .It says command not found ...
2
votes
2answers
456 views

Confused about setting environment variables

I've been trying to set some environment variables for hours and it does not work grml Here the setting: I use Debian 6 and there the terminal from the desktop. In this window, I type "su" to login ...
2
votes
1answer
775 views

Why is there a .bash_profile and .bashrc, they seem to do the same thing? [duplicate]

Possible Duplicates: When does mac/ubuntu use .bash_profile and/or .bashrc? Difference between .bashrc and .bash_profile I loaded up ubuntu on a vm on my windows computer, and my ...

15 30 50 per page