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
@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