Server IP : 66.235.200.170 / Your IP : 3.142.146.163 Web Server : Apache System : Linux gator4410.hostgator.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64 User : bmgxafte ( 1214) PHP Version : 8.2.28 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/share/bash-completion/completions/
Current File : /usr/share/bash-completion/completions/ci
# bash completion for rcs -*- shell-script -*-
_rcs()
{
local cur prev words cword
_init_completion || return
local file dir i
file=${cur##*/}
dir=${cur%/*}
# deal with relative directory
[[ $file == "$dir" ]] && dir=.
COMPREPLY=($(compgen -f -- "$dir/RCS/$file"))
for i in ${!COMPREPLY[*]}; do
file=${COMPREPLY[i]##*/}
dir=${COMPREPLY[i]%RCS/*}
COMPREPLY[i]=$dir$file
done
COMPREPLY+=($(compgen -G "$dir/$file*,v"))
for i in ${!COMPREPLY[*]}; do
COMPREPLY[i]=${COMPREPLY[i]%,v}
done
# default to files if nothing returned and we're checking in.
# otherwise, default to directories
[[ ${#COMPREPLY[@]} -eq 0 && $1 == *ci ]] && _filedir || _filedir -d
} &&
complete -F _rcs ci co rlog rcs rcsdiff
# ex: filetype=sh