Skip to content

Instantly share code, notes, and snippets.

@ElectricCoffee
Last active August 29, 2015 14:06
Show Gist options
  • Save ElectricCoffee/87db3b190bacba0d5753 to your computer and use it in GitHub Desktop.
Save ElectricCoffee/87db3b190bacba0d5753 to your computer and use it in GitHub Desktop.
custom string for a fancy bash prompt
# 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