Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 988 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 988 Bytes

Shit

For when you forget to use sudo.

Installation

Append the alias to your .zshrc.

curl -sSL https://raw.githubusercontent.com/christianbundy/shit/master/shit.zsh >> $HOME/.zshrc

Usage

  1. Do something wrong, like try to update your package cache without root priveleges.
  2. Shit.
[user@host] $ apt-get update
E: Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)
E: Unable to lock directory /var/lib/apt/lists/
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

[user@host] $ shit
0% [Connecting to archive.ubuntu.com] [Connecting to security.ubuntu.com]

Support

Please open an issue for questions and concerns.

Contributing

Fork the project, commit your changes, and open a pull request.