Am I the only one who leaves mine as is?
Bash PS1 Generator
71–80 of 146 posts
Re: Bash PS1 Generator
#72Re: Bash PS1 Generator
#73Re: Bash PS1 Generator
#74Re: Bash PS1 Generator
#75Earlier quoted context omitted.
It can be configured and the default has to be something. The main problem is that it’s just too slow, at least in my experience. Even stripped of some bloat it can take >1s to get the prompt printed. Not worth it, at all.
This has not been my experience at all. Then again, I only use 5 of all the plugins available.
Re: Bash PS1 Generator
#76I've been using this for years (output of 'echo $PS1' ): [\e[1;33m\u\e[1;32m@\e[1;31m\H \e[1;36m\t\e[0m] [\e[1;35m\w\e[0m](\e[1;32m\#\e[0m )\n$ which presents as: [User@HOST 10:21:07][~](2) $ (Username, hostname, 24 hour local time, CWD, history count, newline, prompt) More detail from my .bashrc: # Define some colors first: red='\e[0;31m' RED='\e[1;31m' blue='\e[0;34m' BLUE='\e[1;34m' cyan='\e[0;36m' CYAN='\e[1;36m'…
Re: Bash PS1 Generator
#77What is the best way to have the long directory line above the prompt? Using PS2 or PS3?
Re: Bash PS1 Generator
#78Earlier quoted context omitted.
It's too bloated. It has all kinds of built-in stuff with ugly defaults instead of just providing a framework with plugins.
If you like framework and plugins, try my own angel-PS1. https://github.com/dolmen/angel-PS1
Re: Bash PS1 Generator
#79You could even have colors be containers you put other elements inside to make it easier to visualize
Re: Bash PS1 Generator
#80I've been using this for years (output of 'echo $PS1' ): [\e[1;33m\u\e[1;32m@\e[1;31m\H \e[1;36m\t\e[0m] [\e[1;35m\w\e[0m](\e[1;32m\#\e[0m )\n$ which presents as: [User@HOST 10:21:07][~](2) $ (Username, hostname, 24 hour local time, CWD, history count, newline, prompt) More detail from my .bashrc: # Define some colors first: red='\e[0;31m' RED='\e[1;31m' blue='\e[0;34m' BLUE='\e[1;34m' cyan='\e[0;36m' CYAN='\e[1;36m'…