Last active
March 19, 2019 15:03
-
-
Save mattward/eec2dfad0c758f255a97 to your computer and use it in GitHub Desktop.
Useful .bashrc bits and bobs
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
# My lovely PS1 prompt, e.g. "matt@ziggy:~$ " | |
# The prompt is green but my input is white. Works best on a black background. | |
# PS1 is a shell variable not an environment variable - do not export | |
PS1='\[\e[0;32m\]\u@\h:\W\$\[\e[m\] ' | |
# Show your *public* ip address | |
alias myip='curl -s -S http://checkip.amazonaws.com' | |
# Copy your *public* ip address to the clipboard (Mac OS only) | |
alias myip-clip='echo -n $(myip) | pbcopy' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment