Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

custom prompt in shell / bash

# Temporary method

export PS1="Your Custom Prompt"

# Permanant method

sudo nano ~/.bashrc
#Type your password
#Then in nano go to the last line, press ENTER and type PS1="Your Custom Prompt"
#Press CTRL+X and press y and save the file as .bashrc

source ~/.bashrc
 
PREVIOUS NEXT
Tagged: #custom #prompt #shell #bash
ADD COMMENT
Topic
Name
9+5 =