Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash change command prompt

$ sudo vi ~/.bashrc
# modify the PS1 var with options you want
PS1='s://u@H//A:w
$'
# s for the name of the shell
# u for the current username
# H for the domain name
# A for the time (w/o seconds)
# w for the current directory (pwd)
# 
 for a new line (big prompt)
# $ for the prompt (where the command is typed)

$ source ~/.bashrc
Comment

PREVIOUS NEXT
Code Example
Shell :: remove a directory in ubuntu 
Shell :: npm install latest available packages 
Shell :: INSTALL gedit on kali linux 
Shell :: setting up path in zsh 
Shell :: expo uninstall 
Shell :: shell script store command output in variable 
Shell :: how install hub on ubuntu 
Shell :: best code editors 2022 
Shell :: online shell script compiler 
Shell :: install brew mac 
Shell :: install windows fonts on linux 
Shell :: react day picker 
Shell :: Push an existing repository to an empty github repository 
Shell :: debian install docker 
Shell :: install docker debian 
Shell :: clone repo 
Shell :: how to copy a file in linux 
Shell :: sed until first match 
Shell :: latest package yarn dependencies 
Shell :: git reset soft 
Shell :: fatal pathspec is in submodule 
Shell :: How to check if ssh-agent is already running in bash 
Shell :: check port status linux 
Shell :: hsdpa modem software for linux 
Shell :: git new branch from current 
Shell :: order allow deny 
Shell :: windows cmd equivalent of grep 
Shell :: install radium 
Shell :: how to uninstall global babel jest npm 
Shell :: netcat file 
ADD CONTENT
Topic
Content
Source link
Name
4+3 =