From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24401 invoked from network); 19 May 2020 13:55:02 -0000 Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with ESMTPUTF8; 19 May 2020 13:55:02 -0000 Received: (qmail 17478 invoked by alias); 19 May 2020 13:54:55 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24859 Received: (qmail 29782 invoked by uid 1010); 19 May 2020 13:54:55 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f45.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.3/25814. spamassassin: 3.4.4. Clear:RC:0(209.85.166.45):SA:0(-2.0/5.0):. Processed in 1.477654 secs); 19 May 2020 13:54:55 -0000 X-Envelope-From: roman.perepelitsa@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.45 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=lzTrlxctAvG6M1rzB4McOeUTOcdwIw8WwPGjlgqtIAo=; b=AI5R//qkgLaa4uwrfzxaGkmyTe4TZy+Ol35/A65kGUIh3lKfdyHNwBlys8Q0Vc8wgf GL/XhnDCgdDlZrrw7+lhk5fUnOvYZ0tKLXMoGI8U5ubuj7HLwcGENZ/IbaJHytCRGQgj vNfnNIU/15K/FTvZtFJQ6o31Aj8Ob/XpxbWO2Fwo3lizAwI6/jIVMgzqZ8ZI31vI4YMZ e2kHu3vzZ7DCOtuFL81dVg5d5UK18a+Pn4TfsgBmXJldBbnnVT0f2wOTaDjVsP2D+jhJ VbmrdbWl7zdaH0XysHU2fBCw00F/QWjOmi7EXJLb14yBWelIdwJM3oFHlGymyWxptsgW Zt+Q== X-Gm-Message-State: AOAM531ItLTszk5AUe60F7FwmMiMmWiHqd74y+EuTqacgxTaQCTKClly 3IwCimnw+HDqfG7F/nn2gh58VhcPkA2gqElYTUrb283Vpwo= X-Google-Smtp-Source: ABdhPJydU/PlBiccfIaGG8NGNVcOFWQAdRNm4l52gpiFz5qQuRNypIsAxl3Eg1B1T5folvqv5zNfvHesSA1Z03E5Wso= X-Received: by 2002:a6b:e509:: with SMTP id y9mr19223039ioc.67.1589896460624; Tue, 19 May 2020 06:54:20 -0700 (PDT) MIME-Version: 1.0 References: <00DD587E-134E-46AE-8416-DB858F6ABD06@covisp.net> <2475C365-C62B-48DE-AC8A-3866E2DAEEEC@covisp.net> <2066CB5D-FC4B-49CE-893A-A430D933C425@covisp.net> <062FFA20-B1CE-40DC-9B9A-F57315542A1F@covisp.net> <5F4CE203-8A09-47F5-B22F-7634B70D4A02@covisp.net> In-Reply-To: From: Roman Perepelitsa Date: Tue, 19 May 2020 15:54:09 +0200 Message-ID: Subject: Re: Prompts with emoji issues To: Lewis Butler Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You need to fix typos in your prompt. Start with this: toon=3D$'\U1F479' PROMPT=3D$toon' %F{blue}%n@%m%f %F{green}%#%f ' RPROMPT=3D'%F{green}[%T]%f [%~]' Note that I've replaced =F0=9F=91=B9 with $'\U1F479'. This is intentional. = It's meant to trigger an error if your locale is misconfigured. If you get an error saying "zsh: character not in range", your locale isn't UTF-8. You need to make it UTF-8. This $toon is a wide unicode character, meaning that it takes 2 columns when printed. Some terminals have bugs that prevent them from properly rendering such characters. You can check whether you terminal can render $toon correctly with this command: print -r ${(l:${(m)#toon}:: :)}$'XYZ\n'$toon' ^-- must point to Y' If the arrow points to Y, all is well. If it points to X or Z, either your terminal is broken or unicode data used by zsh is incorrect. You can employ a workaround to display $toon correctly nevertheless. If the arrow points to X: toon=3D$'%{%2G\U1F479 %}' PROMPT=3D... RPROMPT=3D... If the arrow points to Z: toon=3D$'%{%2G\U1F479%}' PROMPT=3D... RPROMPT=3D... Roman.