linux - Animated PS1 prompt BASH -


this question has answer here:

i'm aware has been asked before couldn't find answer wanted anywhere. need (would have) bash prompt looks this:

[ blah@blah ] > [ blah@blah ]  > [ blah@blah ]   > 

(then animation repeats) life of me can't figure out , i've been searching days (apparently not many people don't want animated prompt). want go through 1 frame of animation every 1/2 second every full animation 1 1/2 seconds long.

is there way can this? in advance , sorry if way explained bit confusing.

this got:

animation() { s="\033[s" u="\033[u"  pos="\033[1000d\033[2c" while [ : ]     eval echo -ne '${s}${pos}\>\ \ ${u}'     sleep 0.3     eval echo -ne '${s}${pos}\ \>\ ${u}'     sleep 0.3     eval echo -ne '${s}${pos}\ \ \>${u}'     sleep 0.3 done } ps1='[     ] : [ \u @ \h ] > ' animation & 

i modified script 1 of links put file , source or paste terminal simple animated prompt.


Comments

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -