Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Rick Astley invades your terminal.
Branch: master

Merge pull request #7 from mvdan/master

Github raw url and curl fixes
latest commit e3c79c0fbe
@keroserene authored
Failed to load latest commit information.
.gitignore gitignore README fixes Add -s to non-clandestine curl commands to avoid spoiling the surprise.


Bash script which rickrolls your terminal by playing Rick Astley’s “Never Gonna Give You Up” with ANSI 256-color coded UTF-8 characters + audio (if available).

How to Roll

To start rickrollin’ immediately:

curl -s -L | bash

Here is the clandestine command you can give to your friends 😈

curl -s -L | bash

rickroll in xterm rickroll in mac

For the record: It is not actually a good idea to make a habit of

curl $(random_script_from_the_internets) | bash"

Nevertheless, for the enhanced experience, I highly recommend the following:

./ inject

Which essentially just does:

echo "curl -s -L | bash" >> ~/.bashrc

For a salutary lesson in the importance of taking care what you execute in your terminal, inspired by the classic sl, save the command in a shell script called suod somewhere on your PATH. It’s recommended to download the script for faster startup, to avoid spoiling the surprise when you accidentally execute it for the nth time (and also, unless you really like living dangerously, for security, in case we are demonically possessed to replace with something evil).


This has been tested on Arch, Debian, Ubuntu, Mac and Cygwin (so far). To enable sound in Cygwin, install the sox package.

Since this is a colorful hobby, you need to ensure 256-color mode is enabled or Astley will look sad.

For example, if you use GNU screen, ensure your ~/.screenrc contains something like:

termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
defbce "on"

Kudos to jart for our lovely hiptext shenanigans. Please see our sister project: hiptext, which generates ANSI color codes for any image or video.


~serene (@kiserene)

Something went wrong with that request. Please try again.