<p>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.</p>
<p>Found this solution on stack overflow for the same issue but using pycharm : <a href="https://stackoverflow.com/questions/41205437/set-up-path-on-prompt-on-pycharm-terminal-windon">https://stackoverflow.com/questions/41205437/set-up-path-on-prompt-on-pycharm-terminal-windon</a><br>
Since I also have iterm2 installed on my Macosx, I believe this was causing the issue.</p>
<p>How I resolved in Geany Terminal:</p>
<ol>
<li>I created & saved a file  <strong>geany_terminal.sh</strong>  and saved it in my home folder. copied my desired PS1 and CLICOLOR settings from my .bash_profile:</li>
</ol>
<pre><code>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
</code></pre>
<ol start="2">
<li>Then I went to 'Edit -> Preferences --> Terminal' and set my 'Shell' to:<br>
/bin/bash /Users/myusername/geany_terminal.sh</li>
</ol>
<p>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.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-osx/issues/3#issuecomment-307255434">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABDrJ_zTv14WDng6Zjck0xXszWA7WD-Fks5sCISwgaJpZM4D6W92">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ97yESKM8aqJ0YeWadXPVq6GwVNWks5sCISwgaJpZM4D6W92.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany-osx/issues/3#issuecomment-307255434"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>

<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/geany/geany-osx","title":"geany/geany-osx","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/geany/geany-osx"}},"updates":{"snippets":[{"icon":"PERSON","message":"@voleary in #3: 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. \r\n\r\nFound 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\r\nSince I also have iterm2 installed on my Macosx, I believe this was causing the issue.\r\n\r\nHow I resolved in Geany Terminal:\r\n\r\n1. I created \u0026 saved a file  **geany_terminal.sh**  and saved it in my home folder. copied my desired PS1 and CLICOLOR settings from my .bash_profile: \r\n\r\n```\r\nexport PROMT_COMMAND=\r\nexport PS1='\\[\\e[1;32m\\][\\u@\\h \\W] \\D{%F %T}\\n\\$\\[\\e[0m\\]'\r\nexport CLICOLOR=1\r\nexport LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx\r\nbash -i\r\n```\r\n\r\n2. Then I went to 'Edit -\u003e Preferences --\u003e Terminal' and set my 'Shell' to:\r\n/bin/bash /Users/myusername/geany_terminal.sh\r\n\r\nUpon reloading Geany, the Terminal now displays with PS1 and CLICOLOR settings exactly as I have set in my .bash_profile without garbage in front. \r\n\r\n"}],"action":{"name":"View Issue","url":"https://github.com/geany/geany-osx/issues/3#issuecomment-307255434"}}}</script>