Files
fish-shell/share/functions/__fish_print_users.fish
Johannes Altmanninger a53db72564 Mark private functions that don't need localization
See the next commit.

Part of #11833
2025-09-30 11:47:26 +02:00

10 lines
461 B
Fish

# localization: skip(private)
#
# This should be used where you want user names without a description. If you also want
# a description, such as when getting a list of users for a completion, you probably want
# __fish_complete_users.
function __fish_print_users --description "Print a list of local users"
# Leave the heavy lifting to __fish_complete_users but strip the descriptions.
__fish_complete_users | string replace -r '^([^\t]*)\t.*' '$1'
end