Solved Need help finalizing Oh My Posh Bash Terminal

Solved issue

SuperWookie68

Member
Joined
Aug 20, 2024
Messages
91
Reaction score
20
Credits
1,342
Hey everyone, so my newest Linux project I got into this weekend to make my DE look even better is this Oh My Posh bash terminal prompt customizing. I saw it somewhere on youtube and new I had to have that, haha.

So I followed this guys video here and after 2 days of messing around and it not working and it not working and it not working, I FINALLY got it to work. But can not finish it at this point! I'm soooo close and just need a tiny bit of help. Here is what it looks like, now I just need help having it SHOW UP every time I open Konsole.
Screenshot_20240915_145011.png


By the way I'm in Kubuntu 24.04.1 LTS that has Plasma 5.27

So I finally saved the custom prompt in a bash_profile VIM file as the guy said to do. It's IN my Home folder. But the problem is now, is that when I close Konsole/Terminal, and reopen it, the custom prompt is gone?! WHY?! I did EXACTLY as the guy in the video said and followed along with the Oh My Posh Tutorial on the site. How do I fix this so it always shows up? Is there some setting in KDE Konsole to get this prompt I created and saved to show up every time without me having to type in this long drawn out command I have saved?
 
Last edited:


So I followed this guys video here
Your link is invalid.

My Posh bash terminal
From this page:
warning
When installing Homebrew for Linux,be sure to follow Next steps instructions to add Homebrew to your PATH and to yourbash shell profile script, and Requirements to build Oh My Posh.
Did you follow the procedure from those 2 links in the quote above?

But the problem is now, is that when I close Konsole/Terminal, and reopen it, the custom prompt is gone?! WHY?!
Probably because you did not setup PATH environment variable so the executable cannot be found and nothing is executed, but that's only my guess.
 
Hey everyone, so my newest Linux project I got into this weekend to make my DE look even better is this Oh My Posh bash terminal prompt customizing. I saw it somewhere on youtube and new I had to have that, haha.

So I followed this guys video here and after 2 days of messing around and it not working and it not working and it not working, I FINALLY got it to work. But can not finish it at this point! I'm soooo close and just need a tiny bit of help. Here is what it looks like, now I just need help having it SHOW UP every time I open Konsole.
View attachment 22092

By the way I'm in Kubuntu 24.04.1 LTS that has Plasma 5.27

So I finally saved the custom prompt in a bash_profile VIM file as the guy said to do. It's IN my Home folder. But the problem is now, is that when I close Konsole/Terminal, and reopen it, the custom prompt is gone?! WHY?! I did EXACTLY as the guy in the video said and followed along with the Oh My Posh Tutorial on the site. How do I fix this so it always shows up? Is there some setting in KDE Konsole to get this prompt I created and saved to show up every time without me having to type in this long drawn out command I have saved?
The problem of the prompt not appearing in subsequent terminals may be that .bash_profile is read only once at login, so it only appears in that first open terminal. The ~/.bashrc file however, is read each time a terminal using bash is opened. In that case, if you move the prompt code to .bashrc, it should bring up your prompt each time you open a terminal.
 
The problem of the prompt not appearing in subsequent terminals may be that .bash_profile is read only once at login, so it only appears in that first open terminal. The ~/.bashrc file however, is read each time a terminal using bash is opened. In that case, if you move the prompt code to .bashrc, it should bring up your prompt each time you open a terminal.
Hmmm, ok. So just open the bashrc file and paste the prompt code in it somewhere, and it should load each time?
 
Your link is invalid.


From this page:

Did you follow the procedure from those 2 links in the quote above?


Probably because you did not setup PATH environment variable so the executable cannot be found and nothing is executed, but that's only my guess.
I’m not using homebrew. I did it all following Manual Install
 
Yes :) And remove it from .bash_profile since it wouldn't needed in both files.
OH MY GOD!!!!!!!! THANK YOU!!!! Jesus H Chr*st that took WAY too long to figure out and finally get right. I just don't understand Linux people and their lack of instructions. EVERY SINGLE THING I've done so far with Linux in the 3-4 weeks since I came over, has been anywhere from moderatly to insanely hard. And 99% of the time, it's because the video, tutorial or instructions on HOW to do it, is either: non existent, barely gives you any clues (but never tells you) or at the best, tells you SOME of what you need to do, but not everything, haha. It blows my mind. It's like Linux people don't want you to know how to do anything or something. Crazy.

But again, thank you SO much Osprey! I know this is silly stuff for some of you, but having my desktop look and feel a certain way is everything to me.
 
While you're at it, be sure to also have a look at these.
 
While you're at it, be sure to also have a look at these.

Hmm.... Sometimes I wonder if you're chaotic evil.
 
Hmm.... Sometimes I wonder if you're chaotic evil.
lol, just trying to give OP some inspiration and alternatives they might also like. I was using powerline-go myself but I just started experimenting with starship myself.
 
@SuperWookie68 when you are next around, please just mark this as Solved.

Go to your first Post, choose edit, No Prefix - Solved.

Cheers

Wizard
 
Just wanted to once again thank all of you for helping this Linux newb! I know some or most of you may not care about beautiful DE's like I do. But all the help I have received here has been fantastic. Not only have you actually helped me, but you have been polite as well. And that is more than I can say about any other forum I have posted on in the last few weeks. Literally all the other forums I post on either don't respond, or I get a snarky response, or instead of actual help and explaining how to do it, they just give me some clue (which doesn't help a beginner at all). This place has been fantastic so far and I just wanted thank everyone for their help and kindness. This is truly a great forum and a great place to be. Best
 
While you're at it, be sure to also have a look at these.
Haha, thank you f33dm3bits. I have seen Starship and I may look into that at some point down the road. I'm kind of burned out and tired right now from my constant struggles trying to get things setup how I want. And then I got this custom Oh My Posh terminal prompt bug. I just HAD to have that.. and it took ALL weekend to figure out how to get it setup.

So far, I'm just using Terminal to install stuff. So I'm sure sooner or later I won't be using it much anymore. But if I do, and if I want to get extra crazy with customization, I will definitely look into Starship. Thank you
 

Members online


Top