mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
Fix No command 'dscl' found error of killall command
`dscl` command have OSX system, to change `__fish_print_users`
This commit is contained in:
@@ -13,7 +13,7 @@ if test (uname) != 'SunOS'
|
||||
|
||||
# Finds and completes all users, and their respective UID.
|
||||
function __make_users_completions
|
||||
set -l users (dscl . list /Users | grep -v '^_.*')
|
||||
set -l users (__fish_print_users)
|
||||
for user in $users
|
||||
set -l uid (id -u $user)
|
||||
# GNU doesn't support UID
|
||||
|
||||
Reference in New Issue
Block a user