mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 19:41:14 -03:00
Reindent functions to remove useless quotes
This does not include checks/function.fish because that currently includes a "; end" in a message that indent would remove, breaking the test.
This commit is contained in:
@@ -2,6 +2,6 @@ function __fish_complete_user_ids --description "Complete user IDs with user nam
|
||||
if command -sq getent
|
||||
getent passwd | string replace -f -r '^([[:alpha:]][^:]*):[^:]*:(\d+).*' '$2\t$1'
|
||||
else if test -r /etc/passwd
|
||||
string replace -f -r '^([[:alpha:]][^:]*):[^:]*:(\d+).*' '$2\t$1' < /etc/passwd
|
||||
string replace -f -r '^([[:alpha:]][^:]*):[^:]*:(\d+).*' '$2\t$1' </etc/passwd
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user