I have installed NixOS 18.03.
Bash seems to add a newline after every command.
$ echo Hello, world!
Hello, world!
$
Why is this? How can I stop it??
Technically, it adds a newline before the prompt by default, by setting
PS1="\n\[\033[$PROMPT_COLOR\][\u@\h:\w]\\$\[\033[0m\] "
You can set a more reasonable prompt by configuring the option programs.bash.promptInit.
It's the default prompt in NixOS, it will always append newline a the end.
PS1="$ "
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With