HACKER Q&A
📣 victorbojica

What does your .bashrc file contain


For the past weeks i've gotten a muscle memory for the ll command. Because i'm on Mac OS, it's not avaialable by default, so i've added it to my .bashrc file.

This made me wonder what else i've been missing on.


  👤 simonblack Accepted Answer ✓
My .bashrc has 128 lines, including:

Customised prompt, showing HOSTNAME, LOGNAME, current directory, git status, user-level indicator: ("centrepoint [jvs] /home/jvs/wrk/horizon/src [dev*] > ") The user-level indicator shows '> ' for a normal user, and '# ' for the root user, though the LOGNAME also changes from 'jvs' to 'root'.

Git-Branch/Status indicator. ('Am I in the "dev" branch, or still in "master"?')

Various aliases.

Various environmental variables. (personalised $PATH, etc)

Various pieces of configuration data held in environmental variables. (selected printer, newsgroup server and login info, personalised text editor, etc)

Local timezone setting.