mirror of
https://github.com/onceupon/Bash-Oneliner.git
synced 2025-02-16 15:22:44 +00:00
update
- Edit PS1 variable for bash
This commit is contained in:
parent
ad6e6112f1
commit
27da2e897b
@ -1553,11 +1553,13 @@ useradd username
|
|||||||
passwd username
|
passwd username
|
||||||
```
|
```
|
||||||
|
|
||||||
##### Edit variable for bash, (e.g. displaying the whole path)
|
##### Edit PS1 variable for bash (e.g. displaying the whole path)
|
||||||
```bash
|
```bash
|
||||||
1. joe ~/.bash_profile
|
1. vi ~/.bash_profile
|
||||||
2. export PS1='\u@\h:\w\$'
|
2. export PS1='\u@\h:\w\$'
|
||||||
# $PS1 is a variable that defines the makeup and style of the command prompt
|
# $PS1 is a variable that defines the makeup and style of the command prompt
|
||||||
|
# You could use emojis and add timestamp to every prompt using the following value:
|
||||||
|
# export PS1="\t@🦁:\w\$ "
|
||||||
3. source ~/.bash_profile
|
3. source ~/.bash_profile
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user