News for hackers. Stuff that matters.
Re:Colorls – A Ruby script that beautifies the terminal's ls... by kasbah on Friday July 07, 2017 @08:27PM (#14723349)
I agree with you. I set my $PS1 to just show the folder and the exit status of the previous command. I set the dirtrim to 2 so it looks something like this in action:

     0[~/.../a/folder]$ false
     1[~/.../a/folder]$
In my .bashrc:

    PROMPT_DIRTRIM=2
    PS1='\[\e]2;[\W]\$\a\]$(printf "%d" $?)[\w]\$ '

There are no comments on this comment yet.