Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

ubuntu customize Bash 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 :: add git in project 
Shell :: bash variable execute 
Shell :: git refresh .gitignore 
Shell :: read the file from shell 
Shell :: -u flag in git command 
Shell :: bash store script output in variable 
Shell :: installing haskell command 
Shell :: best code editor 
Shell :: installer composer windows 10 
Shell :: gitignore all files and folders in only one folder 
Shell :: enable system virtualization cmd 
Shell :: how to install mvnw 
Shell :: how to use github to setup projects 
Shell :: download pdf arranger ubuntu 
Shell :: rename folder shortcut 
Shell :: copy local repo 
Shell :: ubuntu nvm 
Shell :: sed from start to match 
Shell :: github download 
Shell :: cherry pick from another repository 
Shell :: ubuntu 22.04 server list services 
Shell :: linux unity reinstall 
Shell :: composer install ubuntu 
Shell :: config php.ini for magento@ 
Shell :: linux scp 
Shell :: docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?. 
Shell :: git push commands 
Shell :: restart fstab ununtu 
Shell :: bash ignore stderr 
Shell :: linux download from google drive private file 
ADD CONTENT
Topic
Content
Source link
Name
3+8 =