{"id":19030353,"url":"https://github.com/chmouel/zsh-sudo-previous-current","last_synced_at":"2026-05-17T19:04:10.869Z","repository":{"id":195974097,"uuid":"694066666","full_name":"chmouel/zsh-sudo-previous-current","owner":"chmouel","description":"ZSH Plugin to add sudo word to the current line or the previous","archived":false,"fork":false,"pushed_at":"2024-06-17T16:57:29.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-02T03:44:42.622Z","etag":null,"topics":["sudo","zsh","zsh-plugin"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chmouel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-20T09:07:38.000Z","updated_at":"2024-10-15T06:46:29.000Z","dependencies_parsed_at":"2023-09-20T21:14:07.057Z","dependency_job_id":null,"html_url":"https://github.com/chmouel/zsh-sudo-previous-current","commit_stats":null,"previous_names":["chmouel/zsh-sudo-previous-current"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmouel%2Fzsh-sudo-previous-current","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmouel%2Fzsh-sudo-previous-current/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmouel%2Fzsh-sudo-previous-current/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chmouel%2Fzsh-sudo-previous-current/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chmouel","download_url":"https://codeload.github.com/chmouel/zsh-sudo-previous-current/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240079638,"owners_count":19744725,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["sudo","zsh","zsh-plugin"],"created_at":"2024-11-08T21:17:41.257Z","updated_at":"2026-05-02T16:30:21.781Z","avatar_url":"https://github.com/chmouel.png","language":"Shell","funding_links":[],"categories":["Plugins"],"sub_categories":["ZSH on Windows"],"readme":"# Add sudo to the current line or previous command zsh plugin\n\nA simple zsh plugin to add a sudo to the current line or to the previous command.\nIt tries hard to keep the current cursor position so your flow doesn't get disturbed.\n\nIt's a useful plug-in if you forget to add sudo to a command.\n\n## Usage\n\n- Load the plugin with your favourite zsh plugin manager or simply source the\n  [zsh-sudo-previous-current.plugin.zsh](zsh-sudo-previous-current.plugin.zsh)\n  file\n- Type a command and press `control-x and s` to add sudo. If you don't type any\n  command, the previous command will be used.\n\n## CONFIGURATION\n\n- `ZSH_SUDO_PREVIOUS_CURRENT_BIND`: Key binding to add sudo to the current line\n  or previous command. Default: `^x s` which is `ctrl+x and s`\n- `ZSH_SUDO_PREVIOUS_CURRENT_CMD`: Command to use for sudo. Default: `sudo`\n\n## Authors\n\n### Chmouel Boudjnah\n\n- Fediverse - \u003c[@chmouel@fosstodon.org](https://fosstodon.org/@chmouel)\u003e\n- Twitter - \u003c[@chmouel](https://twitter.com/chmouel)\u003e\n- Blog - \u003c[https://blog.chmouel.com](https://blog.chmouel.com)\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmouel%2Fzsh-sudo-previous-current","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchmouel%2Fzsh-sudo-previous-current","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchmouel%2Fzsh-sudo-previous-current/lists"}