1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
prezto/modules/please
Eugen Kuksa 06c6f1eb60
Add module "please"
10 years ago
..
Readme.md Add module "please" 10 years ago
init.zsh Add module "please" 10 years ago

Readme.md

Please

This adds utilities for runnning the previous command with super powers.

Usage

Please command

The please command simply repeats the previous command preceded by sudo.

Warning: You should be aware of the fact that this is also done in a shell that you just opened and you don't see what you execute with root privileges.

  id
uid=501(eugenk) gid=20(staff)

  please
uid=0(root) gid=0(wheel)

Key binding

There is also a keybinding (Ctrl+Shift+S) that puts your previous command to the commandline and prepends sudo to it. This is useful when you want so see or edit your previous command before executing it.

  id
uid=501(eugenk) gid=20(staff)

[Ctrl+Shift+S yields:]
  sudo id