Skip to content

Instantly share code, notes, and snippets.

@dannguyen
Last active March 14, 2016 11:12
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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
@AbhimanyuAryan
Copy link

Sir I have got weird symbols on Windows machine. Any Idea? So I need powerline font or there some other issue?

Also heart ain't blinking :p

weird

@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