Commit graph

6 commits

Author SHA1 Message Date
xlebpushek
6d7eb3746c feat: support custom prefix in sudo plugin and update README accordingly
feat: add configurable prefix support to sudo plugin with alias reminder

- Introduced ZSH_SUDO_PLUGIN_PREFIX variable to allow custom command prefix instead of default 'sudo'
- Updated command substitution logic to handle prefix and prefix -e (sudoedit) properly
- Enhanced README with usage examples and a note about creating alias for custom prefixes
- Maintains default behavior when no prefix is specified
2025-06-08 14:52:40 +04:00
Carlo Sala
540b2200af
feat(sudo): respect $SUDO_EDITOR and $VISUAL, switch to sudo -e (#10596) 2022-01-18 18:46:14 +01:00
Marc Cornellà
8b53d04942
docs(sudo): document key binding change 2021-12-29 16:26:35 +01:00
Marc Cornellà
610b2529d2 Clean up plugin READMEs and a few plugins
- fasd
- history
- mercurial
- pylint
- repo
- yii2
2020-03-11 19:57:46 +01:00
Jacob Tomaw
c130aadb6a Replace "restart shell" documentation "exec zsh" (#8411)
Running `source ~/.zshrc` can have side effects, it's better to reload the whole 
zsh session with `exec zsh`.
2019-11-19 19:44:00 +01:00
Griko Nibras
441595d036 sudo: add README file (#7177) 2018-10-01 12:05:34 +02:00