1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 13:50:09 +00:00
Commit graph

13 commits

Author SHA1 Message Date
Carlo Sala
f8bf8f0029
fix(sudo): only call redisplay if zle is enabled
Fixes #11322
2023-02-02 11:34:35 +01:00
Marc Cornellà
957dca698c
style(sudo): clean code style and reorganise logic 2022-01-18 19:03:27 +01: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à
190325049e
fix(sudo): allow different $EDITOR settings and fix zsh-syntax-highlighting redraw 2021-08-27 18:08:51 +02:00
Marc Cornellà
a1847dc860
style(sudo): apply main style guide indentation 2021-08-27 18:08:51 +02:00
Subhaditya Nath
874d83f7b8
feat(sudo): support aliases to $EDITOR (#9431)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-11-11 21:25:32 +01:00
daddeffe
cd17aed9e1
sudo: keep space before the command to ignore it in the history (#9178)
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2020-08-23 22:58:08 +02:00
MDHD
fd9781b4c7
sudo: make the behavior more in line with expectations (#9047) 2020-07-06 17:13:49 +02:00
SomeDer
97c0d0a563 Allow plugins sudo and thefuck to be loaded before vi-mode (#8087) 2019-08-19 12:14:22 +02:00
naegi
341e83f6f2 Plugin : Sudo - Add support of sudoedit (#5035)
* Add sudoedit support

* change describtion of sudo plugin
2016-08-14 17:45:00 -07:00
Fabio Strozzi
ff8d799594 Esc-esc now toggles sudo.
Press esc-esc once to add sudo (normal behaviour), press it twice
to remove it from the beginning of the line.
2015-07-12 17:01:34 +02:00
Giel van Schijndel
1e7c6743a7 sudo: maintain cursor position
I.e. when prefixing the current command-line with 'sudo ' maintain the
current cursor position instead of jumping to the end of the line.
2014-09-15 15:36:34 +02:00
lumbric
b58b996b40 fix name schema for sudo plugin
Plugin won't load automatically if added to variable $plugins, if name schema different than $name/$name.plugin.zsh is used (see is_plugin() in oh-my-zsh.sh).
2013-12-21 19:49:44 +01:00
Renamed from plugins/sudo/sudo.zsh (Browse further)