mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-14 12:11:12 +03:00
Improve resilience of shell integration for sudo in fish
Running `sudo --version` will now not error out.
This commit is contained in:
parent
b961e65f22
commit
b3c5b1185c
@ -121,7 +121,7 @@ function __ksi_schedule --on-event fish_prompt -d "Setup kitty integration after
|
||||
set is_sudoedit "y"
|
||||
break
|
||||
end
|
||||
if not string match -r -q "^-" "$arg" and not string match -r -q "=" "$arg"
|
||||
if not string match -r -q -- "^-" "$arg" and not string match -r -q -- "=" "$arg"
|
||||
break # reached the command
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user