matchai / spacefish

🚀🐟 The fish shell prompt for astronauts
https://spacefish.matchai.dev
MIT License
964 stars 79 forks source link

adding duplicate characters #148

Closed prydda closed 5 years ago

prydda commented 5 years ago

Bug Report

Current Behavior Whenever I'm typing git remote add it adds by itself "rrreemote" and then I can't remove the duplicate characters.

Expected Behavior Not adding duplicate characters

Relevant Fish Configuration

My ~/.config/fish/config.fish is empty

Environment

Possible Solution

Additional context/Screenshots Add any other context about the problem here. If applicable, add screenshots to help explain.

image

matchai commented 5 years ago

Hey @prydda!

This is usually caused due to varying character widths between fish-shell and your terminal emulator.

If this issue is caused when using emojis, add the following to your ~/.config/fish/config.fish:

set -g fish_emoji_width 2

If it is caused by other characters, use the following:

set -g fish_ambiguous_width 2