GUIDE

The road ahead will be long and our climb will be steep

Set Prompt String in Shell on Mac

| Comments

PS1

Custom Path
1
2
3
4
# echo $PS1
# \h:\W \u\$

export PS1='$(whoami)@$(hostname):$(pwd)'
Full Folder Path
1
export PS1='$(pwd): '
Current Folder Path
1
export PS1='${PWD##*/}: '
Recommend Settings
1
2
3
export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\W\[\033[m\]\$ "

Comments