Initial commit.
This commit is contained in:
18
bash/bash_prompt
Normal file
18
bash/bash_prompt
Normal file
@@ -0,0 +1,18 @@
|
||||
### File to set the prompt of bash. Read by ~/.bashrc
|
||||
###
|
||||
### Usable veriables:
|
||||
### \h Hostname auf dem die Shell läuft bis zum ersten "."
|
||||
### \H Hostname komplett
|
||||
### \t Uhrzeit im 24-Stunden Format (hh:mm:ss)
|
||||
### \T Uhrzeit im 12-Stunden Format (hh:mm:ss)
|
||||
### \u Name des Nutzers, der die Shell gestartet hat
|
||||
### \w momentanes Arbeitsverzeichnis
|
||||
### \W letzte Komponente des Arbeitsverzeichnisses
|
||||
### \$ Wenn root ein "#", sonst ein "$"
|
||||
### \\ Backslash
|
||||
|
||||
export PS1="\[${BLUE}\][\t] [\!] \[${GREEN}\]\u\[${NC}\]@\[${RED}\]\h\[${NC}\]:\[${YELLOW}\] \w \[${NC}\]\$> "
|
||||
|
||||
#export PS1=">"
|
||||
|
||||
#export PS1="[\t] [\!] \u@\h: \w \$> "
|
||||
Reference in New Issue
Block a user