Users browsing this thread: 9 Guest(s)
josuah
Long time nixers
I had multiple prompts. My first was 4 lines! Furthermore, I am using bash (just because I do not always work on my machine and bash is everywhere), so each tab was redisplaying these 4 lines + the completion!

- Empty line
- A whol useless delimiter line ──────
- The time of execution (current time), directory, git branch.
- number of jobs, last error number green or red, actual prompt string: >

A workaround was to use PROMPT_FUNCTION='_prompt', and in the prompt function, there were a call to printf, that has the advantage to:

- Permit to print a right prompt;
- Permit to print some string anywhere in the terminal, like at the top, to display the path, time, etc there instead of bloating the prompt;
- Set the terminal window title;
- Is not redisplayed after each completion;
- Can catch the last exit job.

I removed the ──────. Following <a href="http://github.com/dcat/swm">dcat screen</a> and z3bra advises, I removed even the path, and now, and it is as small as this:

<img src="http://i.imgur.com/whozZpC.png">

A bit like gurhush but still with a newline for clarity, and darthlukan, but with colors to indicate the different states rather than strings. I use the same in my <code><a href="http://blog.z3bra.org/2013/11/plain-old-mails.html">.mailrc</a></code>.

To get colors in the bash completion, you can ad this readline option in you .inputrc:

<pre>set colored-stats on</pre>


Messages In This Thread
Your PROMPT - by venam - 24-10-2012, 12:34 PM
RE: Your PROMPT - by simon - 24-10-2012, 12:56 PM
RE: Your PROMPT - by fb0x - 24-10-2012, 01:04 PM
RE: Your PROMPT - by crshd - 24-10-2012, 02:09 PM
RE: Your PROMPT - by Mafia - 24-10-2012, 02:10 PM
RE: Your PROMPT - by bash - 20-11-2012, 05:18 PM
RE: Your PROMPT - by Mafia - 21-11-2012, 07:28 PM
RE: Your PROMPT - by gurhush - 20-11-2012, 06:10 PM
RE: Your PROMPT - by zygotb - 21-11-2012, 01:21 AM
RE: Your PROMPT - by crshd - 21-11-2012, 11:11 PM
RE: Your PROMPT - by gurhush - 09-12-2012, 05:30 AM
RE: Your PROMPT - by TheHotBot - 09-12-2012, 08:22 AM
RE: Your PROMPT - by yrmt - 09-12-2012, 09:50 AM
RE: Your PROMPT - by gurhush - 24-12-2012, 02:57 PM
RE: Your PROMPT - by yrmt - 24-12-2012, 05:07 PM
RE: Your PROMPT - by crshd - 09-12-2012, 11:27 AM
RE: Your PROMPT - by yrmt - 09-12-2012, 12:26 PM
RE: Your PROMPT - by yrmt - 13-12-2012, 03:14 PM
RE: Your PROMPT - by crshd - 14-12-2012, 06:31 AM
RE: Your PROMPT - by gurhush - 25-12-2012, 11:37 PM
RE: Your PROMPT - by gurhush - 09-01-2013, 06:05 AM
RE: Your PROMPT - by Ivyl - 12-01-2013, 12:41 PM
RE: Your PROMPT - by crshd - 14-01-2013, 11:07 AM
RE: Your PROMPT - by yrmt - 14-01-2013, 03:14 PM
RE: Your PROMPT - by Mafia - 14-01-2013, 06:05 PM
RE: Your PROMPT - by eye - 18-01-2013, 02:02 PM
RE: Your PROMPT - by darthlukan - 04-10-2015, 09:53 AM
RE: Your PROMPT - by ashen - 04-10-2015, 12:10 PM
RE: Your PROMPT - by Mafia - 04-10-2015, 10:46 PM
RE: Your PROMPT - by josuah - 03-04-2016, 11:28 PM
RE: Your PROMPT - by ninjacharlie - 04-04-2016, 03:49 PM
RE: Your PROMPT - by neeasade - 04-04-2016, 04:01 PM
RE: Your PROMPT - by Adrift - 04-04-2016, 11:24 PM
RE: Your PROMPT - by venam - 05-04-2016, 12:51 AM
RE: Your PROMPT - by neeasade - 05-04-2016, 09:12 AM
RE: Your PROMPT - by rocx - 05-04-2016, 09:41 AM
RE: Your PROMPT - by venam - 09-11-2020, 04:04 AM
RE: Your PROMPT - by jkl - 09-11-2020, 04:43 AM
RE: Your PROMPT - by pyratebeard - 09-11-2020, 06:27 AM
RE: Your PROMPT - by eye - 09-11-2020, 10:18 AM
RE: Your PROMPT - by seninha - 09-11-2020, 11:13 AM
RE: Your PROMPT - by pfr - 10-11-2020, 09:25 AM
RE: Your PROMPT - by opfez - 10-11-2020, 10:58 AM
RE: Your PROMPT - by jolia - 10-11-2020, 05:58 PM
RE: Your PROMPT - by sulami - 11-11-2020, 07:11 AM
RE: Your PROMPT - by s0kx - 11-11-2020, 09:11 AM
RE: Your PROMPT - by jolia - 11-11-2020, 09:37 AM
RE: Your PROMPT - by jkl - 11-11-2020, 01:20 PM
RE: Your PROMPT - by neeasade - 11-11-2020, 02:41 PM
RE: Your PROMPT - by sulami - 11-11-2020, 04:57 PM