Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiline prompts break alwaysontop #6

Open
ubershmekel opened this issue Dec 12, 2018 · 0 comments
Open

Multiline prompts break alwaysontop #6

ubershmekel opened this issue Dec 12, 2018 · 0 comments

Comments

@ubershmekel
Copy link

ubershmekel commented Dec 12, 2018

I usually have a newline in prompt so I get all the info I need but have a clean line. This doesn't work with alwaysontop. Here's a normal terminal for me:

/tmp/tmp  [yuval.g@myhostname ]
$ ls
bla
/tmp/tmp  [yuval.g@myhostname ]

The result is that alwaysontop leaves the command I previously wrote at the top. For example this is the prompt state after I hit enter on echo 123.

↑↑ ◎ /Users/yuval.g/Downloads  [yuval.g@2030008314 ]
$ echo 123
123

The workaround is to use a single-line prompt but that's a bit of a bummer.

YELLOW="\[\033[33m\]"
RESET='\033[0m'
PS1="$YELLOW\$(pwd)$RESET $ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant