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

could you add a space after the prompt symbol? #38

Open
Thomashighbaugh opened this issue Feb 6, 2022 · 3 comments
Open

could you add a space after the prompt symbol? #38

Thomashighbaugh opened this issue Feb 6, 2022 · 3 comments

Comments

@Thomashighbaugh
Copy link

Maybe this is not an issue outside of z-shell on Void Linux, but for me there is a lack of a space after the  symbol making the command annoyingly right up against the symbol. If you could add a space (or tell me what I need to append one using an environmental variable) I would appreciate it immensely.

@athul
Copy link
Owner

athul commented Feb 6, 2022

Hey, I built a binary with the required changes. You can untar the file and add it to the local bin folder. I've just added a single space for it. If you're feeling hacky, you can edit these lines after the symbols

  1. Bash:

    shelby/mods/shell.go

    Lines 10 to 12 in 8ee2738

    local prompt_symbol="\[\e[0;91m\]❯\[\e[0m\]"
    else
    local prompt_symbol="\[\e[0;92m\]❯\[\e[0m\]"
  2. ZSH:
    PROMPT='$(shelby info)${NW}%(?.%F{green}.%F{red})❯%f'`

And compile the binary youself.This is the command used for compiling

$ GOOS=linux GOARCH=amd64 go build -ldflags '-s -w' -o shelby *.go

I've tested this binary on a Debian system(it works there).
shelby.tar.gz

@athul
Copy link
Owner

athul commented Feb 6, 2022

Also you can clone the repo from fix_#38 branch and compile from source. 😄

@TanZng
Copy link

TanZng commented Jul 14, 2022

This also happens in Debian

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

3 participants