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

How to add a new line after the prompt? #226

Open
adjoli opened this issue May 3, 2022 · 4 comments
Open

How to add a new line after the prompt? #226

adjoli opened this issue May 3, 2022 · 4 comments

Comments

@adjoli
Copy link

adjoli commented May 3, 2022

Hi,

Because of the virtual environment, my prompt is getting too long and I would like the cursor to be on the line below; I found in the 'behavior' section the option "enable_vertical_padding=true", which is already enabled by default, but it's not working.

@Fanaperana
Copy link

Hi @adjoli,
For me, in order to add a new line after the prompt.

  1. Go to ~/.config/synth-shell/synth-shell-prompt.sh
  2. Edit line 344
  • From:
PS1="$PS1 $input_format"
  • To:
PS1="$PS1\n> $input_format"
  1. Then, to execute changes source ~/.bashrc

Thank you.

@adjoli
Copy link
Author

adjoli commented Jul 14, 2022

Hy, @Fanaperana

It worked! Thanks a lot, but I'm worried about the message at the beginning of file to "do not edit this file"; shouldn't this change be made elsewhere?

@Fanaperana
Copy link

As long as you don't mess with the other configuration. I think you will be okay. So far, I haven't encountered any issue by changing that line.

@andresgongora
Copy link
Owner

Hi guys! That's a neat solution @Fanaperana . I'll try to implement it in the code itself as soon as I have some free time. Someday, someday I will have holidays... ;)

@adjoli don't worry about the "Do not edit". The message is meant to remind you that the file will be overwritten next time you reinstall synth-shell. So you are free to edit the file however you please :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants