Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christianbundy/shit
Sudo History Invocation Tool
https://github.com/christianbundy/shit
Last synced: 17 days ago
JSON representation
Sudo History Invocation Tool
- Host: GitHub
- URL: https://github.com/christianbundy/shit
- Owner: christianbundy
- License: other
- Created: 2014-10-29T06:36:38.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-23T06:48:59.000Z (almost 10 years ago)
- Last Synced: 2024-10-18T16:48:07.487Z (26 days ago)
- Language: Shell
- Homepage:
- Size: 152 KB
- Stars: 18
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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.```console
[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](https://github.com/christianbundy/shit/issues/new) for questions and concerns.
## Contributing
Fork the project, commit your changes, and [open a pull request](https://github.com/christianbundy/shit/compare/).