Image transcription: screenshot of neovim adding alias ls='sudo rm -rf / --no-preserve-root' to the end of ~/.zshrc

all 4 comments

sorted by: hot top controversial new old
[–] 1 point 2 years ago

Joke's on you, I have transcended using ls because I have my entire folder structure memorized.

  • source
  • [–] 0 points 2 years ago (2 children)

    Why not make it more mischievous?

    alias ls="find $HOME -type f | shuf -n 1 | rm -f; ls"
    

    This line erases one random file from your home directory and then uses ls as normal. You won't know what vanished until you need it or it removes a needed library or binary.

  • source
  • hideshow 2 child comments