DEV Community

Discussion on: ...but I want a pretty PROMPT!

Collapse
 
dyw972 profile image
Yohan D. • Edited

Thank you for your article! It's exactly what I'm doing and the links you provided helped me to make my own custom theme without using OMZ.

May I suggest you update your NEWLINE variable like this :

NEWLINE=$(printf ' \n\t')

You can check your shell scripts there 👉 shellcheck.net
and the reference for this update can be found here 👉 github.com/koalaman/shellcheck/wik...

🖖

Collapse
 
ineeader profile image
Inee Ader 🐌

Oh thanks! Sorry for the late response, haven't been on here in a while! Can you explain the change to the NEWLINE variable? I don't fully understand...