Cleaning up the command prompt
For the last 5 (10+ ?!) years, I rocked a terminal prompt that used a Zsh script based on the “lean” prompt.
It looked like this:
The more I write shell scripts the more I question my sanity.
Latest example resulted from calculating the ratio of a window height and width and then wanting to multiply that and round it.
Et voilà:
When working on a script that runs an SQL query across some Git stats, I wanted to have an SQL template of sorts and replace parts of it with variables. Here documents or simply “heredocs” suit this purpose but as usual, especially in the shell, gotchas abound.
For the last 5 (10+ ?!) years, I rocked a terminal prompt that used a Zsh script based on the “lean” prompt.
It looked like this:
Following on from Saving time with a preset tmux setup I recently created a more convoluted indepth setup.
When you go full terminal it can be nice to know what music is playing for when it really sucks/rocks.
Wouldn’t it be nice to get something like this into your tmux status bar:
(the answer is yes)