2011-11-01 22:14:45 +02:00
|
|
|
# lastlog(8) completion -*- shell-script -*-
|
2011-10-12 23:01:10 +03:00
|
|
|
|
|
|
|
_lastlog()
|
|
|
|
{
|
|
|
|
local cur prev words cword split
|
|
|
|
_init_completion -s || return
|
|
|
|
|
|
|
|
case $prev in
|
|
|
|
-b|--before|-h|--help|-t|--time)
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
-u|--user)
|
|
|
|
COMPREPLY=( $( compgen -u -- "$cur" ) )
|
|
|
|
return 0
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
$split && return 0
|
|
|
|
|
2013-02-02 21:01:18 +02:00
|
|
|
COMPREPLY=( $( compgen -W '$( _parse_help "$1" )' -- "$cur" ) )
|
|
|
|
[[ $COMPREPLY == *= ]] && compopt -o nospace
|
2011-10-12 23:01:10 +03:00
|
|
|
} &&
|
|
|
|
complete -F _lastlog lastlog
|
|
|
|
|
|
|
|
# ex: ts=4 sw=4 et filetype=sh
|