fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
330883b6f
master
1# Completions for the dm-tool command (part of the lightdm display manager) 2 3set -l cmds'add-local-x-seat add-nested-seat add-seat list-seats lock switch-to-greeter switch-to-guest switch-to-user' 4 5complete -c dm-tool -f 6complete -c dm-tool -n"not __fish_seen_subcommand_from $cmds " -s h -l help -x -d"Show help options" 7complete -c dm-tool -n"not __fish_seen_subcommand_from $cmds " -s v -l version -x -d"Show release version" 8complete -c dm-tool -n"not __fish_seen_subcommand_from $cmds " -l session-bus -d"Connect using the session bus" 9 10complete -c dm-tool -n"not __fish_seen_subcommand_from $cmds " -xa" $cmds " 11 12# switch-to-user 13set -l session_users"(dm-tool list-seats | string replace -rf '.*UserName=' '' | string trim -c '\'')" 14set -l has_user"__fish_seen_subcommand_from $session_users " 15complete -c dm-tool -n"__fish_seen_subcommand_from switch-to-user; and not $has_user " -xa" $session_users "