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

  • Programmer Belch@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    11 months ago

    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.