Last active
August 29, 2015 14:06
-
-
Save ElectricCoffee/87db3b190bacba0d5753 to your computer and use it in GitHub Desktop.
custom string for a fancy bash prompt
This file contains hidden or 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
# Fancy prompt | |
# \u = user, \H = hostname, \D = formatted date, \A 24-hour time in hours:minutes | |
# \w = full path of current working directory, with ~ as home, \$ for # when root and $ when user | |
# example output: | |
# ╓[ElectricCoffee]─[coffeebook-pro]─[2014-09-22, 21:58]─[~/Desktop] | |
# ╙[$]-[ | |
PS1="╓[\u]─[\H]─[\D{%Y-%m-%d}, \A]─[\w]\n╙[\$]-[" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment