[Github-comments] [geany/geany-osx] VTE doesn't respect/use PS1 environment variable (#3)

Jiří Techet notifications at xxxxx
Tue Oct 4 16:04:04 UTC 2016


Where do you set PS1? Normally Mac terminal runs bash as a login shell (which Geany does now too by defaulting to "bash -l" to grab the system settings of PS1) so you have to set PS1 inside .bash_profile (.bashrc won't be used). For me using

```
PS1="\w \$"
```

inside .bash_profile works as expected. Also check that you have "bash -l" inside Editor->Preferences->Terminal->Shell. If you have just "bash" there then bash isn't run as a login shell and you have to set PS1 inside .bashrc. What does "echo $PS1" say when you run it inside Geany's VTE? I guess it's something different than "\w \$".

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-osx/issues/3#issuecomment-251433229
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20161004/74a0a9f7/attachment.html>


More information about the Github-comments mailing list