CCCPaste

BASH PROMPT examples

#notes https://linuxconfig.org/bash-prompt-basics

PS1="[PROMPT] "

#current working directory
PS1="[\w]$ "

#host and user
PS1="[\h]$ "
PS1="[\u]$ "
PS1="[\u@\h]$ "

#multiline
PS1="[\u@\h]\n[\w]$ "
PS1="╭─[\u@\h]\n╰─[\w]$ "

#date and time
PS1="╭─[\u@\h][\d \t]\n╰─[\w]$ "

#colors
PS1="\[\e[035m╭─[\u@\h]\n╰─[\w]$ "
#reset color
PS1="\[\e[035m╭─[\u@\h]\n╰─[\w]$ \[\033[00m\]"
PS1="\[\e[035m╭─\[\e[034m[\u@\h]\n\[\e[035m╰─[\w]$ \[\e[00m\]"
PS1="\[\e[035m╭─\[\e[034m[\u@\h]\n\[\e[035m╰─\[\e[036m[\w]$ \[\e[00m\]"
PS1="\[\e[035m╭─\[\e[034m[\u@\h] \[\e[031m[\d \t]\n\[\e[035m╰─\[\e[036m[\w]$ \[\e[00m\]"
PS1="\[\e[035m╭─\[\e[034m[\u@\h] \[\e[031m[\d \t]\n\[\e[035m╰─\[\e[036m[\w] \[\e[033m$ \[\e[00m\]"

PS1="\[\e[035m╭─\[\e[034m[\u@\h] \[\e[031m[\d \t]\n\[\e[035m╰─\[\e[036m[\w] \[\e[031m💀#\[\e[00m\] "