fix .bashrc: no bin file tput 則略過畫線功能
This commit is contained in:
parent
e78d2547c2
commit
c4c518707f
@ -183,11 +183,13 @@ function __pb10k_top {
|
|||||||
[ "$info" != "" ] && __pb10k_top_left_parse "$info"
|
[ "$info" != "" ] && __pb10k_top_left_parse "$info"
|
||||||
done
|
done
|
||||||
|
|
||||||
terminal_width=$(tput cols)
|
if command -v tput &> /dev/null; then
|
||||||
filler_character="─"
|
terminal_width=$(tput cols)
|
||||||
__TOP_LEFT+="$_omb_prompt_black"
|
filler_character="─"
|
||||||
__TOP_LEFT+="$(for ((i=0; i<"$terminal_width"; i++)); do printf "%s" "$filler_character"; done)"
|
__TOP_LEFT+="$_omb_prompt_black"
|
||||||
__TOP_LEFT+="\033[${terminal_width}G\033[1K\033[1A"
|
__TOP_LEFT+="$(for ((i=0; i<"$terminal_width"; i++)); do printf "%s" "$filler_character"; done)"
|
||||||
|
__TOP_LEFT+="\033[${terminal_width}G\033[1K\033[1A"
|
||||||
|
fi
|
||||||
|
|
||||||
IFS=" " read -ra segments <<< "$__PB10K_TOP_RIGHT"
|
IFS=" " read -ra segments <<< "$__PB10K_TOP_RIGHT"
|
||||||
for seg in "${segments[@]}"; do
|
for seg in "${segments[@]}"; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user