Last active
July 2, 2021 02:17
-
-
Save sarah-j-smith/9eb3ca97aafc57b6f8ebd9c09bb76543 to your computer and use it in GitHub Desktop.
Simple .bashrc that creates a blue prompt line with the current path. The .bash_profile also turns on colorisation for `ls` (list files) output; and has some examples for other improvements.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source ~/.bashrc | |
# Have an ls that is in color by default | |
alias ls='ls -G ' | |
# Use the tree command - need to install it first from here | |
# http://andre-als.blogspot.com.au/2012/02/how-to-install-command-tree-for-mac.html | |
alias tree='tree -C ' | |
# Create a nice short cut for git logs | |
alias gitshort='git log --pretty=format:"%h%x09%an%x09%ad%x09%s"' | |
# Use a personal bin directory for handy scripts | |
PATH="$HOME/bin:$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PS1="\[\033[1;34m\]\w $\[\033[0m\] " | |
export PS2="> " |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export LSCOLORS=gxfxcxdxbxegedabagacad | |
export CLICOLOR=1 | |
export PS1="\[\033[1;32m\]\w $\[\033[0m\] " | |
export PS2="> " |
Added an updated set of options for dark background terminal.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To install on Mac, right-click the
Raw
buttons above and choose download. Then using the Terminal / command line:These work great on Mac and may work on other machines with a Unix-like shell. After installing every new Terminal window will show the nice colorised output - so start a new Terminal now and test it out.