mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-26 10:43:47 +08: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:
parent
00cd01c89e
commit
c4f702b7c4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user