mavam / dotfiles

:desktop_computer: The very heart of an efficient work environment
51 stars 23 forks source link

cannot read file system information for '%m': No such file or directory #10

Closed MacFlurry closed 5 years ago

MacFlurry commented 5 years ago

Yeah, I saw it, but since it's a bit off-topic I quickly swapped it out again. :)

Adding public_ip_joined (and also public_ip) works for me, by the way:

Screen Shot 2019-08-08 at 12 40 05

Originally posted by @mavam in https://github.com/mavam/dotfiles/issues/8#issuecomment-519466744


Hello,

I just added

POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status command_execution_time virtualenv 
                                    vcs background_jobs_joined
                                    time_joined user_joined os_icon_joined 
                                    host_joined public_ip_joined public_ip)

and source .dotfiles/zsh/.zshrc ( I can see the public IP , but , restarting iterm shows this error) I got error:

stat: cannot read file system information for '%m': No such file or directory
prompt_public_ip:15: bad math expression: operand expected at `"/tmp/p9k_...'

I cannot figureout why :-D

mavam commented 5 years ago

Have look over here: https://github.com/aluxian/fish-kube-prompt/issues/1. It looks like you are dealing with the wrong version of stat.

MacFlurry commented 5 years ago

Hello,

I figured it out. The issue is with gnubin stat. I switched to MacOS stat (bsd) and it works. I will report it to HomeBrew.

thanks a lot dude :-)

Did you consider switching to PowerLevel10K? Seems to be 10x faster than the 9K.

Best regards,

Mac

mavam commented 5 years ago

Did you consider switching to PowerLevel10K? Seems to be 10x faster than the 9K.

Great idea. I've switched to it.

MacFlurry commented 5 years ago

:D could you upgrade with another branch so I can grab it ? pls pls pls 😁

mavam commented 5 years ago

You can just pull from master (or rebase onto master in your topic branch)