I am using bash on Windows and the bash prompt string I see is too big: [email protected]:/#, I would rather like it to be a hash (#) or a dollar ($) sigh, let's see how we can change it,
- Open bash,
- Type su root to switch to root account,
- Now type nano ~/.bashrc to open the bashrc file where we will set the PS1 prompt configuration,
- At the end of the file type PS1="\e[0;32m $ \e[0m",
- Press Ctrl + O and Enter, and press Ctrl + O to exit,
- Either close the bash terminal or type source ~/.bashrc to apply changes,
- You prompt now should be in a $ green color.
Change Bash Prompt String
More Posts related to Linux,
More Posts:
- SharePoint An unexpected error has occurred - Correlation ID and Merge-SPlogfile - SharePoint
- MySQL : Error :1004 SQLSTATE: HY000 (ER_CANT_CREATE_FILE) Can't create file - MySQL
- [Solved] Bootstrap tooltip not working - Bootstrap
- Android Error Generating Final Archive - Debug Certificate Expired - Android
- No Android device found : Android File Transfer App Mac OS X - Android
- Simple Login Page using Bootstrap - Bootstrap
- JDK Location in Android Studio - Android-Studio
- How to word wrap in HTML - Html
- Setting up RSS feeds notifications within Outlook - HowTos
- How to change TextView or EditText Text Color on Focus and on Press - Android
- [Solved] com.sun.xml.ws.transport.http.servlet.WSServletContextListener ClassNotFoundException - Java
- vi undo command - Mac-OS-X
- How to send SMS on Android Emulator - Android
- Java XML-RPC java.net.BindException: Address already in use - Java
- Change Google Chrome Browsers default download location - Chrome