1
1
I just realized that I hunch over a lot when using the terminal since the prompt is always at the bottom of the terminal window, which is vertically maximized.
I would like the prompt to be at the vertical middle of the window (or in a point near where my eyes are pointed to).
You could argue that I can resize the window and achieve that, but sometimes I like the vertical space (eg. when running ls -la
). So, ideally, I could toggle the position of the prompt between some point and the bottom of the window.
(I'm using iTerm under MacOS with zsh, but I'm interested in an agnostic/generic way of doing this)
This
magic-enter
function is amazingly handy. Would you have an idea of abash
equivalent? – Léonard – 2019-11-12T08:46:25.360@Léonard: Unfortunately I don't know how bash handles the prompt and terminfo sequences... and how to bind functions to keys, so I'm sorry that my answer to your question is ,no'. – mpy – 2019-11-12T17:41:35.543
Thanks @mpy, I will ask the question in a separate post. – Léonard – 2019-11-19T08:00:50.200