Skip to content

Latest commit

 

History

26 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

rickroll-terminal

A tiny script that turns each Bash or Zsh prompt into the next line of a rickroll.

Terminal screenshot

Setup

Paste this into your terminal just once to clone the repo and set up the script:

git clone https://github.com/Glitchii/rickroll-terminal
cd rickroll-terminal

rc_file="$HOME/.${SHELL##*/}rc"
mkdir -p ~/.local/bin
cp rickroll.sh ~/.local/bin/rickroll

printf '\nalias rickroll=". ~/.local/bin/rickroll" roll=rickroll\n' >> "$rc_file"
alias rickroll=". ~/.local/bin/rickroll" roll=rickroll

You can now run rickroll or roll to activate or deactivate it. Both aliases are also available in new terminals. To activate automatically in every new terminal, add the rickroll to your shell rc file. Run echo "$HOME/.${SHELL##*/}rc" to see the shell rc file used

About

Changes name and host in the terminal to a rickroll after a command.

Topics

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages