Hacker News new | ask | show | jobs
by 002445 1881 days ago
I use tmux locally even though I run i3 as my window manager. Mostly because I configured tmux to show the current directory and git branch (if in a git directory) so I can keep my prompt a clean "$".
2 comments

My trick is all the directory, date, git junk in my prompt is separated by a newline and then $, so when I copy and paste my shell somewhere, I can just drop those lines easily without having to do fine selection.
That seems like a lot of wasted space to me. The benefit of putting it into tmux is it only shows in 1 place. I don't need to see the git branch and folder of the location where I ran my previous commands, I just need to see where I am at right now.
Seeing the old time is useful though because it lets you eyeball how long a command took to run even if you forgot to do `time`.
Do you ever need to know how long a command takes? And if you ever need it is it really worth a full line for every command that is ran. And it shows the time that the prompt is printed right? It doesn't show the time your command is executed if I am correct.

I guess you can hit enter before every command is entered to get the correct time but that is a lot of wasted space!

Maybe I'm getting too minimalist but I don't see the benefit to productivity in these over the top prompts.

Not knocking your setup but you can have can configure most terminal emulators to put that info in the title and have that displayed on your bar.
I use i3 and the Simple Terminal (ST) so no titles and no bars for me.

If anyone is curious what it looks like: https://imgur.com/Xx19sFn.png