| Server IP : 85.112.90.236 / Your IP : 192.168.1.26 Web Server : Apache System : Linux 85-112-90-236.cprapid.com 6.12.0-211.7.3.el10_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 12:46:58 EDT 2026 x86_64 User : ftechme ( 1002) PHP Version : 8.2.32 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/bash-completion/completions/ |
Upload File : |
#-*- mode: shell-script;-*-
tracker3_cmds()
{
local cur prev words cword
_init_completion -s || return
cur=${COMP_WORDS[COMP_CWORD]}
if [[ $cword == 1 ]]; then
possible=`tracker3 | grep -E " [a-z].* " | awk '{ print ($1) }' | sort | uniq`
COMPREPLY=( $(compgen -W "$possible" -- $cur) )
return 0;
fi
case $prev in
-h|--help)
return 0;
;;
extract|info|-f|--file|-d|--database|-a|--add|-d|--remove)
if [[ $cur != -* ]]; then
_filedir
return 0;
fi
;;
-b|--dbus-service)
possible=`tracker3 endpoint --list`
COMPREPLY=( $(compgen -W "$possible" -- $cur) )
return 0;
;;
-r|--remote-service)
possible=`tracker3 endpoint --list-http`
COMPREPLY=( $(compgen -W "$possible" -- $cur) )
return 0;
;;
*)
;;
esac
if [[ $cword -lt 2 ]]; then
return 0;
fi
if [[ -z $cur ]] || [[ $cur == -* ]]; then
possible=`${words[0]} ${words[1]} -h | grep -E "^ *-" | sed "s/^ *//" | sed "s/ [^-].*//" | sed "s/,/\n/g" | sed "s/=.*//"`
COMPREPLY=( $(compgen -W "$possible" -- $cur) )
fi
}
complete -F tracker3_cmds tracker3