-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path99-uprompt.sh
More file actions
31 lines (31 loc) · 926 Bytes
/
99-uprompt.sh
File metadata and controls
31 lines (31 loc) · 926 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#unicode_prompt () {
# Last_Command=$? # Must come first!
# Blue='\[\e[01;34m\]'
# White='\[\e[01;37m\]'
# Red='\[\e[01;31m\]'
# Green='\[\e[01;32m\]'
# Reset='\[\e[00m\]'
# FancyX='\342\234\227'
# Checkmark='\342\234\223'
#
# # Add a bright white exit status for the last command
# PS1="$White\$? "
# # If it was successful, print a green check mark. Otherwise, print
# # a red X.
# if [[ $Last_Command == 0 ]]; then
# PS1+="$Green$Checkmark "
# else
# PS1+="$Red$FancyX "
# fi
# # If root, just print the host in red. Otherwise, print the current user
# # and host in green.
# if [[ $EUID == 0 ]]; then
# PS1+="$Red\\h "
# else
# PS1+="$Green\\u@\\h "
# fi
# # Print the working directory and prompt marker in blue, and reset
# # the text color to the default.
# PS1+="$Blue\\w \\\$$Reset "
#}
#PROMPT_COMMAND='unicode_prompt'