infobyte / faraday-client

GTK client of FaradaySEC
Other
6 stars 3 forks source link

zsh PROMPT is not well displayed when user has a customized Prompt with 2 lines #1

Closed sbrun closed 4 years ago

sbrun commented 4 years ago

Description

The PROMPT display is not looking as expecting when the user has a customized zsh PROMPT with 2 lines, like we have in Kali. We have this in the Kali default .zshrc:

PROMPT=$'%F{%(#.blue.green)}┌──${debian_chroot:+($debian_chroot)──}(%B%F{%(#.red.blue)}%n%(#.💀.㉿)%m%b%F{%(#.blue.green)})-[%B%F{reset}%(6~.%-1~/…/%4~.%5~)%b%F{%(#.blue.green)}]\n└─%B%(#.%F{red}#.%F{blue}$)%b%F{reset} '

The ┌── and └─ are not aligned correctly in the Faraday zsh terminal.

We have something like this:

[faraday] (workspace) ┌──(user@machine)[~]
└─$ 
llazzaro commented 4 years ago

Hi @sbrun,

This has been fixed at commit 6bcf44b79e5e0c7bb41e5ee4a0a8820ac15ad6bc.

kali_fix

New version tagged v1.0.1