Comments (14)
Wow, thanks. My solution is a bit of a hack, but I want my .zshrc to be as self contained as possible.
from powerlevel9k.
@Tritlo I think you got me wrong here. This is not about you, writing your dotfiles wrong. It is about how powerlevel9k loads utility functions. That does not play well, if the theme is loaded as a function. In that case we assume that the theme was loaded by prezto and seek for the utility files in a prezto-like path. This is the - probably - faulty line.
Another example is outcoldman. He loads the theme also by zgen.
Did not see that coming.. 😢
from powerlevel9k.
@dritter - Agreed. The issue here is the design we currently have in next
where we have broken out utility functions. We need to figure out how to make this work to make workflows like @Tritlo easier.
@Tritlo - Sorry for any miscommunication, here! Would you be up for helping us test a fix to powerlevel9k to make this work better?
from powerlevel9k.
@dritter I see. Should I rather just use
zgen load bhilburn/powerlevel9k powerlevel9k.zsh-theme
how does this affect the functionality of powerlevel9k? Is it only the next branch?
from powerlevel9k.
@Tritlo No no. All of the different methods should work. Regardless how you load the theme and regardless if the theme was symlinked or loaded directly.
And yes, it is currently only on next
branch. So the question could be answered easily: Does the next
branch work for you? Or do you get weird error messages?
from powerlevel9k.
Yes, the branch seems to work, and no weird errors. However, the battery segment does not seem to work.
from powerlevel9k.
@Tritlo What issue are you running into with the battery segment? I've had limited environments to test it on(only ubuntu 14.04 and OS X) and any insight you could provide would be very helpful to making it more portable =] Could you open a separate bug for tracking that problem? Thanks!
from powerlevel9k.
@bhilburn I think we should have this in mind even zgen
seems to be clear. The hardcoded path bothers me..
from powerlevel9k.
@rjorgenson Apparently the battery plugin works for me (ubuntu 14.04), I just had the color setting so that the text was black on black, making it invisible :/
from powerlevel9k.
Ahh, well that's good that it works =] I'll take a look at it and see if I can figure out a better way to set default colors so that doesn't happen.
from powerlevel9k.
@rjorgenson you could maybe just swap out "black" for "cyan". I doubt many people have cyan as their default color.
from powerlevel9k.
To stay on topic: command -V
could be our friend:
$ command -V get_icon_names
get_icon_names is a shell function from /Users/dr/.oh-my-zsh/custom/themes/powerlevel9k-wip/functions/icons.zsh
That works for me in ZSH 5.1.1.
from powerlevel9k.
Some news here:
command -V
is just an alias to whence -v
. And whence -v
prints the path to the script since ZSH 5.0.8 (link). The origin of that feature seems to lie in this message.
I haven't found another way of getting the installation path automatically. In the case that this is still not sufficient, I added a variable POWERLEVEL9K_INSTALLATION_PATH
, which needs to be set to the exact location (including the file name).
I've made pull request #154 to address this.
from powerlevel9k.
Merged #154. Please test on next
and open a new bug if you find issues.
from powerlevel9k.
Related Issues (20)
- [Performance] PL9K is terribly slow HOT 2
- history command times bug HOT 3
- warning at startup: command not found: prompt_vcsi HOT 2
- go_version doesn't work with go modules directory
- Why does the prompt on the right overflow to the next line? HOT 8
- Expanding on custom directory icons HOT 2
- Theme not applying properly [Ghostwheel] HOT 2
- Does this theme also manage the colors of files and directories from ls -G? HOT 4
- No icons with Nerd Fonts HOT 13
- how to reference another virtualenv plugin? HOT 3
- [Performance] HOT 2
- Disable/Hide all icons HOT 3
- Does make sense to have POWERLEVEL9K__[plugin_name]_[BG|FG]_COLOR variables? HOT 3
- Is it possible to only add a newline if vcs is present? HOT 2
- Hide a part of current working directory HOT 5
- POWERLEVEL9K_DIR_BACKGROUND not affecting prompt HOT 3
- Add modifications in different file HOT 1
- Unable to change theme in .zshrc file HOT 1
- git background when repository has changes not showing HOT 6
- Readme img is 404
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerlevel9k.