Skip to content

Instantly share code, notes, and snippets.

@ecmartz
Last active July 8, 2017 18:19
Show Gist options
  • Save ecmartz/43527037826cfa608bb15211af304a7c to your computer and use it in GitHub Desktop.
Save ecmartz/43527037826cfa608bb15211af304a7c to your computer and use it in GitHub Desktop.
Fix for iTerm2/PyCharm terminal integration.
#INSTALL
#In PyCharm Settings: Go to Tools > Terminal and in "Shell path" set it to /bin/bash <path_to_pycharm_terminal.sh>
export PROMT_COMMAND=
export PS1="\[\e[31m\]\u\[\e[0m\] at \[\e[33m\]\h\[\e[0m\] in \[\e[32m\]\w\[\e[0m\] at [\A] \[\033[31m\]`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`\[\033[35m\]\n$ \[\033[00m\]"
bash -i
#Special thanks: https://stackoverflow.com/a/41226149
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment