Skip to content

Instantly share code, notes, and snippets.

@Zeklandia
Last active December 16, 2015 23:59
Show Gist options
  • Save Zeklandia/5517744 to your computer and use it in GitHub Desktop.
Save Zeklandia/5517744 to your computer and use it in GitHub Desktop.
The environmental variable for the bash prefix to your commands. This can also be set in `/etc/bash.bashrc`
#!/bin/bash
PS1='\[\e[0;0m\e[1;30m\][\[\e[1;97m\]\d\[\e[1;30m\], \[\e[1;97m\]\t\[\e[1;30m\]]\n\[\e[1;30m\][\[\e[0;36m\]\u\[\e[1;30m\]@\[\e[0;36m\]\h\[\e[1;30m\]]\n\[\e[1;30m\][\[\e[0;37m\]\w\[\e[1;30m\]] \[\e[1;37m\]\$\[\e[0m\] '
@Zeklandia
Copy link
Author

To install this, do nano /etc/bash.bashrc and replace the existing line that starts in PS1= and replace it with this one. You will have to remove all user .bashrcs by doing rm /*/.bashrc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment