Closed moshpirit closed 10 months ago
You need to put the file at ~/.custom_ohmybash/themes/powerline/powerline.theme.bash
. Also, please do not forget to set OSH_CUSTOM=~/.custom_ohmybash
.
You need to put the file at
~/.custom_ohmybash/themes/powerline/powerline.theme.bash
. Also, please do not forget to setOSH_CUSTOM=~/.custom_ohmybash
.
Thanks for replying! I guess I can't have several themes in the custom folder, right? Also, do I have to change it's name to "powerline .theme .bash"?
Correction: I've just realised I edited a module, not a theme, sorry. The first line is #! bash oh-my-bash.module
Thanks for replying! I guess I can't have several themes in the custom folder, right?
You can have several themes in a custom folder. If you want to have another theme in the custom folder, you can include that at ~/.custom_ohmybash/themes/<NAME>/<NAME>.theme.bash
where <NAME>
is the name of the theme.
Also, do I have to change it's name to "powerline .theme .bash"?
Yes. Otherwise, OMB doesn't treat it as a theme.
Correction: I've just realised I edited a module, not a theme, sorry. The first line is
#! bash oh-my-bash.module
The theme is a type of OMB module, so every theme is a module at the same time.
Sorry for bothering again, but what if I modify the base?
I have the powerline-multilne theme, only that I changed user_info="${USER}"
for user_info=" ${USER}"
in ~/.oh-my-bash/themes/powerline/powerline.base.sh
. But it's not showing in the terminal. I can only see it in the prompt if I modify the original theme.
My current configuration is:
Bashrc
I think that the important variables here are:
export OSH='~/.oh-my-bash'
OSH_THEME="powerline"
OSH_CUSTOM=~/.custom_ohmybash/
Custom folders
~/.custom_ohmybash/themes/powerline/powerline.base.sh
~/.custom_ohmybash/themes/powerline/powerline.theme.sh
what if I modify the base?
I have the powerline-multilne theme, only that I changed
user_info="${USER}"
foruser_info=" ${USER}"
in~/.oh-my-bash/themes/powerline/powerline.base.sh
.
In such a case, you also need to modify the path to powerline.base.sh
in the following line of powerline.theme.sh
:
GREAT! It's alive!!! Thanks a lot! Changing it to source "$OSH_CUSTOM/themes/powerline/powerline.base.sh"
did the work!
I changed the prompt of a theme in a copy on
~/.custom_ohmybash/powerline.bash
. How do I set it as the theme I want to use?