Skip to content

Instantly share code, notes, and snippets.

@dannguyen
Last active March 14, 2016 11:12
Show Gist options
  • Save dannguyen/d1734b252df2559c625a to your computer and use it in GitHub Desktop.
Save dannguyen/d1734b252df2559c625a to your computer and use it in GitHub Desktop.
Making a Love Ghost w/ Cyborg Eye as your Bash prompt

ghostprompt

Credit to these very helpful Internet sources:

The StackOverflow discussion, in particular, got me over the problem of the cursor position being screwed up (overlapping and overwriting the line) when doing escape sequences. Apparently you have to prepend \[ and append \] around each escape sequence.

Setting up the prompt

Set this in your ~/.bash_profile:

export PS1="༼ つ\[\033[31m\](\[\033[5m\]♥\[\033[0m\033[31m\])\[\033[0m\]_♥༽つ \W $ "
  • \033[31m - red
  • \033[5m - blink
  • \033[0m - reset
@qral
Copy link

qral commented Mar 14, 2016

Font / unicode problem..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment