U:prompt.sh
This commit is contained in:
parent
9a757b3610
commit
f287212ca8
1 changed files with 46 additions and 4 deletions
|
@ -5,7 +5,49 @@
|
|||
# FG noir + BG bleu 48;5;39;38;5;16m
|
||||
# FG bleu 38;5;39m
|
||||
|
||||
PS1=$'\n\e[0m\e[38;5;208m\uE0B6\e[48;5;208;38;5;16m\u \
|
||||
\e[48;5;214;38;5;16m \uEA83 \w \
|
||||
\e[48;5;39;38;5;16m $(date +%H:%M:%S) [$?]\e[0m\e[38;5;39m\uE0B4\e[0m\n\
|
||||
\e[38;5;208m\u25B6\e[0m '
|
||||
# VARIABLES
|
||||
declare -r fg_orange='\001\e[38;5;208m\002'
|
||||
declare -r fg_bleu='\001\e[38;5;39m\002'
|
||||
declare -r fg_noir='\001\e[38;5;16m\002'
|
||||
declare -r bg_orange='\001\e[48;5;208m\002'
|
||||
declare -r bg_jaune='\001\e[48;5;214m\002'
|
||||
declare -r bg_bleu='\001\e[48;5;39m\002'
|
||||
declare -r reset='\001\e[0m\002'
|
||||
|
||||
# FONCTIONS
|
||||
p_start() {
|
||||
echo -e "\n${reset}${fg_orange}\uE0B6"
|
||||
}
|
||||
|
||||
p_user() {
|
||||
echo -e "${bg_orange}${fg_noir}\u"
|
||||
}
|
||||
|
||||
p_path() {
|
||||
echo -e "${bg_jaune} \uEA83 \w"
|
||||
}
|
||||
|
||||
p_date() {
|
||||
echo -e "${bg_bleu} $(date +%H:%M:%S) [$?]${reset}"
|
||||
}
|
||||
|
||||
p_end() {
|
||||
echo -e "${fg_bleu}\uE0B4${reset}"
|
||||
}
|
||||
|
||||
|
||||
p_input() {
|
||||
echo -e "${fg_orange}\u25B6${reset}"
|
||||
}
|
||||
|
||||
PS1="$(p_start)$(p_user) $(p_path) $(p_date)$(p_end)\n$(p_input) "
|
||||
|
||||
#PS1=$'\n\e[0m\e[38;5;208m\uE0B6\e[48;5;208;38;5;16m\u \
|
||||
#\e[48;5;214;38;5;16m \uEA83 \w \
|
||||
#\e[48;5;39;38;5;16m $(date +%H:%M:%S) [$?]\e[0m\e[38;5;39m\uE0B4\e[0m\n\
|
||||
#\e[38;5;208m\u25B6\e[0m '
|
||||
|
||||
#PS1="\n${reset}${fg_orange}\uE0B6${bg_orange}${fg_noir}\u \
|
||||
#${bg_jaune} \uEA83 \w \
|
||||
#${bg_bleu} $(date +%H:%M:%S) [$?]${reset}${fg_bleu}\uE0B4${reset}\n\
|
||||
#${fg_orange}\u25B6${reset}"
|
||||
|
|
Loading…
Reference in a new issue