Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ChaosJohn/245c58ae042f172feca2d81ee498afc1 to your computer and use it in GitHub Desktop.
Save ChaosJohn/245c58ae042f172feca2d81ee498afc1 to your computer and use it in GitHub Desktop.
Fix "➜" and "✗" of oh-my-zsh default theme making the cursor position wrong under some terminals(such as Mosh Chrome App, Termius[Chrome App Version, Mac Version, Windows Version])
#!/bin/sh
DIR="$HOME/.oh-my-zsh/custom/themes"
mkdir -p $DIR
cd $DIR
sed "s/➜/→/g;s/✗/×/g" $HOME/.oh-my-zsh/themes/robbyrussell.zsh-theme > robbyrussell.zsh-theme
@cellcoresystems
Copy link

I also had a lot of trouble to set up Powerline on iTerm2 and also oh-my-zsh and just recently bought a Chromebook and I had the same issue like you.

Found a solution:
Use the right fonts -> https://github.com/wernight/powerline-web-fonts

No Problem with hterm or iTerm or any other terminal emulator.
Use one of those fonts with zsh and you will be happy :o)

Cheers guys

@ChaosJohn
Copy link
Author

ChaosJohn commented Mar 31, 2020

@everdimension
@cellcoresystems

Actually the rendering issue under Termius has been fixed for months.
Just check the 'Use new terminal rendering engine' box on under Preferences of Termius.

And because I had stopped using my chromebook, this script is useless for me for now.

(Rendering issue has never been reproduced under iTerm or Terminal of macOS, or default terminal under Ubuntu, or any other modern terminal emulator. )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment