-
Notifications
You must be signed in to change notification settings - Fork 0
Double escape for doas before command.
License
nix-42/doas.zsh
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
doas.zsh
========
Plugin for zsh, that binds double escape to add doas before the command. Works with aliases.
Installation
------------
oh-my-zsh:
$ git clone https://github.com/monesonn/doas.zsh.git ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/doas
Then type doas in .zshrc' plugins section -> plugins ( doas )
Usage
-----
It's works for current typed command and previous failed excecuted commands:
$ some command
By pressing the [Ecs] twice, you'll have the same command with doas prefixed:
$ doas some command
Dependencies
------------
doasedit - http://git.io/doasedit (optional)
About
Double escape for doas before command.