One Hat Cyber Team
Your IP :
216.73.216.216
Server IP :
194.44.31.54
Server :
Linux zen.imath.kiev.ua 4.18.0-553.77.1.el8_10.x86_64 #1 SMP Fri Oct 3 14:30:23 UTC 2025 x86_64
Server Software :
Apache/2.4.37 (Rocky Linux) OpenSSL/1.1.1k
PHP Version :
5.6.40
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
bash-completion
/
completions
/
View File Name :
clevis
# bash completion support for clevis. _clevis() { local dir prev cur field dir=$(dirname "$(command -v clevis)") prev=${COMP_WORDS[COMP_CWORD-1]} cur=${COMP_WORDS[COMP_CWORD]} field=$((COMP_CWORD + 1)) case "${prev}" in -d) cur=${cur:=/dev/} _filedir return ;; -k) _filedir return ;; esac local name suggestions if [[ "${COMP_WORDS[COMP_CWORD-1]}" == "clevis" ]]; then name="clevis-*" fi if [[ "${COMP_WORDS[COMP_CWORD-2]}" == "clevis" ]]; then name="clevis-${COMP_WORDS[COMP_CWORD-1]}-*" fi suggestions= if [[ -n "${name}" ]]; then suggestions=$(find "${dir}" -name "${name}" -executable \ | cut -d '-' -f"${field}" | sort -u) local word if [[ -n "${cur}" ]]; then suggestions=$(for word in "${suggestions[@]}"; do \ echo "${word}" | grep -- "${cur}"; done) fi fi COMPREPLY=($(compgen -W "${suggestions}" -- "${cur}")) } complete -F _clevis clevis # vim: set ts=8 shiftwidth=4 softtabstop=4 expandtab smarttab colorcolumn=80: