Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working with OSX / zsh / oh-my-zsh / powerlevel9k #360

Closed
sarveshseri opened this issue Jul 22, 2016 · 7 comments
Closed

Not working with OSX / zsh / oh-my-zsh / powerlevel9k #360

sarveshseri opened this issue Jul 22, 2016 · 7 comments
Labels
🍎 Platform: Mac Issue pertains to Mac 🤯 Type: Compatibility Issue contains information about a compatibility issue in Hyper

Comments

@sarveshseri
Copy link

Hi I am using zsh with oh-my-zsh and powerlevel9k theme. I am getting following errors on starting HyperTerm.

~/.oh-my-zsh/custom/themes/powerlevel9k/functions/icons.zsh:130: character not in range ~/.oh-my-zsh/custom/themes/powerlevel9k/functions/utilities.zsh:86: command not found: print_icon left_prompt_segment:24: command not found: print_icon left_prompt_segment:44: command not found: print_icon prompt_vcs:33: command not found: print_icon prompt_vcs:34: command not found: print_icon prompt_vcs:42: command not found: print_icon left_prompt_end:2: command not found: print_icon left_prompt_end:6: command not found: print_icon right_prompt_segment:32: command not found: print_icon right_prompt_segment:38: command not found: print_icon right_prompt_segment:32: command not found: print_icon right_prompt_segment:32: command not found: print_icon

Is there any way to resolve this ?

@rpunkfu
Copy link
Contributor

rpunkfu commented Jul 22, 2016

Please post the output of running the command locale

@sarveshseri
Copy link
Author

LANG=
LC_COLLATE="C"
LC_CTYPE="UTF-8"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

@jorgemartins
Copy link

jorgemartins commented Jul 25, 2016

Adding export LANG="en_US.UTF-8" on your .zshrc fixes the errors, but does not show the correct icons.
got it from here
EDIT:
Then just add your powerline font name in your config hyperterm.js
for example, I use Source code Pro for powerline:

fontFamily: '"Source Code Pro for Powerline", "DejaVu Sans Mono", "Lucida Console", monospace',```

@timothyis timothyis added the 🤯 Type: Compatibility Issue contains information about a compatibility issue in Hyper label Jul 27, 2016
@brianjking
Copy link

@jorgemartins Thanks, I tried your fixes mentioned in comment to no avail. The fontFamily piece specifically caused iTerm and Hyperterm to throw errors.

ANy ideas?

@brianjking
Copy link

Here's the export of my locale

LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=

@brianjking
Copy link

brianjking commented Aug 24, 2016

Disregard, got it working.

in hyperterm.js

 // font family with optional fallbacks
    fontFamily: '"SourceCodePro+Powerline+Awesome Regular", "DejaVu Sans Mono", "Lucida Console", monospace',

In .zshrc

# Hyperterm Compatability (see https://github.com/zeit/hyperterm/issues/360)
export LANG="en_US.UTF-8"
export LC_COLLATE="en_US.UTF-8"
export LC_CTYPE="en_US.UTF-8"
export LC_MESSAGES="en_US.UTF-8"
export LC_MONETARY="en_US.UTF-8"
export LC_NUMERIC="en_US.UTF-8"
export LC_TIME="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"

@timothyis timothyis added the 🍎 Platform: Mac Issue pertains to Mac label Oct 6, 2016
@tmnsun tmnsun mentioned this issue Oct 19, 2016
@chabou
Copy link
Contributor

chabou commented Apr 18, 2017

Closing in favor of #607

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍎 Platform: Mac Issue pertains to Mac 🤯 Type: Compatibility Issue contains information about a compatibility issue in Hyper
Projects
None yet
Development

No branches or pull requests

6 participants