~/.bashrc: Difference between revisions

From LWP-Wiki
Jump to navigation Jump to search
(Created page with "Category:misc-faq ==== New .bashrc ==== Every user can create their own .bashrc file in their home directory. By adding your personal settings to the .bashrc they will ge...")
 
No edit summary
Line 5: Line 5:


If the file doesn't already exist, you can create it any number of ways, here's one:
If the file doesn't already exist, you can create it any number of ways, here's one:
     echo "#!/bin/bash" ~/.bashrc
     echo "#!/bin/bash" > ~/.bashrc


Fill it with whatever you want and to add your new settings to the active terminal:
Fill it with whatever you want and to add your new settings to the active terminal:

Revision as of 14:40, 31 March 2015

New .bashrc

Every user can create their own .bashrc file in their home directory. By adding your personal settings to the .bashrc they will get set whenever you open a terminal. You can add extra aliases for commands or give your command prompt a different look, etc... any settings you want by default, but don't want to set every time you log in.

If the file doesn't already exist, you can create it any number of ways, here's one:

   echo "#!/bin/bash" > ~/.bashrc

Fill it with whatever you want and to add your new settings to the active terminal:

   source .bashrc

The "sourcing" happens automatically when you open a new terminal.