Add a newline after command is executed #6963
|
Similar to: However, is it possible to add a newline AFTER the command is executed? I tried adding an empty block but of course it ends up here: I understand it's because the theme and the bash prompt are separate things. I've tried doing this in bash but it has weird results. I'll keep trying but am wondering if there is a straight forward way to achieve this with oh-my-posh? Is there a built-in pre-exec function? |
Answered by
LunaVaio
Nov 9, 2025
Replies: 2 comments 2 replies
|
Achieved it using: Steps:
However still curious if can be done without it? |
0 replies
Answer selected by
LunaVaio
|
Can't you add |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment




Achieved it using:
https://github.com/rcaloras/bash-preexec
Steps:
bash-preexec.shfile to your home dir:~/.bash-preexec.sh.bashrcthe following. Make sure this is after your oh-my-posh eval line:However still curious if can be done without it?