Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.20
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
zsh /
functions /
Completion /
Unix /
[ HOME SHELL ]
Name
Size
Permission
Action
_a2ps
2.73
KB
-rw-r--r--
_aap
2.58
KB
-rw-r--r--
_abcde
2.39
KB
-rw-r--r--
_absolute_command_paths
1022
B
-rw-r--r--
_ack
8.09
KB
-rw-r--r--
_adb
15.1
KB
-rw-r--r--
_ansible
13.42
KB
-rw-r--r--
_ant
6.03
KB
-rw-r--r--
_antiword
1.08
KB
-rw-r--r--
_apachectl
116
B
-rw-r--r--
_apm
1.64
KB
-rw-r--r--
_arch_archives
413
B
-rw-r--r--
_arch_namespace
3.23
KB
-rw-r--r--
_arp
3.07
KB
-rw-r--r--
_arping
2.17
KB
-rw-r--r--
_asciidoctor
2.33
KB
-rw-r--r--
_asciinema
1.93
KB
-rw-r--r--
_at
1.01
KB
-rw-r--r--
_attr
3.15
KB
-rw-r--r--
_augeas
2.51
KB
-rw-r--r--
_avahi
2.27
KB
-rw-r--r--
_awk
4.57
KB
-rw-r--r--
_base64
2.04
KB
-rw-r--r--
_basename
767
B
-rw-r--r--
_bash
3.52
KB
-rw-r--r--
_baudrates
2.37
KB
-rw-r--r--
_baz
15.64
KB
-rw-r--r--
_beep
1.59
KB
-rw-r--r--
_bibtex
160
B
-rw-r--r--
_bind_addresses
1.4
KB
-rw-r--r--
_bison
923
B
-rw-r--r--
_bittorrent
4.76
KB
-rw-r--r--
_bogofilter
5.13
KB
-rw-r--r--
_bpf_filters
7.67
KB
-rw-r--r--
_bpython
1.25
KB
-rw-r--r--
_bzip2
2.17
KB
-rw-r--r--
_bzr
11.17
KB
-rw-r--r--
_cabal
292
B
-rw-r--r--
_cal
547
B
-rw-r--r--
_calendar
1.37
KB
-rw-r--r--
_canonical_paths
3.61
KB
-rw-r--r--
_cat
2.04
KB
-rw-r--r--
_ccal
778
B
-rw-r--r--
_cdcd
2.09
KB
-rw-r--r--
_cdrdao
7.95
KB
-rw-r--r--
_cdrecord
4.75
KB
-rw-r--r--
_chkconfig
777
B
-rw-r--r--
_chmod
2.87
KB
-rw-r--r--
_chown
3.5
KB
-rw-r--r--
_chroot
1.41
KB
-rw-r--r--
_chsh
1.97
KB
-rw-r--r--
_cksum
3.88
KB
-rw-r--r--
_clay
1.73
KB
-rw-r--r--
_cmdambivalent
391
B
-rw-r--r--
_cmdstring
102
B
-rw-r--r--
_cmp
1.1
KB
-rw-r--r--
_column
3.79
KB
-rw-r--r--
_comm
995
B
-rw-r--r--
_composer
31.47
KB
-rw-r--r--
_compress
1.38
KB
-rw-r--r--
_configure
444
B
-rw-r--r--
_cowsay
904
B
-rw-r--r--
_cp
4.09
KB
-rw-r--r--
_cpio
4.48
KB
-rw-r--r--
_cplay
343
B
-rw-r--r--
_crontab
2.03
KB
-rw-r--r--
_cscope
1.56
KB
-rw-r--r--
_cssh
795
B
-rw-r--r--
_ctags_tags
170
B
-rw-r--r--
_curl
224
B
-rw-r--r--
_cut
2.31
KB
-rw-r--r--
_cvs
28.32
KB
-rw-r--r--
_darcs
1.18
KB
-rw-r--r--
_date
3.07
KB
-rw-r--r--
_date_formats
2.95
KB
-rw-r--r--
_dates
3.97
KB
-rw-r--r--
_dbus
4.69
KB
-rw-r--r--
_dconf
1.75
KB
-rw-r--r--
_dd
2.74
KB
-rw-r--r--
_devtodo
4.56
KB
-rw-r--r--
_df
3.51
KB
-rw-r--r--
_dhclient
3.44
KB
-rw-r--r--
_dict
2.09
KB
-rw-r--r--
_dict_words
1.26
KB
-rw-r--r--
_diff
90
B
-rw-r--r--
_diff3
1.99
KB
-rw-r--r--
_diff_options
9.04
KB
-rw-r--r--
_diffstat
1.71
KB
-rw-r--r--
_dig
4.59
KB
-rw-r--r--
_dir_list
680
B
-rw-r--r--
_directories
108
B
-rw-r--r--
_django
5.91
KB
-rw-r--r--
_dmesg
638
B
-rw-r--r--
_dmidecode
1.53
KB
-rw-r--r--
_dns_types
331
B
-rw-r--r--
_doas
656
B
-rw-r--r--
_domains
585
B
-rw-r--r--
_dos2unix
4.76
KB
-rw-r--r--
_drill
1.91
KB
-rw-r--r--
_dsh
1.68
KB
-rw-r--r--
_dtruss
684
B
-rw-r--r--
_du
4.48
KB
-rw-r--r--
_dvi
3.95
KB
-rw-r--r--
_ecasound
8.33
KB
-rw-r--r--
_ed
952
B
-rw-r--r--
_elfdump
1.29
KB
-rw-r--r--
_elinks
2.89
KB
-rw-r--r--
_email_addresses
5.5
KB
-rw-r--r--
_enscript
7.45
KB
-rw-r--r--
_entr
729
B
-rw-r--r--
_env
1.77
KB
-rw-r--r--
_espeak
2.12
KB
-rw-r--r--
_etags
2.08
KB
-rw-r--r--
_fakeroot
486
B
-rw-r--r--
_feh
6.85
KB
-rw-r--r--
_fetchmail
554
B
-rw-r--r--
_ffmpeg
7.83
KB
-rw-r--r--
_figlet
1.47
KB
-rw-r--r--
_file_modes
862
B
-rw-r--r--
_file_systems
1.18
KB
-rw-r--r--
_files
3.97
KB
-rw-r--r--
_find
5.48
KB
-rw-r--r--
_find_net_interfaces
1.3
KB
-rw-r--r--
_finger
2.11
KB
-rw-r--r--
_flac
5.78
KB
-rw-r--r--
_flex
3.08
KB
-rw-r--r--
_fmt
1.93
KB
-rw-r--r--
_fold
713
B
-rw-r--r--
_fortune
601
B
-rw-r--r--
_fsh
546
B
-rw-r--r--
_fuser
2.44
KB
-rw-r--r--
_gcc
77.94
KB
-rw-r--r--
_gcore
1.68
KB
-rw-r--r--
_gdb
1.51
KB
-rw-r--r--
_gem
13.6
KB
-rw-r--r--
_genisoimage
1.96
KB
-rw-r--r--
_getconf
3.71
KB
-rw-r--r--
_getent
2.05
KB
-rw-r--r--
_getfacl
1.55
KB
-rw-r--r--
_getmail
1.05
KB
-rw-r--r--
_getopt
1.15
KB
-rw-r--r--
_ghostscript
4.17
KB
-rw-r--r--
_git
361.69
KB
-rw-r--r--
_global
3.11
KB
-rw-r--r--
_global_tags
186
B
-rw-r--r--
_gnu_generic
178
B
-rw-r--r--
_gnupod
5.57
KB
-rw-r--r--
_gnutls
12.32
KB
-rw-r--r--
_go
256
B
-rw-r--r--
_gpg
13.47
KB
-rw-r--r--
_gphoto2
5.02
KB
-rw-r--r--
_gprof
1.31
KB
-rw-r--r--
_gradle
6.82
KB
-rw-r--r--
_graphicsmagick
28.23
KB
-rw-r--r--
_grep
6.13
KB
-rw-r--r--
_groff
2.2
KB
-rw-r--r--
_groups
1007
B
-rw-r--r--
_growisofs
19.16
KB
-rw-r--r--
_gsettings
1.32
KB
-rw-r--r--
_guilt
1.52
KB
-rw-r--r--
_gzip
4.17
KB
-rw-r--r--
_have_glob_qual
910
B
-rw-r--r--
_head
1.65
KB
-rw-r--r--
_hexdump
1.3
KB
-rw-r--r--
_host
1.05
KB
-rw-r--r--
_hostname
2.47
KB
-rw-r--r--
_hosts
2.92
KB
-rw-r--r--
_iconv
2.8
KB
-rw-r--r--
_id
1.84
KB
-rw-r--r--
_ifconfig
3.08
KB
-rw-r--r--
_iftop
918
B
-rw-r--r--
_imagemagick
27.49
KB
-rw-r--r--
_init_d
3.48
KB
-rw-r--r--
_initctl
6.18
KB
-rw-r--r--
_install
4.49
KB
-rw-r--r--
_iostat
6.41
KB
-rw-r--r--
_ip
20.47
KB
-rw-r--r--
_ipsec
6.54
KB
-rw-r--r--
_irssi
1.32
KB
-rw-r--r--
_ispell
4.11
KB
-rw-r--r--
_java
24.6
KB
-rw-r--r--
_java_class
693
B
-rw-r--r--
_joe
2.19
KB
-rw-r--r--
_join
1.16
KB
-rw-r--r--
_jq
2.22
KB
-rw-r--r--
_killall
3.28
KB
-rw-r--r--
_knock
304
B
-rw-r--r--
_kvno
669
B
-rw-r--r--
_last
2.69
KB
-rw-r--r--
_ld_debug
1.18
KB
-rw-r--r--
_ldconfig
2.47
KB
-rw-r--r--
_ldd
1.62
KB
-rw-r--r--
_less
6.23
KB
-rw-r--r--
_lha
1.71
KB
-rw-r--r--
_libvirt
9.53
KB
-rw-r--r--
_links
8.66
KB
-rw-r--r--
_list_files
1.4
KB
-rw-r--r--
_lldb
2.62
KB
-rw-r--r--
_ln
3.52
KB
-rw-r--r--
_loadkeys
595
B
-rw-r--r--
_locale
2.81
KB
-rw-r--r--
_localedef
3.03
KB
-rw-r--r--
_locales
349
B
-rw-r--r--
_locate
4.15
KB
-rw-r--r--
_look
998
B
-rw-r--r--
_lp
8.47
KB
-rw-r--r--
_ls
8.99
KB
-rw-r--r--
_lsof
5.01
KB
-rw-r--r--
_lua
1.78
KB
-rw-r--r--
_luarocks
22.74
KB
-rw-r--r--
_lynx
11.73
KB
-rw-r--r--
_lz4
4.47
KB
-rw-r--r--
_lzop
3.84
KB
-rw-r--r--
_mail
467
B
-rw-r--r--
_mailboxes
5.88
KB
-rw-r--r--
_make
8.95
KB
-rw-r--r--
_man
17.23
KB
-rw-r--r--
_md5sum
1.75
KB
-rw-r--r--
_mencal
1.06
KB
-rw-r--r--
_mh
3.68
KB
-rw-r--r--
_mime_types
1.15
KB
-rw-r--r--
_mkdir
1.15
KB
-rw-r--r--
_mkfifo
618
B
-rw-r--r--
_mknod
1.34
KB
-rw-r--r--
_mktemp
1.55
KB
-rw-r--r--
_module
5.35
KB
-rw-r--r--
_monotone
2.32
KB
-rw-r--r--
_moosic
11.75
KB
-rw-r--r--
_mosh
1.72
KB
-rw-r--r--
_mount
38.36
KB
-rw-r--r--
_mpc
9.92
KB
-rw-r--r--
_mt
3.14
KB
-rw-r--r--
_mtools
3.99
KB
-rw-r--r--
_mtr
3.24
KB
-rw-r--r--
_mutt
1.35
KB
-rw-r--r--
_mv
2.1
KB
-rw-r--r--
_my_accounts
45
B
-rw-r--r--
_myrepos
4.22
KB
-rw-r--r--
_mysql_utils
9.75
KB
-rw-r--r--
_mysqldiff
1.03
KB
-rw-r--r--
_ncftp
429
B
-rw-r--r--
_net_interfaces
204
B
-rw-r--r--
_netcat
1.29
KB
-rw-r--r--
_netstat
12.27
KB
-rw-r--r--
_newsgroups
210
B
-rw-r--r--
_nginx
810
B
-rw-r--r--
_ngrep
1.7
KB
-rw-r--r--
_nice
246
B
-rw-r--r--
_nkf
2.1
KB
-rw-r--r--
_nl
1.83
KB
-rw-r--r--
_nm
5.81
KB
-rw-r--r--
_nmap
3.39
KB
-rw-r--r--
_npm
380
B
-rw-r--r--
_nslookup
5.54
KB
-rw-r--r--
_numfmt
1.54
KB
-rw-r--r--
_objdump
11.24
KB
-rw-r--r--
_object_files
235
B
-rw-r--r--
_od
2.9
KB
-rw-r--r--
_openstack
8.98
KB
-rw-r--r--
_other_accounts
64
B
-rw-r--r--
_pack
361
B
-rw-r--r--
_pandoc
20.65
KB
-rw-r--r--
_paste
575
B
-rw-r--r--
_patch
8.47
KB
-rw-r--r--
_patchutils
4.74
KB
-rw-r--r--
_path_commands
2.98
KB
-rw-r--r--
_path_files
27.43
KB
-rw-r--r--
_pax
2.72
KB
-rw-r--r--
_pbm
25.26
KB
-rw-r--r--
_pdf
416
B
-rw-r--r--
_perforce
100.47
KB
-rw-r--r--
_perl
5.26
KB
-rw-r--r--
_perl_basepods
716
B
-rw-r--r--
_perl_modules
4.57
KB
-rw-r--r--
_perldoc
2.28
KB
-rw-r--r--
_pgrep
6.48
KB
-rw-r--r--
_php
6.72
KB
-rw-r--r--
_picocom
2.11
KB
-rw-r--r--
_pids
1.79
KB
-rw-r--r--
_pine
2.88
KB
-rw-r--r--
_ping
7.65
KB
-rw-r--r--
_pkg-config
3.03
KB
-rw-r--r--
_pkg_instance
353
B
-rw-r--r--
_pkgadd
1012
B
-rw-r--r--
_pkginfo
613
B
-rw-r--r--
_pkgrm
551
B
-rw-r--r--
_pon
443
B
-rw-r--r--
_ports
285
B
-rw-r--r--
_postfix
6.66
KB
-rw-r--r--
_postgresql
46.74
KB
-rw-r--r--
_postscript
333
B
-rw-r--r--
_printenv
114
B
-rw-r--r--
_printers
3.13
KB
-rw-r--r--
_process_names
1.22
KB
-rw-r--r--
_prove
2.44
KB
-rw-r--r--
_ps
8.39
KB
-rw-r--r--
_pspdf
326
B
-rw-r--r--
_psutils
3.69
KB
-rw-r--r--
_pump
1.41
KB
-rw-r--r--
_pv
4.29
KB
-rw-r--r--
_pwgen
1.53
KB
-rw-r--r--
_pydoc
858
B
-rw-r--r--
_python
2.11
KB
-rw-r--r--
_python_modules
1.09
KB
-rw-r--r--
_qemu
2.55
KB
-rw-r--r--
_quilt
8.67
KB
-rw-r--r--
_rake
2.78
KB
-rw-r--r--
_ranlib
403
B
-rw-r--r--
_rar
4.46
KB
-rw-r--r--
_rclone
24.33
KB
-rw-r--r--
_rcs
766
B
-rw-r--r--
_readelf
3.7
KB
-rw-r--r--
_readlink
1.71
KB
-rw-r--r--
_remote_files
2.69
KB
-rw-r--r--
_renice
424
B
-rw-r--r--
_ri
3.71
KB
-rw-r--r--
_rlogin
1.84
KB
-rw-r--r--
_rm
2.18
KB
-rw-r--r--
_rmdir
606
B
-rw-r--r--
_route
7.32
KB
-rw-r--r--
_rrdtool
591
B
-rw-r--r--
_rsync
13.44
KB
-rw-r--r--
_rubber
2.66
KB
-rw-r--r--
_ruby
6.12
KB
-rw-r--r--
_runit
2.15
KB
-rw-r--r--
_samba
6.19
KB
-rw-r--r--
_sccs
6.04
KB
-rw-r--r--
_scons
4.08
KB
-rw-r--r--
_screen
6.91
KB
-rw-r--r--
_script
2.53
KB
-rw-r--r--
_seafile
1.12
KB
-rw-r--r--
_sed
10.03
KB
-rw-r--r--
_seq
930
B
-rw-r--r--
_service
1.31
KB
-rw-r--r--
_services
951
B
-rw-r--r--
_setfacl
2
KB
-rw-r--r--
_sh
327
B
-rw-r--r--
_shasum
1.03
KB
-rw-r--r--
_showmount
428
B
-rw-r--r--
_shred
987
B
-rw-r--r--
_shuf
978
B
-rw-r--r--
_shutdown
2.1
KB
-rw-r--r--
_signals
1.09
KB
-rw-r--r--
_sisu
3.85
KB
-rw-r--r--
_slrn
1.1
KB
-rw-r--r--
_smartmontools
4.4
KB
-rw-r--r--
_socket
1.06
KB
-rw-r--r--
_sort
3.72
KB
-rw-r--r--
_spamassassin
475
B
-rw-r--r--
_split
2.83
KB
-rw-r--r--
_sqlite
3.48
KB
-rw-r--r--
_sqsh
2.11
KB
-rw-r--r--
_ssh
28.6
KB
-rw-r--r--
_ssh_hosts
1.08
KB
-rw-r--r--
_stat
3.16
KB
-rw-r--r--
_stdbuf
674
B
-rw-r--r--
_stgit
1.26
KB
-rw-r--r--
_stow
3.27
KB
-rw-r--r--
_strings
2.43
KB
-rw-r--r--
_strip
4.09
KB
-rw-r--r--
_stty
776
B
-rw-r--r--
_su
3.34
KB
-rw-r--r--
_subversion
18.08
KB
-rw-r--r--
_sudo
3.24
KB
-rw-r--r--
_surfraw
17.72
KB
-rw-r--r--
_swaks
3.38
KB
-rw-r--r--
_swanctl
9.98
KB
-rw-r--r--
_swift
5.82
KB
-rw-r--r--
_sys_calls
558
B
-rw-r--r--
_sysctl
3.72
KB
-rw-r--r--
_tac
542
B
-rw-r--r--
_tail
2.88
KB
-rw-r--r--
_tar
6.37
KB
-rw-r--r--
_tar_archive
1
KB
-rw-r--r--
_tardy
678
B
-rw-r--r--
_tcpdump
8.49
KB
-rw-r--r--
_tcptraceroute
583
B
-rw-r--r--
_tee
956
B
-rw-r--r--
_telnet
2.84
KB
-rw-r--r--
_terminals
230
B
-rw-r--r--
_tex
1.92
KB
-rw-r--r--
_texi
129
B
-rw-r--r--
_texinfo
16.12
KB
-rw-r--r--
_tidy
3.63
KB
-rw-r--r--
_tiff
10.47
KB
-rw-r--r--
_tilde_files
785
B
-rw-r--r--
_time_zone
222
B
-rw-r--r--
_timeout
815
B
-rw-r--r--
_tin
2.14
KB
-rw-r--r--
_tla
17.58
KB
-rw-r--r--
_tmux
63.42
KB
-rw-r--r--
_todo.sh
4.48
KB
-rw-r--r--
_toilet
868
B
-rw-r--r--
_top
7.46
KB
-rw-r--r--
_topgit
177
B
-rw-r--r--
_totd
287
B
-rw-r--r--
_touch
1.53
KB
-rw-r--r--
_tput
488
B
-rw-r--r--
_tr
1.47
KB
-rw-r--r--
_transmission
20.55
KB
-rw-r--r--
_tree
2.78
KB
-rw-r--r--
_truss
3.05
KB
-rw-r--r--
_tty
436
B
-rw-r--r--
_ttys
704
B
-rw-r--r--
_twidge
1.67
KB
-rw-r--r--
_twisted
1.34
KB
-rw-r--r--
_umountable
1.42
KB
-rw-r--r--
_unace
472
B
-rw-r--r--
_uname
2.96
KB
-rw-r--r--
_unexpand
1.1
KB
-rw-r--r--
_uniq
1.5
KB
-rw-r--r--
_unison
5.39
KB
-rw-r--r--
_units
2.75
KB
-rw-r--r--
_uptime
696
B
-rw-r--r--
_urls
5.91
KB
-rw-r--r--
_user_admin
6.24
KB
-rw-r--r--
_user_at_host
729
B
-rw-r--r--
_users
240
B
-rw-r--r--
_users_on
253
B
-rw-r--r--
_vcsh
2.33
KB
-rw-r--r--
_vim
6.89
KB
-rw-r--r--
_visudo
545
B
-rw-r--r--
_vmstat
4.47
KB
-rw-r--r--
_vorbis
8.57
KB
-rw-r--r--
_vpnc
3.14
KB
-rw-r--r--
_w
1.37
KB
-rw-r--r--
_w3m
4.43
KB
-rw-r--r--
_watch
1.47
KB
-rw-r--r--
_wc
793
B
-rw-r--r--
_webbrowser
205
B
-rw-r--r--
_wget
11.13
KB
-rw-r--r--
_whereis
36
B
-rw-r--r--
_who
2.36
KB
-rw-r--r--
_whois
4.73
KB
-rw-r--r--
_wiggle
1.09
KB
-rw-r--r--
_xargs
2.79
KB
-rw-r--r--
_xmlsoft
6.67
KB
-rw-r--r--
_xmlstarlet
7.29
KB
-rw-r--r--
_xmms2
5.26
KB
-rw-r--r--
_xxd
2.16
KB
-rw-r--r--
_xz
4.31
KB
-rw-r--r--
_yafc
1.78
KB
-rw-r--r--
_yodl
658
B
-rw-r--r--
_yp
3.18
KB
-rw-r--r--
_zcat
115
B
-rw-r--r--
_zdump
112
B
-rw-r--r--
_zfs
18.02
KB
-rw-r--r--
_zfs_dataset
2.69
KB
-rw-r--r--
_zfs_keysource_props
408
B
-rw-r--r--
_zfs_pool
51
B
-rw-r--r--
_zip
9.51
KB
-rw-r--r--
_zpool
9.53
KB
-rw-r--r--
_zsh
696
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : _luarocks
#compdef luarocks # Start of options' arguments' helpers (( $+functions[__luarocks_command] )) || __luarocks_command(){ local -a commands=( build:'build/compile a rock' config:'query information about the LuaRocks configuration' doc:'show documentation for an installed rock' download:'download a specific rock file from a rocks server' help:'help on commands' init:'initialize a directory for a Lua project using LuaRocks' install:'install a rock' lint:'check syntax of a rockspec' list:'list currently installed rocks' make:'compile package in current directory using a rockspec' new_version:'auto-write a rockspec for a new version of a rock' pack:'create a rock, packing sources or binaries' path:'return the currently configured package path' purge:'remove all installed rocks from a tree' remove:'uninstall a rock' search:'query the LuaRocks servers' show:'show information about an installed rock' test:'run the test suite in the current directory' unpack:'unpack the contents of a rock' upload:'upload a rockspec to the public rocks repository' which:'indicate which file corresponds to a given module name' write_rockspec:'write a template for a rockspec file' ) _describe -t commands 'command' commands "$@" } local option_deps_modes='--deps-mode=[specify how to handle dependencies]:mode:__luarocks_deps_modes' local rockspec_options=( '--license=[specify a license string]:license (e.g. "MIT/X11" or "GNU GPL v3")' '--summary=[a short one-line description summary]:summary:{_message -e "short summary of the rock"}' '--detailed=[a longer description string]:detailed_text:{_message -e "detailed description of the rock"}' '--homepage=[project homepage]:URL:_urls' '--lua-versions=[specify supported Lua versions]:lua version:_sequence compadd - 5.{1,2,3,4}' '--rockspec-format=[rockspec format version, such as "1.0" or "1.1"]:VER: ' '--lib=[comma separated list of C library files to link to]:library files' ) (( $+functions[__luarocks_deps_modes] )) || __luarocks_deps_modes(){ local modes=( 'all:use all trees from the rocks_trees list for finding dependencies' 'one:use only the current tree (possibly set with --tree)' 'order:use trees based on order (use the current tree and all trees below it on the rocks_trees list)' 'none:ignore dependencies altogether' ) _describe 'dependencies mode' modes } (( $+functions[__luarocks_rock_version] )) || __luarocks_rock_version(){ local i=2 while [[ -n "${words[$i]}" ]]; do if [[ ! "${words[$i]}" =~ '^-' ]]; then case "$1" in "external_or_local") if [[ ! -f "${words[$i]}" ]]; then _message -e "version for external rock ${words[$i]}" return else _message -e "version for local rock ${words[$i]}" fi ;; "installed") tree="$2" __luarocks_installed_rocks "${tree}" "${words[$i]}" return ;; "new_version") if [[ -f "${words[$i]}" ]]; then _message -e "new version for rock ${words[$i]}" return fi ;; "new_rock") _message -e "version for new rock ${words[$i]}" return ;; esac fi i=$(( i + 1 )) done } (( $+functions[___luarocks_manually_store_cache_configs_paths] )) || ___luarocks_manually_store_cache_configs_paths(){ user_config_path="$(_call_program user_config_path luarocks config --user-config)" system_config_path="$(_call_program system_config_path luarocks config --system-config)" { print -r user_config_path=${(qq)user_config_path} print -r system_config_path=${(qq)system_config_path} } >! ${cache_dir}/luarocks_configs_paths } (( $+functions[___luarocks_manually_store_cache_configured_values] )) || ___luarocks_manually_store_cache_configured_values(){ local default_trees=($(_call_program rock_trees luarocks config --rock-trees)) # The following command usually gives somethins like this # # /home/me/.luarocks user # /usr system # # We'll just use the 1st and 3rd elements in the array for the default trees configured_user_tree="${default_trees[1]}" configured_system_tree="${default_trees[3]}" configured_lua_version="$(_call_program lua_ver luarocks config --lua-ver)" { print -r configured_lua_version=${(qq)configured_lua_version} print -r configured_user_tree=${(qq)configured_user_tree} print -r configured_system_tree=${(qq)configured_system_tree} } >! ${cache_dir}/luarocks_configured_values } (( $+functions[___luarocks_installed_rocks_cache_policy] )) || ___luarocks_installed_rocks_cache_policy(){ local cache_file="$1" # Before checking the modification date of the manifests files vs the # installed rocks cache files, we need to perform the following checks: # - luarocks executable modification date vs modification date of cache file # holding the default configuration files' locations # ) if configuration files' locations were possibly changed, we need to: # * set and cache the *possibly* new locations of the configuration files # ) else: # * retrieve from cache the configuration files' locations # ) end if # - configuration files' modification date vs modification date of cache file # holding the values from `luarocks config --lua-ver` and `luarocks config # --rock-trees` # ) if the configuration files' locations were changed: # * set and cache the values from the commands above # ) else: # ) if configuration files are newer: # * set and cache the values from the commands above # ) else: # * retrieve from cache the values of the commands above # ) end if # ) end if # Decide which directory to retrieve cache from, and ensure it exists local cache_dir zstyle -s ":completion:${curcontext}:" cache-path cache_dir : ${cache_dir:=${ZDOTDIR:-$HOME}/.zcompcache} if [[ ! -d "$cache_dir" ]]; then [[ -e "$cache_dir" ]] && _message "cache-dir ($cache_dir) isn't a directory\!" fi local where_luarocks="${commands[luarocks]}" # luarocks_configured_values local configured_lua_version configured_user_tree configured_system_tree # luarocks_configs_paths local user_config_path system_config_path if [[ -e ${cache_dir}/luarocks_configs_paths ]]; then if [[ ${where_luarocks} -nt ${cache_dir}/luarocks_configs_paths ]]; then ___luarocks_manually_store_cache_configs_paths else . ${cache_dir}/luarocks_configs_paths fi else ___luarocks_manually_store_cache_configs_paths fi if [[ -e ${cache_dir}/luarocks_configured_values ]]; then if [[ ${user_config_path} -nt ${cache_dir}/luarocks_configured_values ]] || [[ ${system_config_path} -nt ${cache_dir}/luarocks_configured_values ]]; then ___luarocks_manually_store_cache_configured_values else . ${cache_dir}/luarocks_configured_values fi else ___luarocks_manually_store_cache_configured_values fi local user_manifest_file="${configured_user_tree}/lib/luarocks/rocks-${configured_lua_version}/manifest" local system_manifest_file="${configured_system_tree}/lib/luarocks/rocks-${configured_lua_version}/manifest" local cache_status=0 if [[ -f ${cache_file} ]]; then if [[ -f ${user_manifest_file} ]]; then if [[ ${cache_file} -nt ${user_manifest_file} ]]; then cache_status=1 fi fi if [[ -f ${system_manifest_file} ]]; then if [[ ${cache_file} -nt ${system_manifest_file} ]]; then cache_status=1 fi fi fi return cache_status } (( $+functions[__luarocks_installed_rocks] )) || __luarocks_installed_rocks(){ # This function optionally receives one argument of the tree in which # installed rocks are searched for. If this argument is used, the installed # rocks which will be completed by this function will not use the cache which # is valid only for installed rocks on default trees like /usr/lib/luarocks # and ~/.luarocks # # The second argument (optional as well) is meant for telling the function to # complete a version of a installed rock and not the rock itself from the list local tree="$1" local complete_version_for_rock="$2" if [[ -z ${tree} ]]; then local update_policy zstyle -s ":completion:${curcontext}:" cache-policy update_policy if [[ -z "$update_policy" ]]; then zstyle ":completion:${curcontext}:" cache-policy ___luarocks_installed_rocks_cache_policy fi if _cache_invalid luarocks_installed_list; then rocks_list=($(luarocks list --porcelain)) _store_cache luarocks_installed_list rocks_list else _retrieve_cache luarocks_installed_list fi if [[ -z ${rocks_list} ]]; then _message -r "no installed rocks" return fi if _cache_invalid luarocks_installed_names; then rocks_names=() for i in {1.."${#rocks_list[@]}"..4}; do rocks_names+=("${rocks_list[$i]}") done _store_cache luarocks_installed_names rocks_names else _retrieve_cache luarocks_installed_names fi if _cache_invalid luarocks_installed_versions; then rocks_versions=() for i in {2.."${#rocks_list[@]}"..4}; do rocks_versions+=("${rocks_list[$i]}") done _store_cache luarocks_installed_versions rocks_versions else _retrieve_cache luarocks_installed_versions fi if _cache_invalid luarocks_installed_descriptions; then rocks_descriptions=() for i in {1.."${#rocks_names[@]}"}; do name_version_description="$(luarocks show ${rocks_names[$i]} ${rocks_versions[$i]} 2>/dev/null | head -2 | tail -1)" total_length=${#name_version_description} garbage_length="$((${#rocks_names[$i]} + ${#rocks_versions[$i]} + 5))" description="${name_version_description[${garbage_length},${total_length}]}" rocks_descriptions+=("${description}") done _store_cache luarocks_installed_descriptions rocks_descriptions else _retrieve_cache luarocks_installed_descriptions fi if _cache_invalid luarocks_installed_names_and_descriptions; then rocks_names_and_descriptions=() for i in {1.."${#rocks_names[@]}"}; do name_and_description=${rocks_names[$i]}:"${rocks_versions[$i]} "${rocks_descriptions[$i]} rocks_names_and_descriptions+=(${name_and_description}) done else _store_cache luarocks_installed_names_and_descriptions rocks_names_and_descriptions fi else rocks_list=($(luarocks --tree="${tree}" list --porcelain 2> /dev/null)) if [[ -z ${rocks_list} ]]; then _message "no installed rocks in the specified tree" return fi rocks_names=() for i in {1.."${#rocks_list[@]}"..4}; do rocks_names+=("${rocks_list[$i]}") done rocks_versions=() for i in {2.."${#rocks_list[@]}"..4}; do rocks_versions+=("${rocks_list[$i]}") done rocks_descriptions=() for i in {1.."${#rocks_names[@]}"}; do name_version_description="$(luarocks show ${rocks_names[$i]} ${rocks_versions[$i]} 2> /dev/null | head -2 | tail -1)" total_length=${#name_version_description} garbage_length="$((${#rocks_names[$i]} + ${#rocks_versions[$i]} + 5))" description="${name_version_description[${garbage_length},${total_length}]}" rocks_descriptions+=("${description}") done rocks_names_and_descriptions=() for i in {1.."${#rocks_names[@]}"}; do name_and_description=${rocks_names[$i]}:"${rocks_versions[$i]} "${rocks_descriptions[$i]} rocks_names_and_descriptions+=(${name_and_description}) done fi if [[ -z "$complete_version_for_rock" ]]; then _describe 'installed rock' rocks_names_and_descriptions else if [[ ! -z "${rocks_names[(r)${complete_version_for_rock}]}" ]]; then # checks if the requested rock exists in the list of rocks_names local rock="${complete_version_for_rock}" local first_match_index=${rocks_names[(i)${rock}]} local last_match_index=${rocks_names[(I)${rock}]} local versions=() for i in {${first_match_index}..${last_match_index}}; do versions+=("${rocks_versions[$i]}") done _values "rock's version" $versions else if [[ -z "${tree}" ]]; then _message -r "no such rock installed" else _message -r "no such rock installed in tree ${tree}" fi fi fi } # Used to complete one or more of the following: # - .rockspec file # - .src.rock file # - external rock (( $+functions[__luarocks_rock] )) || __luarocks_rock(){ local -a alts=() while [[ $# -gt 0 ]]; do arg="$1" case "$arg" in (rockspec) alts+=('files:rock file:_files -g "*.rockspec(-.)"') shift 1 continue ;; (rockpack) alts+=(':rock file:{_files -g "*.src.rock(-.)"}') shift 1 continue ;; (external) alts+=(':external rock:') shift 1 continue ;; (installed) tree="$2" alts+=(":local rock:{__luarocks_installed_rocks ${tree}}") if [[ -z "${tree}" ]]; then shift else shift 2 fi continue ;; esac shift continue done _alternative ${alts[@]} } (( $+functions[__luarocks_git_tags] )) || __luarocks_git_tags(){ # Copied straight from definition of _git local expl declare -a tags tags=(${${(f)"$(_call_program tagrefs git for-each-ref --format='"%(refname)"' refs/tags 2>/dev/null)"}#refs/tags/}) __git_command_successful $pipestatus || return 1 _wanted tags expl tag compadd -M 'r:|/=**' "$@" -a - tags } # End of options' arguments' helpers & Start of sub commands helpers # arguments: # - must: .rockspec file / external rock # - optional: version (only when chossing external rock) local make_command_options=( '--pack-binary-rock[produce a .rock file with the contents of compilation inside the current directory instead of installing it]' '--keep[do not remove previously installed versions of the rock after building a new one]' '--branch=[override the `source.branch` field in the loaded rockspec]:NAME:{_message "branch name"}' ) local build_command_options=( "${make_command_options[@]}" '--only-deps[installs only the dependencies of the rock]' $option_deps_modes ) (( $+functions[_luarocks_build] )) || _luarocks_build(){ _arguments -A "-*" \ "${build_command_options[@]}" \ '1: :{__luarocks_rock "rockspec" "external"}' \ '2:: :{__luarocks_rock_version "external_or_local"}' } # arguments: # - must: option local config_command_options=( '--lua-incdir[path to Lua header files]' '--lua-libdir[path to Lua library files]' '--lua-ver[lua version (in major.minor format)]' '--system-config[location of the system config file]' '--user-config[location of the user config file]' '--rock-trees[rocks trees in useFirst the user tree, then the system tree]' ) (( $+functions[_luarocks_config] )) || _luarocks_config(){ _arguments "${config_command_options[@]}" } # arguments: # - must: installed rock local doc_command_options=( '--home[open the home page of project]' '--list[list documentation files only]' ) (( $+functions[_luarocks_doc] )) || _luarocks_doc(){ _arguments \ "${doc_command_options[@]}" \ "1: :{__luarocks_rock installed ${opt_args[--tree]}}" } # arguments: # - must: external only rockspec local download_command_options=( '--all[download all files if there are multiple matches]' '--source[download .src.rock if available]' '--rockspec[download .rockspec if available]' '--arch=[download rock for a specific architecture]:ARCH:' ) (( $+functions[_luarocks_download] )) || _luarocks_download(){ _arguments -A "-*" \ "${download_command_options[@]}" \ '1: :{__luarocks_rock "external"}' \ '2:: :{__luarocks_rock_version "external_or_local"}' } # arguments: # must: luarocks sub command (( $+functions[_luarocks_help] )) || _luarocks_help(){ _arguments '1: :__luarocks_command' } (( $+functions[_luarocks_init] )) || _luarocks_init(){ _arguments $rockspec_options \ '--reset[regenerate files if they already exist]' \ '1: :_guard "^-*" "name"'\ '2: :_guard "^-*" "version"' } # arguments: # - must: .rockspec file / external rock # - optional: version # NOTE: it receives the same argument as the build command and it accepts the same options as well (( $+functions[_luarocks_install] )) || _luarocks_install(){ _luarocks_build } # arguments: # - must: rockspec file (first and last) (( $+functions[_luarocks_lint] )) || _luarocks_lint(){ _arguments '1:: :{__luarocks_rock "rockspec"}' } # arguments: # NOTE: receives only options local list_command_options=( '--outdated[list only rocks for which there is a higher version available in the rocks server]' '--porcelain[produce machine-friendly output]' ) (( $+functions[_luarocks_list] )) || _luarocks_list(){ _arguments "${list_command_options[@]}" } # arguments: # - optional: rockspec file # NOTE: it's options were already described above. (( $+functions[_luarocks_make] )) || _luarocks_make(){ _arguments '1:: :{__luarocks_rock "rockspec"}' } # arguments: # - optional: .rockspec file / external rock # - optional: version (unless a --tag was given) # - optional: URL local new_version_command_options=( '--tag=[if no version is specified, this option'"'"'s argument is used instead]:tag:__luarocks_git_tags' ) (( $+functions[_luarocks_new_version] )) || _luarocks_new_version(){ _arguments -A "-*" \ "${new_version_command_options[@]}" \ '1:: :{__luarocks_rock "external" "rockspec"}' \ '2:: :{__luarocks_rock_version "external_or_local"}' \ '3:: :_urls' } # arguments: # - must: .rockspec file / external rock # - optional: version (( $+functions[_luarocks_pack] )) || _luarocks_pack(){ _luarocks_build } # arguments: # NOTE: receives only options local path_command_options=( "--no-bin[don't export the PATH variable]" '--append[append the paths to the existing paths]' '--lr-path[export the Lua path (not formatted as shell command)]' '--lr-cpath[export the Lua cpath (not formatted as shell command)]' '--lr-bin[export the system path (not formatted as shell command)]' ) (( $+functions[_luarocks_path] )) || _luarocks_path(){ _arguments "${path_command_options[@]}" } # NOTE: receives only options yet --tree is mandatory # NOTE: --force can be used only in conjunction with --old-versions local option_force='--force[force removing old versions when]' local purge_command_options=( '--old-versions[keep the highest-numbered version of each rock and remove the other ones]' $option_force ) (( $+functions[_luarocks_purge] )) || _luarocks_purge(){ _arguments "${purge_command_options[@]}" } # arguments: # - must: locally installed rock # - optional: version local option_force_fast='--force-fast[works like --force but doesn'"'"'t reports forced removals]' local remove_command_options=( $option_deps_modes $option_force $option_force_fast ) (( $+functions[_luarocks_remove] )) || _luarocks_remove(){ _arguments -A "-*" \ "${remove_command_options[@]}" \ "1: :{__luarocks_rock installed ${opt_args[--tree]}}" \ "2:: :{__luarocks_rock_version installed ${opt_args[--tree]}}" } # arguments: # - must: string as a search query local search_command_options=( '--source[return only rockspecs and source rocks]' '--binary[return only pure Lua and binary rocks (rocks that can be used with the "install" command without requiring a C toolchain)]' "--all[list all contents of the server that are suitable for this platform, don't filter by name]" '--porcelain[produce machine readable output]' ) (( $+functions[_luarocks_search] )) || _luarocks_search(){ _arguments \ "${search_command_options[@]}" \ '*: :_guard "^--*" "search query"' } # arguments: # - must: installed rock local show_command_options=( '--home[home page of project]' '--modules[all modules provided by this package as used by require()]' '--deps[packages this package depends on]' '--build-deps[show build-only dependencies for package]' '--test-deps[show dependencies for testing package]' '--rockspec[the full path of the rockspec file]' '--mversion[the package version]' '--rock-tree[local tree where rock is installed]' '--rock-dir[data directory of the installed rock]' ) (( $+functions[_luarocks_show] )) || _luarocks_show(){ _arguments \ "${show_command_options[@]}" \ "1: :{__luarocks_rock installed "${opt_args[--tree]}"}" \ "2:: :{__luarocks_rock_version installed ${opt_args[--tree]}}" } (( $+functions[_luarocks_test] )) || _luarocks_test(){ _arguments $option_deps_modes \ '--test-type=[specify the test suite type manually]:test suite type' \ '--reset[regenerate files if they already exist]' \ '1:rockspec:__luarocks_rock' \ '*:arg' } # arguments: # - must: rockpack file / external rock # - optional: version (only when chossing external rock) local unpack_command_options=( '--force[unpack files even if the output directory already exists]' ) (( $+functions[_luarocks_unpack] )) || _luarocks_unpack(){ _arguments \ "${unpack_command_options[@]}" \ '1: :{__luarocks_rock "rockpack" "external"}' } # arguments: # - must: rockspec file local upload_command_options=( "--skip-pack[don't pack and send source rock]" '(--temp-key)--api-key=[use and save specified API key]:api key' '(--api-key)--temp-key=[use specified temporary API key in this invocation only]:api key' '--force[replace existing rockspec if the same revision of a module already exists]' ) (( $+functions[_luarocks_upload] )) || _luarocks_upload(){ _arguments \ "${upload_command_options[@]}" \ '1: :{__luarocks_rock "rockspec"}' } (( $+functions[_luarocks_which] )) || _luarocks_which(){ _message -e modules 'module name' } (( $+functions[_luarocks_write_rockspec] )) || _luarocks_write_rockspec(){ _arguments -A "-*" \ "${rockspec_options[@]}" \ '--output=[write the rockspec with the given file]:file:_files' \ '--tag=[specify tag to use. Will attempt to extract version number from it]:tag:__git_tag' \ '1:: :{_message "new rock name"}' \ '2:: :{__luarocks_rock_version "new_rock"}' \ '3:: :_urls' } # The real thing _arguments -C \ '--dev[enable the sub-repositories in rocks servers]' \ '(--server --only-server)--server=[fetch rocks/rockspecs from specified server]:host:_hosts' \ '(--server --only-server)--only-server=[fetch rocks/rockspecs from specified server only]:host:_hosts' \ '--only-sources=[restrict downloads to paths matching the given URL]:URL:_urls' \ '--lua-dir=[specify location of lua installation]:path:_directories' \ '--tree=[specify which tree to operate on]:tree:_directories' \ '--local[use the tree in the user'"'"'s home directory]' \ '--verbose[display verbose output of commands executed]' \ '--timeout=[specify timeout for network operations]:timeout (seconds)' \ '1: :__luarocks_command' \ '*::arg:->args' case "$state" in (args) curcontext="${curcontext%:*:*}:luarocks-${words[1]}:" if [[ $? != 1 ]]; then _call_function ret _luarocks_${words[1]} fi esac
Close