oh-my-posh won't load in bash even if I place the command for invoking it in $HOME/.bash_profile
#4053
Answered
by
JanDeDobbeleer
kris3713
asked this question in
Troubleshoot
|
The title literally says it all. Also for context, I'm doing this on an Ubuntu Linux (Non-LTS) virtual machine. Because it won't automatically load when I start a terminal session, I am forced to manually invoke it using this bash snippet: eval "$(oh-my-posh init 'bash' --config "$(brew --prefix oh-my-posh)/themes/kushal.omp.json")"Having to invoke this every time I start a bash terminal session just to make it look better is very repetitive. Is there something I am doing wrong? What is the correct way of putting the bash snippet in my profile file? |
Answered by
JanDeDobbeleer
Jul 12, 2023
Replies: 1 comment 1 reply
|
@Zliced13 is the file loaded by bash when starting the terminal? Because if the command works when executing directly from the terminal, it should also work when added to a profile (or bashrc) file that's sourced by bash on startup. |
1 reply
Answer selected by
kris3713
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@Zliced13 is the file loaded by bash when starting the terminal? Because if the command works when executing directly from the terminal, it should also work when added to a profile (or bashrc) file that's sourced by bash on startup.