Hoping this helps someone: I had a similar issue where I was getting a bunch of 
garbage in front of my terminal prompt in Geany. 

Found this solution on stack overflow for the same issue but using pycharm : 
https://stackoverflow.com/questions/41205437/set-up-path-on-prompt-on-pycharm-terminal-windon
Since I also have iterm2 installed on my Macosx, I believe this was causing the 
issue.

How I resolved in Geany Terminal:

1. I created & saved a file  **geany_terminal.sh**  and saved it in my home 
folder. copied my desired PS1 and CLICOLOR settings from my .bash_profile: 

```
export PROMT_COMMAND=
export PS1='\[\e[1;32m\][\u@\h \W] \D{%F %T}\n\$\[\e[0m\]'
export CLICOLOR=1
export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx
bash -i
```

2. Then I went to 'Edit -> Preferences --> Terminal' and set my 'Shell' to:
/bin/bash /Users/myusername/geany_terminal.sh

Upon reloading Geany, the Terminal now displays with PS1 and CLICOLOR settings 
exactly as I have set in my .bash_profile without garbage in front. 



-- 
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-307255434

Reply via email to