This is due to an outdated wc-width
function in fish for determining how much space each character gets. This supposedly will be fixed in fish 3. If you want emojis to work properly in fish 2.xx:
Build source from GitHub AND instead of cmake ..
do cmake -DINCLUDED_WCWIDTH=OFF ..
. This will use your system's wc-width
function, which should be better when using MacOS.
Add set -g fish_emoji_width 2
to ~/.config/config.fish
. This will make emojis by default have a width of 2, which should fix spacing issues.
This issue is explained in-detail here .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.