├── .cvsignore ├── .distfiles ├── .editorconfig ├── .gitignore ├── .preconfig ├── ChangeLog ├── Completion ├── .cvsignore ├── .distfiles ├── AIX │ ├── .distfiles │ ├── Command │ │ ├── .distfiles │ │ ├── _floppy │ │ ├── _lscfg │ │ ├── _lsdev │ │ ├── _lslv │ │ ├── _lspv │ │ ├── _lsvg │ │ └── _smit │ └── Type │ │ ├── .distfiles │ │ ├── _logical_volumes │ │ ├── _object_classes │ │ ├── _physical_volumes │ │ └── _volume_groups ├── BSD │ ├── .distfiles │ ├── Command │ │ ├── .distfiles │ │ ├── _acpiconf │ │ ├── _bsd_pkg │ │ ├── _bsdconfig │ │ ├── _bsdinstall │ │ ├── _chflags │ │ ├── _csup │ │ ├── _cu │ │ ├── _cvsup │ │ ├── _fetch │ │ ├── _freebsd-update │ │ ├── _fstat │ │ ├── _fw_update │ │ ├── _gstat │ │ ├── _ipfw │ │ ├── _jail │ │ ├── _jexec │ │ ├── _jls │ │ ├── _jot │ │ ├── _kdump │ │ ├── _kld │ │ ├── _ktrace │ │ ├── _ldap │ │ ├── _mixerctl │ │ ├── _pfctl │ │ ├── _pkgin │ │ ├── _portaudit │ │ ├── _portlint │ │ ├── _portmaster │ │ ├── _portsnap │ │ ├── _powerd │ │ ├── _procstat │ │ ├── _rcctl │ │ ├── _signify │ │ ├── _sockstat │ │ ├── _sysclean │ │ ├── _sysmerge │ │ ├── _syspatch │ │ ├── _sysrc │ │ ├── _systat │ │ ├── _sysupgrade │ │ ├── _usbconfig │ │ ├── _vmctl │ │ └── _watch-snoop │ └── Type │ │ ├── .distfiles │ │ ├── _bsd_disks │ │ ├── _fbsd_architectures │ │ ├── _fbsd_device_types │ │ ├── _file_flags │ │ ├── _jails │ │ ├── _ktrace_points │ │ ├── _login_classes │ │ ├── _nbsd_architectures │ │ ├── _obsd_architectures │ │ ├── _routing_domains │ │ └── _routing_tables ├── Base │ ├── .distfiles │ ├── Completer │ │ ├── .distfiles │ │ ├── _all_matches │ │ ├── _approximate │ │ ├── _complete │ │ ├── _correct │ │ ├── _expand │ │ ├── _expand_alias │ │ ├── _extensions │ │ ├── _external_pwds │ │ ├── _history │ │ ├── _ignored │ │ ├── _list │ │ ├── _match │ │ ├── _menu │ │ ├── _oldlist │ │ ├── _prefix │ │ └── _user_expand │ ├── Core │ │ ├── .distfiles │ │ ├── _all_labels │ │ ├── _description │ │ ├── _dispatch │ │ ├── _main_complete │ │ ├── _message │ │ ├── _next_label │ │ ├── _normal │ │ ├── _requested │ │ ├── _setup │ │ ├── _tags │ │ └── _wanted │ ├── Utility │ │ ├── .distfiles │ │ ├── _alternative │ │ ├── _arg_compile │ │ ├── _arguments │ │ ├── _as_if │ │ ├── _cache_invalid │ │ ├── _call_function │ │ ├── _call_program │ │ ├── _combination │ │ ├── _comp_locale │ │ ├── _complete_help_generic │ │ ├── _describe │ │ ├── _guard │ │ ├── _multi_parts │ │ ├── _nothing │ │ ├── _numbers │ │ ├── _pick_variant │ │ ├── _regex_arguments │ │ ├── _regex_words │ │ ├── _retrieve_cache │ │ ├── _sep_parts │ │ ├── _sequence │ │ ├── _set_command │ │ ├── _shadow │ │ ├── _store_cache │ │ ├── _sub_commands │ │ └── _values │ └── Widget │ │ ├── .distfiles │ │ ├── _bash_completions │ │ ├── _complete_debug │ │ ├── _complete_help │ │ ├── _complete_tag │ │ ├── _correct_filename │ │ ├── _correct_word │ │ ├── _expand_word │ │ ├── _generic │ │ ├── _history_complete_word │ │ ├── _most_recent_file │ │ ├── _next_tags │ │ └── _read_comp ├── Cygwin │ └── Command │ │ ├── .distfiles │ │ ├── _cygcheck │ │ ├── _cygpath │ │ ├── _cygrunsrv │ │ ├── _cygserver │ │ ├── _cygstart │ │ ├── _dumper │ │ ├── _getclip │ │ ├── _mkshortcut │ │ ├── _mkzsh │ │ ├── _pscp │ │ ├── _putclip │ │ └── _readshortcut ├── Darwin │ ├── Command │ │ ├── .distfiles │ │ ├── _caffeinate │ │ ├── _defaults │ │ ├── _fink │ │ ├── _fs_usage │ │ ├── _hdiutil │ │ ├── _mdfind │ │ ├── _mdls │ │ ├── _mdutil │ │ ├── _networksetup │ │ ├── _nvram │ │ ├── _open │ │ ├── _osascript │ │ ├── _otool │ │ ├── _pbcopy │ │ ├── _plutil │ │ ├── _qtplay │ │ ├── _say │ │ ├── _sc_usage │ │ ├── _scselect │ │ ├── _scutil │ │ ├── _shortcuts │ │ ├── _softwareupdate │ │ ├── _sw_vers │ │ ├── _system_profiler │ │ └── _xcode-select │ └── Type │ │ ├── .distfiles │ │ ├── _mac_applications │ │ ├── _mac_files_for_application │ │ └── _retrieve_mac_apps ├── Debian │ ├── .distfiles │ ├── Command │ │ ├── .distfiles │ │ ├── _a2utils │ │ ├── _apt │ │ ├── _apt-file │ │ ├── _apt-move │ │ ├── _apt-show-versions │ │ ├── _aptitude │ │ ├── _auto-apt │ │ ├── _axi-cache │ │ ├── _bts │ │ ├── _bug │ │ ├── _cdbs-edit-patch │ │ ├── _dak │ │ ├── _dchroot │ │ ├── _dchroot-dsa │ │ ├── _dcut │ │ ├── _debchange │ │ ├── _debcheckout │ │ ├── _debdiff │ │ ├── _debfoster │ │ ├── _debmany │ │ ├── _deborphan │ │ ├── _debsign │ │ ├── _debsnap │ │ ├── _debuild │ │ ├── _dhomepage │ │ ├── _dlocate │ │ ├── _dpatch-edit-patch │ │ ├── _dpkg │ │ ├── _dpkg-buildpackage │ │ ├── _dpkg-cross │ │ ├── _dpkg-info │ │ ├── _dpkg-repack │ │ ├── _dpkg_source │ │ ├── _dput │ │ ├── _dscverify │ │ ├── _dupload │ │ ├── _git-buildpackage │ │ ├── _grep-excuses │ │ ├── _invoke-rc.d │ │ ├── _lighttpd │ │ ├── _lintian │ │ ├── _madison │ │ ├── _make-kpkg │ │ ├── _members │ │ ├── _mergechanges │ │ ├── _module-assistant │ │ ├── _pbuilder │ │ ├── _piuparts │ │ ├── _reprepro │ │ ├── _sbuild │ │ ├── _schroot │ │ ├── _svn-buildpackage │ │ ├── _toolchain-source │ │ ├── _update-alternatives │ │ ├── _update-rc.d │ │ ├── _uscan │ │ ├── _vim-addons │ │ ├── _wajig │ │ └── _which-pkg-broke │ └── Type │ │ ├── .distfiles │ │ ├── _deb_architectures │ │ ├── _deb_codenames │ │ ├── _deb_files │ │ ├── _deb_packages │ │ └── _debbugs_bugnumber ├── Linux │ ├── Command │ │ ├── .distfiles │ │ ├── _acpi │ │ ├── _acpitool │ │ ├── _alsa-utils │ │ ├── _analyseplugin │ │ ├── _basenc │ │ ├── _brctl │ │ ├── _btrfs │ │ ├── _chattr │ │ ├── _choom │ │ ├── _chrt │ │ ├── _cpupower │ │ ├── _cryptsetup │ │ ├── _e2label │ │ ├── _ethtool │ │ ├── _findmnt │ │ ├── _free │ │ ├── _fusermount │ │ ├── _gpasswd │ │ ├── _htop │ │ ├── _iconvconfig │ │ ├── _ionice │ │ ├── _ipset │ │ ├── _iptables │ │ ├── _iwconfig │ │ ├── _kpartx │ │ ├── _losetup │ │ ├── _lsattr │ │ ├── _lsblk │ │ ├── _lsns │ │ ├── _lsusb │ │ ├── _ltrace │ │ ├── _mat │ │ ├── _mat2 │ │ ├── _mdadm │ │ ├── _mii-tool │ │ ├── _modutils │ │ ├── _mondo │ │ ├── _networkmanager │ │ ├── _nsenter │ │ ├── _opkg │ │ ├── _perf │ │ ├── _pidof │ │ ├── _pkgtool │ │ ├── _pmap │ │ ├── _qdbus │ │ ├── _schedtool │ │ ├── _selinux │ │ ├── _setpriv │ │ ├── _setsid │ │ ├── _slabtop │ │ ├── _ss │ │ ├── _sshfs │ │ ├── _strace │ │ ├── _sysstat │ │ ├── _tload │ │ ├── _tpb │ │ ├── _tracepath │ │ ├── _tune2fs │ │ ├── _uml │ │ ├── _unshare │ │ ├── _valgrind │ │ ├── _vserver │ │ ├── _wipefs │ │ └── _wpa_cli │ └── Type │ │ ├── .distfiles │ │ ├── _capabilities │ │ ├── _fuse_arguments │ │ ├── _fuse_values │ │ ├── _selinux_contexts │ │ ├── _selinux_roles │ │ ├── _selinux_types │ │ ├── _selinux_users │ │ └── _wakeup_capable_devices ├── Mandriva │ ├── .distfiles │ └── Command │ │ ├── .distfiles │ │ ├── _rebootin │ │ └── _urpmi ├── README ├── Redhat │ ├── .distfiles │ └── Command │ │ ├── .distfiles │ │ ├── _dnf │ │ ├── _dnf5 │ │ ├── _rpm │ │ ├── _scl │ │ └── _yum ├── Solaris │ ├── Command │ │ ├── .distfiles │ │ ├── _beadm │ │ ├── _coreadm │ │ ├── _dhcpinfo │ │ ├── _dladm │ │ ├── _dtrace │ │ ├── _dumpadm │ │ ├── _flowadm │ │ ├── _fmadm │ │ ├── _inetadm │ │ ├── _ipadm │ │ ├── _pfexec │ │ ├── _pkg5 │ │ ├── _prstat │ │ ├── _ptree │ │ ├── _savecore │ │ ├── _snoop │ │ ├── _svcadm │ │ ├── _svccfg │ │ ├── _svcprop │ │ ├── _svcs │ │ ├── _zlogin │ │ └── _zoneadm │ └── Type │ │ ├── .distfiles │ │ ├── _be_name │ │ ├── _svcs_fmri │ │ └── _zones ├── Unix │ ├── .distfiles │ ├── Command │ │ ├── .distfiles │ │ ├── _a2ps │ │ ├── _aap │ │ ├── _abcde │ │ ├── _ack │ │ ├── _adb │ │ ├── _ansible │ │ ├── _ant │ │ ├── _antiword │ │ ├── _apachectl │ │ ├── _apm │ │ ├── _arp │ │ ├── _arping │ │ ├── _asciidoctor │ │ ├── _asciinema │ │ ├── _at │ │ ├── _attr │ │ ├── _augeas │ │ ├── _avahi │ │ ├── _awk │ │ ├── _base64 │ │ ├── _basename │ │ ├── _bash │ │ ├── _baz │ │ ├── _beep │ │ ├── _bibtex │ │ ├── _bison │ │ ├── _bittorrent │ │ ├── _bogofilter │ │ ├── _bpython │ │ ├── _bzip2 │ │ ├── _bzr │ │ ├── _cabal │ │ ├── _cacaclock │ │ ├── _cal │ │ ├── _calendar │ │ ├── _cat │ │ ├── _ccal │ │ ├── _cdcd │ │ ├── _cdrdao │ │ ├── _cdrecord │ │ ├── _chkconfig │ │ ├── _chmod │ │ ├── _chown │ │ ├── _chroot │ │ ├── _chsh │ │ ├── _cksum │ │ ├── _clay │ │ ├── _cmp │ │ ├── _col │ │ ├── _column │ │ ├── _comm │ │ ├── _composer │ │ ├── _compress │ │ ├── _configure │ │ ├── _cowsay │ │ ├── _cp │ │ ├── _cpio │ │ ├── _cplay │ │ ├── _crontab │ │ ├── _cscope │ │ ├── _csplit │ │ ├── _cssh │ │ ├── _ctags │ │ ├── _curl │ │ ├── _cut │ │ ├── _cvs │ │ ├── _darcs │ │ ├── _date │ │ ├── _dbus │ │ ├── _dconf │ │ ├── _dd │ │ ├── _devtodo │ │ ├── _df │ │ ├── _dhclient │ │ ├── _dict │ │ ├── _diff │ │ ├── _diff3 │ │ ├── _diffstat │ │ ├── _dig │ │ ├── _django │ │ ├── _dmesg │ │ ├── _dmidecode │ │ ├── _doas │ │ ├── _dos2unix │ │ ├── _drill │ │ ├── _dropbox │ │ ├── _dsh │ │ ├── _dtruss │ │ ├── _du │ │ ├── _dvi │ │ ├── _ecasound │ │ ├── _ed │ │ ├── _elfdump │ │ ├── _elinks │ │ ├── _enscript │ │ ├── _entr │ │ ├── _env │ │ ├── _espeak │ │ ├── _etags │ │ ├── _fakeroot │ │ ├── _feh │ │ ├── _fetchmail │ │ ├── _ffmpeg │ │ ├── _figlet │ │ ├── _find │ │ ├── _finger │ │ ├── _flac │ │ ├── _flex │ │ ├── _fmt │ │ ├── _fold │ │ ├── _fortune │ │ ├── _fsh │ │ ├── _fuser │ │ ├── _gcc │ │ ├── _gcore │ │ ├── _gdb │ │ ├── _gem │ │ ├── _genisoimage │ │ ├── _getconf │ │ ├── _getent │ │ ├── _getfacl │ │ ├── _getmail │ │ ├── _getopt │ │ ├── _ghostscript │ │ ├── _git │ │ ├── _global │ │ ├── _gnu_generic │ │ ├── _gnupod │ │ ├── _gnutls │ │ ├── _go │ │ ├── _gpg │ │ ├── _gphoto2 │ │ ├── _gprof │ │ ├── _gradle │ │ ├── _graphicsmagick │ │ ├── _grep │ │ ├── _groff │ │ ├── _growisofs │ │ ├── _gsettings │ │ ├── _guilt │ │ ├── _gzip │ │ ├── _head │ │ ├── _hexdump │ │ ├── _host │ │ ├── _hostname │ │ ├── _iconv │ │ ├── _id │ │ ├── _ifconfig │ │ ├── _iftop │ │ ├── _imagemagick │ │ ├── _init_d │ │ ├── _initctl │ │ ├── _install │ │ ├── _iostat │ │ ├── _ip │ │ ├── _ipsec │ │ ├── _irssi │ │ ├── _ispell │ │ ├── _java │ │ ├── _joe │ │ ├── _join │ │ ├── _jq │ │ ├── _killall │ │ ├── _knock │ │ ├── _kvno │ │ ├── _last │ │ ├── _ldconfig │ │ ├── _ldd │ │ ├── _less │ │ ├── _lha │ │ ├── _libvirt │ │ ├── _links │ │ ├── _lldb │ │ ├── _ln │ │ ├── _loadkeys │ │ ├── _locale │ │ ├── _localedef │ │ ├── _locate │ │ ├── _logger │ │ ├── _look │ │ ├── _lp │ │ ├── _ls │ │ ├── _lsof │ │ ├── _lua │ │ ├── _luarocks │ │ ├── _lynx │ │ ├── _lz4 │ │ ├── _lzop │ │ ├── _mail │ │ ├── _make │ │ ├── _man │ │ ├── _md5sum │ │ ├── _mencal │ │ ├── _mh │ │ ├── _mkdir │ │ ├── _mkfifo │ │ ├── _mknod │ │ ├── _mktemp │ │ ├── _module │ │ ├── _monotone │ │ ├── _moosic │ │ ├── _mosh │ │ ├── _mount │ │ ├── _mpc │ │ ├── _mt │ │ ├── _mtools │ │ ├── _mtr │ │ ├── _mutt │ │ ├── _mv │ │ ├── _myrepos │ │ ├── _mysql_utils │ │ ├── _mysqldiff │ │ ├── _ncftp │ │ ├── _netcat │ │ ├── _netstat │ │ ├── _nginx │ │ ├── _ngrep │ │ ├── _nice │ │ ├── _nkf │ │ ├── _nl │ │ ├── _nm │ │ ├── _nmap │ │ ├── _npm │ │ ├── _nslookup │ │ ├── _numfmt │ │ ├── _objdump │ │ ├── _od │ │ ├── _openldap │ │ ├── _openstack │ │ ├── _opustools │ │ ├── _pack │ │ ├── _pandoc │ │ ├── _paste │ │ ├── _patch │ │ ├── _patchutils │ │ ├── _pax │ │ ├── _pbm │ │ ├── _perforce │ │ ├── _perl │ │ ├── _perlbrew │ │ ├── _perldoc │ │ ├── _pgrep │ │ ├── _php │ │ ├── _picocom │ │ ├── _pine │ │ ├── _ping │ │ ├── _pip │ │ ├── _pkg-config │ │ ├── _pkg_instance │ │ ├── _pkgadd │ │ ├── _pkginfo │ │ ├── _pkgrm │ │ ├── _pon │ │ ├── _postfix │ │ ├── _postgresql │ │ ├── _pr │ │ ├── _printenv │ │ ├── _prove │ │ ├── _ps │ │ ├── _psutils │ │ ├── _ptx │ │ ├── _pump │ │ ├── _pv │ │ ├── _pwgen │ │ ├── _pydoc │ │ ├── _python │ │ ├── _python_module-http.server │ │ ├── _python_module-json.tool │ │ ├── _python_module-venv │ │ ├── _qemu │ │ ├── _quilt │ │ ├── _rake │ │ ├── _ranlib │ │ ├── _rar │ │ ├── _rclone │ │ ├── _rcs │ │ ├── _readelf │ │ ├── _readlink │ │ ├── _renice │ │ ├── _ri │ │ ├── _rlogin │ │ ├── _rm │ │ ├── _rmdir │ │ ├── _route │ │ ├── _rrdtool │ │ ├── _rsync │ │ ├── _rubber │ │ ├── _ruby │ │ ├── _runit │ │ ├── _samba │ │ ├── _sccs │ │ ├── _scons │ │ ├── _screen │ │ ├── _script │ │ ├── _seafile │ │ ├── _sed │ │ ├── _seq │ │ ├── _service │ │ ├── _setfacl │ │ ├── _sh │ │ ├── _shasum │ │ ├── _showmount │ │ ├── _shred │ │ ├── _shuf │ │ ├── _shutdown │ │ ├── _sisu │ │ ├── _slrn │ │ ├── _smartmontools │ │ ├── _socket │ │ ├── _sort │ │ ├── _spamassassin │ │ ├── _split │ │ ├── _sqlite │ │ ├── _sqsh │ │ ├── _ssh │ │ ├── _stat │ │ ├── _stdbuf │ │ ├── _stow │ │ ├── _strings │ │ ├── _strip │ │ ├── _stty │ │ ├── _su │ │ ├── _subversion │ │ ├── _sudo │ │ ├── _surfraw │ │ ├── _swaks │ │ ├── _swanctl │ │ ├── _swift │ │ ├── _sysctl │ │ ├── _tac │ │ ├── _tail │ │ ├── _tar │ │ ├── _tardy │ │ ├── _tcpdump │ │ ├── _tcptraceroute │ │ ├── _tee │ │ ├── _telnet │ │ ├── _tex │ │ ├── _texinfo │ │ ├── _tidy │ │ ├── _tiff │ │ ├── _timeout │ │ ├── _tin │ │ ├── _tla │ │ ├── _tmux │ │ ├── _todo.sh │ │ ├── _toilet │ │ ├── _top │ │ ├── _topgit │ │ ├── _totd │ │ ├── _touch │ │ ├── _tput │ │ ├── _tr │ │ ├── _transmission │ │ ├── _trash │ │ ├── _tree │ │ ├── _truncate │ │ ├── _truss │ │ ├── _tty │ │ ├── _twidge │ │ ├── _twisted │ │ ├── _unace │ │ ├── _uname │ │ ├── _unexpand │ │ ├── _uniq │ │ ├── _unison │ │ ├── _units │ │ ├── _uptime │ │ ├── _user_admin │ │ ├── _vi │ │ ├── _vim │ │ ├── _visudo │ │ ├── _vmstat │ │ ├── _vorbis │ │ ├── _vpnc │ │ ├── _w │ │ ├── _w3m │ │ ├── _watch │ │ ├── _wc │ │ ├── _webbrowser │ │ ├── _wget │ │ ├── _whereis │ │ ├── _who │ │ ├── _whois │ │ ├── _wiggle │ │ ├── _xargs │ │ ├── _xfconf-query │ │ ├── _xmlsoft │ │ ├── _xmlstarlet │ │ ├── _xmms2 │ │ ├── _xxd │ │ ├── _xz │ │ ├── _yafc │ │ ├── _yodl │ │ ├── _yp │ │ ├── _zcat │ │ ├── _zdump │ │ ├── _zfs │ │ ├── _zip │ │ ├── _zsh │ │ └── _zstd │ └── Type │ │ ├── .distfiles │ │ ├── _absolute_command_paths │ │ ├── _arch_archives │ │ ├── _arch_namespace │ │ ├── _baudrates │ │ ├── _bind_addresses │ │ ├── _bpf_filters │ │ ├── _canonical_paths │ │ ├── _cmdambivalent │ │ ├── _cmdstring │ │ ├── _ctags_tags │ │ ├── _date_formats │ │ ├── _dates │ │ ├── _dict_words │ │ ├── _diff_options │ │ ├── _dir_list │ │ ├── _directories │ │ ├── _dns_types │ │ ├── _domains │ │ ├── _email_addresses │ │ ├── _file_modes │ │ ├── _file_systems │ │ ├── _files │ │ ├── _find_net_interfaces │ │ ├── _global_tags │ │ ├── _groups │ │ ├── _have_glob_qual │ │ ├── _hosts │ │ ├── _java_class │ │ ├── _ld_debug │ │ ├── _ldap_attributes │ │ ├── _ldap_filters │ │ ├── _list_files │ │ ├── _locales │ │ ├── _mailboxes │ │ ├── _mime_types │ │ ├── _my_accounts │ │ ├── _net_interfaces │ │ ├── _newsgroups │ │ ├── _object_files │ │ ├── _other_accounts │ │ ├── _path_commands │ │ ├── _path_files │ │ ├── _pdf │ │ ├── _perl_basepods │ │ ├── _perl_modules │ │ ├── _pgids │ │ ├── _pids │ │ ├── _ports │ │ ├── _postscript │ │ ├── _printers │ │ ├── _process_names │ │ ├── _pspdf │ │ ├── _python_modules │ │ ├── _remote_files │ │ ├── _services │ │ ├── _signals │ │ ├── _ssh_hosts │ │ ├── _sys_calls │ │ ├── _tar_archive │ │ ├── _terminals │ │ ├── _texi │ │ ├── _tilde_files │ │ ├── _time_zone │ │ ├── _ttys │ │ ├── _umountable │ │ ├── _urls │ │ ├── _user_at_host │ │ ├── _users │ │ ├── _users_on │ │ ├── _zfs_dataset │ │ └── _zfs_pool ├── X │ ├── .distfiles │ ├── Command │ │ ├── .distfiles │ │ ├── _acroread │ │ ├── _code │ │ ├── _dcop │ │ ├── _eog │ │ ├── _evince │ │ ├── _geany │ │ ├── _gnome-gv │ │ ├── _gqview │ │ ├── _gv │ │ ├── _kdeconnect │ │ ├── _kfmclient │ │ ├── _matlab │ │ ├── _mozilla │ │ ├── _mplayer │ │ ├── _mupdf │ │ ├── _nautilus │ │ ├── _nedit │ │ ├── _netscape │ │ ├── _okular │ │ ├── _pdftk │ │ ├── _qiv │ │ ├── _rdesktop │ │ ├── _setxkbmap │ │ ├── _sublimetext │ │ ├── _urxvt │ │ ├── _vnc │ │ ├── _x_utils │ │ ├── _xauth │ │ ├── _xautolock │ │ ├── _xclip │ │ ├── _xdvi │ │ ├── _xfig │ │ ├── _xinput │ │ ├── _xloadimage │ │ ├── _xmodmap │ │ ├── _xournal │ │ ├── _xpdf │ │ ├── _xrandr │ │ ├── _xscreensaver │ │ ├── _xset │ │ ├── _xterm │ │ ├── _xv │ │ ├── _xwit │ │ └── _zeal │ ├── Type │ │ ├── .distfiles │ │ ├── _x_borderwidth │ │ ├── _x_color │ │ ├── _x_colormapid │ │ ├── _x_cursor │ │ ├── _x_display │ │ ├── _x_extension │ │ ├── _x_font │ │ ├── _x_geometry │ │ ├── _x_keysym │ │ ├── _x_locale │ │ ├── _x_modifier │ │ ├── _x_name │ │ ├── _x_resource │ │ ├── _x_selection_timeout │ │ ├── _x_title │ │ ├── _x_visual │ │ ├── _x_window │ │ ├── _xft_fonts │ │ └── _xt_session_id │ └── Utility │ │ ├── .distfiles │ │ ├── _x_arguments │ │ └── _xt_arguments ├── Zsh │ ├── .distfiles │ ├── Command │ │ ├── .distfiles │ │ ├── _alias │ │ ├── _bindkey │ │ ├── _builtin │ │ ├── _cd │ │ ├── _command │ │ ├── _compadd │ │ ├── _compdef │ │ ├── _dirs │ │ ├── _disable │ │ ├── _echotc │ │ ├── _echoti │ │ ├── _emulate │ │ ├── _enable │ │ ├── _exec │ │ ├── _fc │ │ ├── _hash │ │ ├── _jobs_builtin │ │ ├── _kill │ │ ├── _limit │ │ ├── _mere │ │ ├── _precommand │ │ ├── _print │ │ ├── _prompt │ │ ├── _read │ │ ├── _run-help │ │ ├── _sched │ │ ├── _set │ │ ├── _setopt │ │ ├── _source │ │ ├── _strftime │ │ ├── _tcpsys │ │ ├── _trap │ │ ├── _ttyctl │ │ ├── _typeset │ │ ├── _ulimit │ │ ├── _unhash │ │ ├── _vared │ │ ├── _wait │ │ ├── _which │ │ ├── _zattr │ │ ├── _zcompile │ │ ├── _zed │ │ ├── _zftp │ │ ├── _zle │ │ ├── _zmodload │ │ ├── _zmv │ │ ├── _zparseopts │ │ ├── _zpty │ │ ├── _zsocket │ │ ├── _zstyle │ │ └── _ztodo │ ├── Context │ │ ├── .distfiles │ │ ├── _assign │ │ ├── _autocd │ │ ├── _brace_parameter │ │ ├── _condition │ │ ├── _default │ │ ├── _dynamic_directory_name │ │ ├── _equal │ │ ├── _first │ │ ├── _in_vared │ │ ├── _math │ │ ├── _parameter │ │ ├── _redirect │ │ ├── _subscript │ │ ├── _tilde │ │ ├── _value │ │ └── _zcalc_line │ ├── Function │ │ ├── .distfiles │ │ ├── __arguments │ │ ├── _add-zle-hook-widget │ │ ├── _add-zsh-hook │ │ ├── _vcs_info │ │ ├── _zargs │ │ ├── _zcalc │ │ └── _zsh-mime-handler │ └── Type │ │ ├── .distfiles │ │ ├── _aliases │ │ ├── _arrays │ │ ├── _command_names │ │ ├── _completers │ │ ├── _delimiters │ │ ├── _directory_stack │ │ ├── _file_descriptors │ │ ├── _functions │ │ ├── _globflags │ │ ├── _globqual_delims │ │ ├── _globquals │ │ ├── _history_modifiers │ │ ├── _jobs │ │ ├── _jobs_bg │ │ ├── _jobs_fg │ │ ├── _limits │ │ ├── _math_params │ │ ├── _module_math_func │ │ ├── _options │ │ ├── _options_set │ │ ├── _options_unset │ │ ├── _parameters │ │ ├── _ps1234 │ │ ├── _suffix_alias_files │ │ ├── _user_math_func │ │ ├── _vars │ │ ├── _vcs_info_hooks │ │ └── _widgets ├── bashcompinit ├── compaudit ├── compdump ├── compinit ├── compinstall └── openSUSE │ └── Command │ ├── .distfiles │ ├── _SUSEconfig │ ├── _hwinfo │ ├── _osc │ ├── _yast │ └── _zypper ├── Config ├── .cvsignore ├── .distfiles ├── aczshoot.m4 ├── clean.mk ├── config.mk ├── defs.mk.in ├── installfns.sh ├── uninstallfns.sh └── version.mk ├── Doc ├── .cvsignore ├── .distfiles ├── META-FAQ.yo ├── Makefile.in ├── Zsh │ ├── .cvsignore │ ├── .distfiles │ ├── .vimrc │ ├── arith.yo │ ├── builtins.yo │ ├── calsys.yo │ ├── compat.yo │ ├── compctl.yo │ ├── compsys.yo │ ├── compwid.yo │ ├── cond.yo │ ├── contrib.yo │ ├── exec.yo │ ├── expn.yo │ ├── filelist.yo │ ├── files.yo │ ├── func.yo │ ├── grammar.yo │ ├── index.yo │ ├── intro.yo │ ├── invoke.yo │ ├── jobs.yo │ ├── manual.yo │ ├── metafaq.yo │ ├── mod_attr.yo │ ├── mod_cap.yo │ ├── mod_clone.yo │ ├── mod_compctl.yo │ ├── mod_complete.yo │ ├── mod_complist.yo │ ├── mod_computil.yo │ ├── mod_curses.yo │ ├── mod_datetime.yo │ ├── mod_db_gdbm.yo │ ├── mod_deltochar.yo │ ├── mod_example.yo │ ├── mod_files.yo │ ├── mod_hlgroup.yo │ ├── mod_ksh93.yo │ ├── mod_langinfo.yo │ ├── mod_mapfile.yo │ ├── mod_mathfunc.yo │ ├── mod_nearcolor.yo │ ├── mod_newuser.yo │ ├── mod_parameter.yo │ ├── mod_pcre.yo │ ├── mod_private.yo │ ├── mod_random.yo │ ├── mod_regex.yo │ ├── mod_sched.yo │ ├── mod_socket.yo │ ├── mod_stat.yo │ ├── mod_system.yo │ ├── mod_tcp.yo │ ├── mod_termcap.yo │ ├── mod_terminfo.yo │ ├── mod_watch.yo │ ├── mod_zftp.yo │ ├── mod_zle.yo │ ├── mod_zleparameter.yo │ ├── mod_zprof.yo │ ├── mod_zpty.yo │ ├── mod_zselect.yo │ ├── mod_zutil.yo │ ├── modules.yo │ ├── options.yo │ ├── params.yo │ ├── prompt.yo │ ├── redirect.yo │ ├── restricted.yo │ ├── roadmap.yo │ ├── seealso.yo │ ├── tcpsys.yo │ ├── zftpsys.yo │ └── zle.yo ├── help │ ├── .cvsignore │ └── .distfiles ├── intro.ms ├── zmacros.yo ├── zman.yo ├── zsh.yo ├── zshbuiltins.yo ├── zshcalsys.yo ├── zshcompctl.yo ├── zshcompsys.yo ├── zshcompwid.yo ├── zshcontrib.yo ├── zshexpn.yo ├── zshmisc.yo ├── zshmodules.yo ├── zshoptions.yo ├── zshparam.yo ├── zshroadmap.yo ├── zshtcpsys.yo ├── zshzftpsys.yo ├── zshzle.yo └── ztexi.yo ├── Etc ├── .cvsignore ├── .distfiles ├── .gitignore ├── BUGS ├── CONTRIBUTORS ├── CVE-2021-45444-VCS_Info-workaround.patch ├── ChangeLog-3.0 ├── ChangeLog-3.1 ├── ChangeLog-4.1 ├── ChangeLog-4.3 ├── FAQ.yo ├── FTP-README ├── Makefile.in ├── NEWS-4.3 ├── STD-TODO ├── TODO ├── changelog2html.pl ├── completion-style-guide ├── creating-a-release.txt ├── pubring.pgp ├── relnote_4.3.10.txt ├── relnote_4.3.12.txt ├── relnote_4.3.5.txt ├── relnote_4.3.6.txt ├── relnote_4.3.7.txt ├── relnote_4.3.8.txt ├── relnote_4.3.9.txt ├── relnote_5.0.0.txt └── zsh-development-guide ├── FEATURES ├── Functions ├── .cvsignore ├── .distfiles ├── Calendar │ ├── .distfiles │ ├── after │ ├── age │ ├── before │ ├── calendar │ ├── calendar_add │ ├── calendar_edit │ ├── calendar_lockfiles │ ├── calendar_parse │ ├── calendar_read │ ├── calendar_scandate │ ├── calendar_show │ ├── calendar_showdate │ └── calendar_sort ├── Chpwd │ ├── .distfiles │ ├── _cdr │ ├── cdr │ ├── chpwd_recent_add │ ├── chpwd_recent_dirs │ ├── chpwd_recent_filehandler │ ├── zsh_directory_name_cdr │ └── zsh_directory_name_generic ├── Compctl │ ├── .distfiles │ ├── cdmatch │ ├── cdmatch2 │ └── multicomp ├── Example │ ├── .distfiles │ ├── acx │ ├── cat │ ├── cx │ ├── proto │ ├── pushd │ ├── randline │ ├── yp │ ├── yu │ ├── zless │ ├── zls │ └── zpgrep ├── Exceptions │ ├── .distfiles │ ├── catch │ └── throw ├── MIME │ ├── .distfiles │ ├── pick-web-browser │ ├── zsh-mime-contexts │ ├── zsh-mime-handler │ └── zsh-mime-setup ├── Math │ ├── .distfiles │ └── zmathfunc ├── Misc │ ├── .distfiles │ ├── add-zle-hook-widget │ ├── add-zsh-hook │ ├── allopt │ ├── checkmail │ ├── colors │ ├── getjobs │ ├── harden │ ├── is-at-least │ ├── mere │ ├── mkshadow │ ├── nslookup │ ├── promptnl │ ├── regexp-replace │ ├── relative │ ├── run-help │ ├── run-help-btrfs │ ├── run-help-docker │ ├── run-help-git │ ├── run-help-ip │ ├── run-help-openssl │ ├── run-help-p4 │ ├── run-help-perf │ ├── run-help-podman │ ├── run-help-ssh │ ├── run-help-sudo │ ├── run-help-svn │ ├── run-help-svnadmin │ ├── sticky-note │ ├── tetris │ ├── tetriscurses │ ├── xtermctl │ ├── zargs │ ├── zcalc │ ├── zed │ ├── zkbd │ ├── zmathfuncdef │ ├── zmv │ ├── zrecompile │ ├── zslurp │ ├── zstyle+ │ └── ztodo ├── Newuser │ ├── .distfiles │ └── zsh-newuser-install ├── Prompts │ ├── .distfiles │ ├── prompt_adam1_setup │ ├── prompt_adam2_setup │ ├── prompt_bart_setup │ ├── prompt_bigfade_setup │ ├── prompt_clint_setup │ ├── prompt_default_setup │ ├── prompt_elite2_setup │ ├── prompt_elite_setup │ ├── prompt_fade_setup │ ├── prompt_fire_setup │ ├── prompt_off_setup │ ├── prompt_oliver_setup │ ├── prompt_pws_setup │ ├── prompt_redhat_setup │ ├── prompt_restore_setup │ ├── prompt_special_chars │ ├── prompt_sprint2_setup │ ├── prompt_suse_setup │ ├── prompt_walters_setup │ ├── prompt_zefram_setup │ └── promptinit ├── README.zftp ├── TCP │ ├── .distfiles │ ├── tcp_alias │ ├── tcp_close │ ├── tcp_command │ ├── tcp_expect │ ├── tcp_fd_handler │ ├── tcp_log │ ├── tcp_open │ ├── tcp_output │ ├── tcp_point │ ├── tcp_proxy │ ├── tcp_read │ ├── tcp_rename │ ├── tcp_send │ ├── tcp_sess │ ├── tcp_shoot │ ├── tcp_spam │ ├── tcp_talk │ └── tcp_wait ├── VCS_Info │ ├── .distfiles │ ├── Backends │ │ ├── .distfiles │ │ ├── VCS_INFO_detect_bzr │ │ ├── VCS_INFO_detect_cdv │ │ ├── VCS_INFO_detect_cvs │ │ ├── VCS_INFO_detect_darcs │ │ ├── VCS_INFO_detect_fossil │ │ ├── VCS_INFO_detect_git │ │ ├── VCS_INFO_detect_hg │ │ ├── VCS_INFO_detect_mtn │ │ ├── VCS_INFO_detect_p4 │ │ ├── VCS_INFO_detect_svk │ │ ├── VCS_INFO_detect_svn │ │ ├── VCS_INFO_detect_tla │ │ ├── VCS_INFO_get_data_bzr │ │ ├── VCS_INFO_get_data_cdv │ │ ├── VCS_INFO_get_data_cvs │ │ ├── VCS_INFO_get_data_darcs │ │ ├── VCS_INFO_get_data_fossil │ │ ├── VCS_INFO_get_data_git │ │ ├── VCS_INFO_get_data_hg │ │ ├── VCS_INFO_get_data_mtn │ │ ├── VCS_INFO_get_data_p4 │ │ ├── VCS_INFO_get_data_svk │ │ ├── VCS_INFO_get_data_svn │ │ └── VCS_INFO_get_data_tla │ ├── VCS_INFO_adjust │ ├── VCS_INFO_bydir_detect │ ├── VCS_INFO_check_com │ ├── VCS_INFO_formats │ ├── VCS_INFO_get_cmd │ ├── VCS_INFO_hexdump │ ├── VCS_INFO_hook │ ├── VCS_INFO_maxexports │ ├── VCS_INFO_nvcsformats │ ├── VCS_INFO_patch2subject │ ├── VCS_INFO_quilt │ ├── VCS_INFO_reposub │ ├── VCS_INFO_set │ ├── VCS_INFO_set-branch-format │ ├── VCS_INFO_set-patch-format │ ├── test-repo-git-rebase-apply │ ├── test-repo-git-rebase-merge │ ├── vcs_info │ ├── vcs_info_hookadd │ ├── vcs_info_hookdel │ ├── vcs_info_lastmsg │ ├── vcs_info_printsys │ └── vcs_info_setsys ├── Zftp │ ├── .distfiles │ ├── zfanon │ ├── zfautocheck │ ├── zfcd │ ├── zfcd_match │ ├── zfcget │ ├── zfclose │ ├── zfcput │ ├── zfdir │ ├── zffcache │ ├── zfgcp │ ├── zfget │ ├── zfget_match │ ├── zfgoto │ ├── zfhere │ ├── zfinit │ ├── zfls │ ├── zfmark │ ├── zfopen │ ├── zfparams │ ├── zfpcp │ ├── zfput │ ├── zfrglob │ ├── zfrtime │ ├── zfsession │ ├── zfstat │ ├── zftp_chpwd │ ├── zftp_progress │ ├── zftransfer │ ├── zftype │ ├── zfuget │ └── zfuput └── Zle │ ├── .distfiles │ ├── backward-kill-word-match │ ├── backward-word-match │ ├── bracketed-paste-magic │ ├── bracketed-paste-url-magic │ ├── capitalize-word-match │ ├── copy-earlier-word │ ├── cycle-completion-positions │ ├── define-composed-chars │ ├── delete-whole-word-match │ ├── down-case-word-match │ ├── down-line-or-beginning-search │ ├── edit-command-line │ ├── expand-absolute-path │ ├── forward-word-match │ ├── history-beginning-search-menu │ ├── history-pattern-search │ ├── history-search-end │ ├── incarg │ ├── incremental-complete-word │ ├── insert-composed-char │ ├── insert-files │ ├── insert-unicode-char │ ├── keeper │ ├── keymap+widget │ ├── kill-word-match │ ├── match-word-context │ ├── match-words-by-style │ ├── modify-current-argument │ ├── move-line-in-buffer │ ├── narrow-to-region │ ├── narrow-to-region-invisible │ ├── predict-on │ ├── quote-and-complete-word │ ├── read-from-minibuffer │ ├── replace-argument │ ├── replace-string │ ├── replace-string-again │ ├── select-bracketed │ ├── select-quoted │ ├── select-word-match │ ├── select-word-style │ ├── send-invisible │ ├── smart-insert-last-word │ ├── split-shell-arguments │ ├── surround │ ├── transpose-lines │ ├── transpose-words-match │ ├── up-case-word-match │ ├── up-line-or-beginning-search │ ├── url-quote-magic │ ├── vi-pipe │ ├── which-command │ ├── zcalc-auto-insert │ └── zed-set-file-name ├── INSTALL ├── LICENCE ├── MACHINES ├── Makefile.in ├── Misc ├── .distfiles ├── bash2zshprompt ├── c2z ├── compctl-examples ├── globtests ├── globtests.ksh ├── job-control-tests ├── lete2ctl ├── make-zsh-urls └── vcs_info-examples ├── NEWS ├── README ├── Scripts ├── .distfiles └── newuser ├── Src ├── .cvsignore ├── .distfiles ├── .exrc ├── .indent.pro ├── Builtins │ ├── .cvsignore │ ├── .distfiles │ ├── .exrc │ ├── rlimits.c │ ├── rlimits.mdd │ ├── sched.c │ └── sched.mdd ├── Makefile.in ├── Makemod.in.in ├── Modules │ ├── .cvsignore │ ├── .distfiles │ ├── .exrc │ ├── attr.c │ ├── attr.mdd │ ├── cap.c │ ├── cap.mdd │ ├── clone.c │ ├── clone.mdd │ ├── curses.c │ ├── curses.mdd │ ├── curses_keys.awk │ ├── datetime.c │ ├── datetime.mdd │ ├── db_gdbm.c │ ├── db_gdbm.mdd │ ├── errnames1.awk │ ├── errnames2.awk │ ├── example.c │ ├── example.mdd │ ├── files.c │ ├── files.mdd │ ├── hlgroup.c │ ├── hlgroup.mdd │ ├── ksh93.c │ ├── ksh93.mdd │ ├── langinfo.c │ ├── langinfo.mdd │ ├── mapfile.c │ ├── mapfile.mdd │ ├── mathfunc.c │ ├── mathfunc.mdd │ ├── nearcolor.c │ ├── nearcolor.mdd │ ├── newuser.c │ ├── newuser.mdd │ ├── param_private.c │ ├── param_private.mdd │ ├── parameter.c │ ├── parameter.mdd │ ├── pcre.c │ ├── pcre.mdd │ ├── random.c │ ├── random.mdd │ ├── random_real.c │ ├── regex.c │ ├── regex.mdd │ ├── socket.c │ ├── socket.mdd │ ├── stat.c │ ├── stat.mdd │ ├── system.c │ ├── system.mdd │ ├── tcp.c │ ├── tcp.h │ ├── tcp.mdd │ ├── termcap.c │ ├── termcap.mdd │ ├── terminfo.c │ ├── terminfo.mdd │ ├── watch.c │ ├── watch.mdd │ ├── zftp.c │ ├── zftp.mdd │ ├── zprof.c │ ├── zprof.mdd │ ├── zpty.c │ ├── zpty.mdd │ ├── zselect.c │ ├── zselect.mdd │ ├── zutil.c │ └── zutil.mdd ├── Zle │ ├── .cvsignore │ ├── .distfiles │ ├── .exrc │ ├── comp.h │ ├── compcore.c │ ├── compctl.c │ ├── compctl.h │ ├── compctl.mdd │ ├── complete.c │ ├── complete.mdd │ ├── complist.c │ ├── complist.mdd │ ├── compmatch.c │ ├── compresult.c │ ├── computil.c │ ├── computil.mdd │ ├── deltochar.c │ ├── deltochar.mdd │ ├── iwidgets.list │ ├── textobjects.c │ ├── zle.h │ ├── zle.mdd │ ├── zle_bindings.c │ ├── zle_hist.c │ ├── zle_keymap.c │ ├── zle_main.c │ ├── zle_misc.c │ ├── zle_move.c │ ├── zle_params.c │ ├── zle_refresh.c │ ├── zle_things.sed │ ├── zle_thingy.c │ ├── zle_tricky.c │ ├── zle_utils.c │ ├── zle_vi.c │ ├── zle_widget.sed │ ├── zle_word.c │ ├── zleparameter.c │ └── zleparameter.mdd ├── builtin.c ├── compat.c ├── cond.c ├── context.c ├── exec.c ├── glob.c ├── hashnameddir.c ├── hashtable.c ├── hashtable.h ├── hist.c ├── init.c ├── input.c ├── jobs.c ├── lex.c ├── linklist.c ├── loop.c ├── main.c ├── makepro.awk ├── math.c ├── mem.c ├── mkbltnmlst.sh ├── mkmakemod.sh ├── modentry.c ├── module.c ├── openssh_bsd_setres_id.c ├── options.c ├── params.c ├── parse.c ├── pattern.c ├── prompt.c ├── prototypes.h ├── signals.c ├── signals.h ├── signames1.awk ├── signames2.awk ├── sort.c ├── string.c ├── subst.c ├── text.c ├── utils.c ├── wcwidth9.h ├── zsh.h ├── zsh.ico ├── zsh.mdd ├── zsh.rc ├── zsh_system.h └── ztype.h ├── StartupFiles ├── .distfiles ├── zlogin ├── zshenv └── zshrc ├── Test ├── .cvsignore ├── .distfiles ├── A01grammar.ztst ├── A02alias.ztst ├── A03quoting.ztst ├── A04redirect.ztst ├── A05execution.ztst ├── A06assign.ztst ├── A07control.ztst ├── A08time.ztst ├── B01cd.ztst ├── B02typeset.ztst ├── B03print.ztst ├── B04read.ztst ├── B05eval.ztst ├── B06fc.ztst ├── B07emulate.ztst ├── B08shift.ztst ├── B09hash.ztst ├── B10getopts.ztst ├── B11kill.ztst ├── B12limit.ztst ├── B13whence.ztst ├── C01arith.ztst ├── C02cond.ztst ├── C03traps.ztst ├── C04funcdef.ztst ├── C05debug.ztst ├── D01prompt.ztst ├── D02glob.ztst ├── D03procsubst.ztst ├── D04parameter.ztst ├── D05array.ztst ├── D06subscript.ztst ├── D07multibyte.ztst ├── D08cmdsubst.ztst ├── D09brace.ztst ├── D10nofork.ztst ├── E01options.ztst ├── E02xtrace.ztst ├── E03posix.ztst ├── K01nameref.ztst ├── K02parameter.ztst ├── Makefile.in ├── P01privileged.ztst ├── README ├── V01zmodload.ztst ├── V02zregexparse.ztst ├── V03mathfunc.ztst ├── V04features.ztst ├── V05styles.ztst ├── V06parameter.ztst ├── V07pcre.ztst ├── V08zpty.ztst ├── V09datetime.ztst ├── V10private.ztst ├── V11db_gdbm.ztst ├── V12zparseopts.ztst ├── V13zformat.ztst ├── V14system.ztst ├── W01history.ztst ├── W02jobs.ztst ├── W03jobparameters.ztst ├── X02zlevi.ztst ├── X03zlebindkey.ztst ├── X04zlehighlight.ztst ├── X05zleincarg.ztst ├── Y01completion.ztst ├── Y02compmatch.ztst ├── Y03arguments.ztst ├── Z01is-at-least.ztst ├── Z02zmathfunc.ztst ├── Z03run-help.ztst ├── comptest ├── list-XFails ├── runtests.zsh └── ztst.zsh ├── Util ├── .distfiles ├── check-tmux-state ├── check_exports ├── difflog.pl ├── helpfiles ├── mkdisttree.sh ├── preconfig ├── printdefines ├── reporter ├── ztst-ftplugin.vim ├── ztst-syntax.vim └── zyodl.vim ├── aclocal.m4 ├── aczsh.m4 ├── config.guess ├── config.sub ├── configure.ac ├── install-sh └── mkinstalldirs /.cvsignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | META-FAQ 3 | config.cache 4 | config.h 5 | config.h.in 6 | config.log 7 | config.modules 8 | config.modules.sh 9 | config.status 10 | configure 11 | cscope.out 12 | stamp-h 13 | stamp-h.in 14 | autom4te.cache 15 | *.swp 16 | .git 17 | -------------------------------------------------------------------------------- /.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | META-FAQ 3 | configure config.h.in stamp-h.in 4 | ' 5 | -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- 1 | # Top-most editorconfig file 2 | 3 | root = true 4 | 5 | [*] 6 | end_of_line = lf 7 | tab_width = 8 8 | indent_size = 2 9 | indent_style = space 10 | 11 | [**/Makefile*] 12 | indent_style = tab 13 | indent_size = 8 14 | 15 | [Functions/VCS_Info/**/*] 16 | indent_size = 4 17 | indent_style = space 18 | 19 | [ChangeLog] 20 | indent_size = 8 21 | indent_style = tab 22 | 23 | [*.[ch]] 24 | indent_size = 4 25 | indent_style = tab 26 | -------------------------------------------------------------------------------- /.preconfig: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | set -e 4 | 5 | autoconf 6 | autoheader 7 | echo > stamp-h.in 8 | -------------------------------------------------------------------------------- /Completion/.cvsignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | *.swp 3 | -------------------------------------------------------------------------------- /Completion/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/AIX/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/AIX/Command/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/AIX/Command/_floppy: -------------------------------------------------------------------------------- 1 | #compdef dosread dosdel 2 | 3 | local expl 4 | 5 | _wanted floppyfiles expl 'file on floppy' compadd - ${$(dosdir)[1,-5]:l} 6 | -------------------------------------------------------------------------------- /Completion/AIX/Command/_lscfg: -------------------------------------------------------------------------------- 1 | #compdef lscfg 2 | 3 | local state line expl curcontext="$curcontext" disp list devs sep 4 | 5 | _arguments -C -s \ 6 | '-l[display device information for named device]:device:->device' \ 7 | '-v[display vital product data for physical devices]' && return 0 8 | 9 | if [[ "$state" = device ]]; then 10 | devs=( ${${${${(f)"$(lscfg)"}[6,-1]:# *}##??}/ ##[^ ]# #/:} ) 11 | if zstyle -T ":completion:${curcontext}:devices" verbose; then 12 | zstyle -s ":completion:${curcontext}:devices" list-separator sep || sep=-- 13 | zformat -a list " $sep " "$devs[@]" 14 | disp=(-ld list) 15 | else 16 | disp=() 17 | fi 18 | _wanted devices expl 'device' compadd "$disp[@]" - "${devs[@]%%:*}" 19 | return 20 | fi 21 | 22 | return 1 23 | -------------------------------------------------------------------------------- /Completion/AIX/Command/_lslv: -------------------------------------------------------------------------------- 1 | #compdef lslv 2 | 3 | _arguments -C -s \ 4 | '(-l -m)-p[display logical volume allocation map for the physical volume]:pv:_physical_volumes' \ 5 | '(-p)-l[list physical volumes in logical volume]' \ 6 | '(-p)-m[list partition numbers]' \ 7 | '-n[accesses information from the descriptor area of physical volume]:pv:_physical_volumes' \ 8 | '1:lv: _logical_volumes' 9 | -------------------------------------------------------------------------------- /Completion/AIX/Command/_lspv: -------------------------------------------------------------------------------- 1 | #compdef lspv 2 | 3 | _arguments -C -s \ 4 | '(-p -M)-l[list logical volumes on physical volume]' \ 5 | '(-l -M)-p[list partitions on physical volume]' \ 6 | '(-l -p)-M[list mapping of physical and logical partition numbers]' \ 7 | '-n[specify physical volume to access variable descriptor from]:physical volume:_physical_volumes' \ 8 | '-v[specify volume group id to access info based on]:volume group id' \ 9 | '1:physical volume:_physical_volumes' 10 | -------------------------------------------------------------------------------- /Completion/AIX/Command/_lsvg: -------------------------------------------------------------------------------- 1 | #compdef lsvg 2 | 3 | _arguments -C -s \ 4 | '(-i -l -M -p)-o[lists only active volume groups]' \ 5 | '(-i -l -M -p)-n[specify physical volume to access variable descriptor from]:physical volume:_physical_volumes' \ 6 | '(-o -n)-i[reads volume group names from standard input]' \ 7 | '(-o -n -M -p)-l[list logical volumes in volume group]' \ 8 | '(-o -n -l -p)-M[list mapping of physical and logical partition numbers]' \ 9 | '(-o -n -l -M)-p[list physical volumes used by volume group]' \ 10 | '*:volume group:_volume_groups' 11 | -------------------------------------------------------------------------------- /Completion/AIX/Type/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/AIX/Type/_logical_volumes: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl list names disp sep 4 | 5 | list=( $(lsvg -l $(lsvg)|sed -e '2d'|awk '/[^:]* / {if ( $7 != "N/A" ) print $1 ":" $7; else print $1}' ) ) 6 | names=(${list%%:*}) 7 | if zstyle -T ":completion:${curcontext}:" verbose; then 8 | zstyle -s ":completion:${curcontext}:" list-separator sep || sep=-- 9 | zformat -a list " $sep " $list 10 | disp=(-d list) 11 | else 12 | disp=() 13 | fi 14 | _wanted logicalvolumes expl 'logical volume' \ 15 | compadd "$disp[@]" "$@" - "$names[@]" 16 | -------------------------------------------------------------------------------- /Completion/AIX/Type/_object_classes: -------------------------------------------------------------------------------- 1 | #compdef odmget odmshow odme 2 | 3 | local expl 4 | 5 | _wanted objectclasses expl 'object class' \ 6 | _files -W ${ODMDIR:-/etc/objrepos} -g '^*.vc(-.)' "$@" - 7 | -------------------------------------------------------------------------------- /Completion/AIX/Type/_physical_volumes: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl 4 | 5 | _wanted physicalvolumes expl 'physical volume' \ 6 | compadd "$@" - $(lsdev -C -c disk -S a -F name) 7 | -------------------------------------------------------------------------------- /Completion/AIX/Type/_volume_groups: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl 4 | 5 | _wanted volumegroups expl 'volume group' compadd "$@" - $(lsvg) 6 | -------------------------------------------------------------------------------- /Completion/BSD/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/BSD/Command/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/BSD/Command/_fstat: -------------------------------------------------------------------------------- 1 | #compdef fstat 2 | 3 | _arguments -s \ 4 | '-f[restrict examination to files open in the same file systems as the named file arguments]' \ 5 | '-M+[extract values associated with the name list from the specified core]:core:_files' \ 6 | '-N+[extract the name list from the specified system]:system' \ 7 | '-m[include memory-mapped files in the listing]' \ 8 | '-n[numerical format]' \ 9 | '-p+[report all files open by the specified process]:process id:_pids' \ 10 | '-u+[report all files open by the specified user]:user:_users' \ 11 | '-v[verbose mode]' \ 12 | '*: :_files' 13 | -------------------------------------------------------------------------------- /Completion/BSD/Command/_fw_update: -------------------------------------------------------------------------------- 1 | #compdef fw_update 2 | 3 | _arguments -s -S -A "-*" \ 4 | '(*)-a[install or update firmware for all drivers]' \ 5 | '-d[delete drivers instead of adding them]' \ 6 | '-F[download firmware only]' \ 7 | '-n[dry run]' \ 8 | '-p+[use the firmware at specified path]: : _alternative 9 | "urls\:url\:_urls" 10 | "directories\:path\:_directories"' \ 11 | '*-v[verbose output]' \ 12 | '(-a)*:driver:' 13 | -------------------------------------------------------------------------------- /Completion/BSD/Command/_gstat: -------------------------------------------------------------------------------- 1 | #compdef gstat 2 | 3 | _arguments -s : \ 4 | '-a[only display providers that are at least 0.1% busy]' \ 5 | '(-B)-b[batch mode]' \ 6 | '(-b)-B[endless batch mode]' \ 7 | '-c[enable the display geom(4) consumers]' \ 8 | '(-b -B)-C[CSV output mode]' \ 9 | '-d[enable the display delete operations]' \ 10 | '-f+[filter by regex]:regex' \ 11 | '-o[enable the display for other operations]' \ 12 | "-s[enable blocks' size statistics]" \ 13 | '-I+[display refresh rate]:interval (ms)' \ 14 | '-p[only display physical providers]' 15 | -------------------------------------------------------------------------------- /Completion/BSD/Command/_jexec: -------------------------------------------------------------------------------- 1 | #compdef jexec 2 | 3 | _jexec_normal() { 4 | local PATH=$PATH 5 | local -a _comp_priv_prefix 6 | # relative paths are relative to the jail's root 7 | path=( "$(_call_program paths jls -j $words[1] path)"/$^path ) 8 | shift 1 words; (( CURRENT-- )) 9 | _normal -p $service 10 | } 11 | 12 | _jexec() { 13 | _arguments -s -S -A "-*" : \ 14 | '-l[execute in a clean environment]' \ 15 | '(-U)-u[host environment user whom command runs as]:host user:_users' \ 16 | '(-u)-U[jail environment user whom command runs as]:jail user:_users' \ 17 | '1:jail:_jails' \ 18 | '*:: : _jexec_normal' 19 | } 20 | 21 | _jexec "$@" 22 | -------------------------------------------------------------------------------- /Completion/BSD/Command/_mixerctl: -------------------------------------------------------------------------------- 1 | #compdef mixerctl 2 | 3 | : ${(A)_cache_mixerctlvars:=${${(f)"$(mixerctl -a)"}%%=*}} 4 | _arguments -s -S -A "-*" \ 5 | '(-q -t *)-a[Print all device variables and their current values]' \ 6 | '-f[Specify an alternative audio mixing device]:file:_files -g "*(-%c)"' \ 7 | '(-q -t)-n[Suppress printing of the variable name]' \ 8 | '(-a -n -v)-q[Suppress all printing when setting a variable]' \ 9 | '(-a -n -v)-t[Attempt to select the next possible value of an enum]' \ 10 | '(-q -t)-v[Show all possible values of variables]' \ 11 | '(-a)*:mixerctl variable:_multi_parts -i -S = -q . _cache_mixerctlvars' 12 | -------------------------------------------------------------------------------- /Completion/BSD/Command/_portaudit: -------------------------------------------------------------------------------- 1 | #compdef portaudit 2 | 3 | _arguments -s \ 4 | '-a[vulnerability report for all installed packages]' \ 5 | '-C[vulnerability report for the port in the current working directory]' \ 6 | '-d[print creation date of the database]' \ 7 | '-F[fetch the current database]' \ 8 | '-q[quiet mode]' \ 9 | '-V[show portaudit version number]' \ 10 | '-v[verbose mode]' \ 11 | '-X[download a fresh database from least days old]:days:' \ 12 | '-f[check the packages listed in file]:file:_files' \ 13 | '-r[restrict listed vulnerabilities with eregex pattern]:eregex:' \ 14 | ':pkg-name:' 15 | -------------------------------------------------------------------------------- /Completion/BSD/Command/_sysclean: -------------------------------------------------------------------------------- 1 | #compdef sysclean 2 | 3 | _arguments -s : \ 4 | '(-p)-a[include filenames used by installed packages]' \ 5 | '-i[include ignored filenames]' \ 6 | '(-a)-p[output package names that are using obsolete files]' 7 | -------------------------------------------------------------------------------- /Completion/BSD/Command/_sysmerge: -------------------------------------------------------------------------------- 1 | #compdef sysmerge 2 | 3 | _arguments -s : \ 4 | '-b[run non-interactively]' \ 5 | '-d[do not take any automatic action]' \ 6 | '-p[only compare configuration of packages]' 7 | -------------------------------------------------------------------------------- /Completion/BSD/Command/_syspatch: -------------------------------------------------------------------------------- 1 | #compdef syspatch 2 | 3 | _arguments \ 4 | '( -l -R -r)-c[list available patches]' \ 5 | '(-c -R -r)-l[list installed patches]' \ 6 | '(-c -l -r)-R[revert all patches]' \ 7 | '(-c -l -R )-r[revert the most recently installed patch]' 8 | -------------------------------------------------------------------------------- /Completion/BSD/Command/_sysupgrade: -------------------------------------------------------------------------------- 1 | #compdef sysupgrade 2 | 3 | _arguments -s -S -A '-*' : \ 4 | '-f[force an already applied upgrade]' \ 5 | '-k[keep the downloaded files]' \ 6 | '-n[do not reboot]' \ 7 | '(-s)-r[upgrade to the next release]' \ 8 | '(-r)-s[upgrade to a snapshot]' \ 9 | ':installurl:' 10 | -------------------------------------------------------------------------------- /Completion/BSD/Command/_watch-snoop: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | # watch [-cinotW] [-f snpdev] [tty] 4 | 5 | _arguments -w -S -s : \ 6 | "-c[reconnect on close]" \ 7 | "-f:snp(4) device: " \ 8 | "-i[force interactive mode even when stdout is not a tty]" \ 9 | "-n[disable the ability to switch the watched tty interactively]" \ 10 | "-o[reconnect on overflow]" \ 11 | "-t[print date and time at start]" \ 12 | "-W[allow write access to observed tty]" \ 13 | "(-): : _ttys -Do" 14 | -------------------------------------------------------------------------------- /Completion/BSD/Type/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/BSD/Type/_bsd_disks: -------------------------------------------------------------------------------- 1 | #autoload 2 | # disk device names on BSDs 3 | local -a disks 4 | 5 | case $OSTYPE in 6 | freebsd*) 7 | disks=( ${${(M)${(f)"$(geom disk list)"}\:#Geom name\:*}#*\: } ) 8 | ;; 9 | dragonfly*) 10 | disks=( $(sysctl -n kern.disks) ) 11 | ;; 12 | openbsd*) 13 | disks=( ${${(s.,.)"$(sysctl -n hw.disknames)"}%\:*} ) 14 | ;; 15 | netbsd*) 16 | disks=( $(sysctl -n hw.disknames) ) 17 | ;; 18 | esac 19 | 20 | if (( $#disks )); then 21 | local expl 22 | _wanted disk-devices expl 'disk device' compadd "$@" $disks 23 | return 24 | fi 25 | 26 | return 1 27 | -------------------------------------------------------------------------------- /Completion/BSD/Type/_fbsd_architectures: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl 4 | 5 | _description architectures expl 'architecture' 6 | compadd "$@" "$expl[@]" amd64 arm arm64 i386 mips powerpc riscv sparc64 7 | -------------------------------------------------------------------------------- /Completion/BSD/Type/_login_classes: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl login_classes 4 | 5 | login_classes=(${${(M)${(f)"$( _tags_level )) && _comp_tags="${_comp_tags% * }" 10 | _tags_level=$#funcstack 11 | _comp_tags="$_comp_tags $__spec " 12 | if [[ "$curtag" = *[^\\]:* ]]; then 13 | zformat -f __descr "${curtag#*:}" "d:$3" 14 | _description "$__gopt[@]" "${curtag%:*}" "$2" "$__descr" 15 | curtag="${curtag%:*}" 16 | set -A $2 "${(P@)2}" "${(@)argv[4,-1]}" 17 | else 18 | _description "$__gopt[@]" "$curtag" "$2" "$3" 19 | set -A $2 "${(@)argv[4,-1]}" "${(P@)2}" 20 | fi 21 | 22 | return 0 23 | fi 24 | 25 | return 1 26 | -------------------------------------------------------------------------------- /Completion/Base/Core/_requested: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local __gopt 4 | 5 | __gopt=() 6 | zparseopts -D -a __gopt 1 2 V J x 7 | 8 | if comptags -R "$1"; then 9 | if [[ $# -gt 3 ]]; then 10 | _all_labels - "$__gopt[@]" "$@" || return 1 11 | elif [[ $# -gt 1 ]]; then 12 | _description "$__gopt[@]" "$@" 13 | fi 14 | return 0 15 | else 16 | return 1 17 | fi 18 | -------------------------------------------------------------------------------- /Completion/Base/Core/_wanted: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local -a __targs __gopt 4 | 5 | zparseopts -D -a __gopt 1 2 V J x C:=__targs 6 | 7 | _tags "$__targs[@]" "$1" 8 | 9 | while _tags; do 10 | _all_labels "$__gopt[@]" "$@" && return 0 11 | done 12 | 13 | return 1 14 | -------------------------------------------------------------------------------- /Completion/Base/Utility/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Base/Utility/_as_if: -------------------------------------------------------------------------------- 1 | #autoload 2 | local words=("$words[@]") CURRENT=$CURRENT 3 | local _comp_command1 _comp_command2 _comp_command 4 | 5 | words[1]=("$@") 6 | (( CURRENT += $# - 1 )) 7 | 8 | _set_command 9 | 10 | _dispatch "$_comp_command" "$_comp_command1" "$_comp_command2" -default- 11 | -------------------------------------------------------------------------------- /Completion/Base/Utility/_comp_locale: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | # Arrange that LC_CTYPE retains the current setting so characters in 4 | # file names are handled properly, but other locales are set to C so 5 | # that the completion system can process output without surprises. 6 | 7 | # This exports new locale settings, so should only 8 | # be run in a subshell. A typical use is in a $(...). 9 | 10 | local ctype 11 | 12 | if ctype=${${(f)"$(locale 2>/dev/null)"}:#^LC_CTYPE=*}; then 13 | unset -m LC_\* 14 | [[ -n $ctype ]] && eval export $ctype 15 | else 16 | ctype=${LC_ALL:-${LC_CTYPE:-${LANG:-C}}} 17 | unset -m LC_\* 18 | export LC_CTYPE=$ctype 19 | fi 20 | export LANG=C 21 | -------------------------------------------------------------------------------- /Completion/Base/Utility/_complete_help_generic: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | # Note this is a normal ZLE widget, not a completion widget. 4 | # A completion widget can't call another widget, while a normal 5 | # widget can. 6 | 7 | [[ $WIDGET = *noread* ]] || local ZSH_TRACE_GENERIC_WIDGET 8 | 9 | if [[ $WIDGET = *debug* ]]; then 10 | ZSH_TRACE_GENERIC_WIDGET=_complete_debug 11 | else 12 | ZSH_TRACE_GENERIC_WIDGET=_complete_help 13 | fi 14 | 15 | if [[ $WIDGET != *noread* ]]; then 16 | zle read-command && zle $REPLY -w 17 | fi 18 | -------------------------------------------------------------------------------- /Completion/Base/Utility/_guard: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local garbage 4 | 5 | zparseopts -K -D -a garbage M+: J+: V+: 1 2 o+: n F: X+: 6 | 7 | [[ "$PREFIX$SUFFIX" != $~1 ]] && return 1 8 | 9 | shift 10 | _message -e "$*" 11 | 12 | [[ -n "$PREFIX$SUFFIX" ]] 13 | -------------------------------------------------------------------------------- /Completion/Base/Utility/_nothing: -------------------------------------------------------------------------------- 1 | #compdef true false log times clear logname whoami sync 2 | 3 | _message 'no argument or option' 4 | -------------------------------------------------------------------------------- /Completion/Base/Utility/_sub_commands: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl 4 | 5 | if [[ CURRENT -eq 2 ]]; then 6 | _wanted commands expl command compadd "$@" 7 | else 8 | _message 'no more arguments' 9 | fi 10 | -------------------------------------------------------------------------------- /Completion/Base/Widget/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Base/Widget/_correct_word: -------------------------------------------------------------------------------- 1 | #compdef -k complete-word \C-xc 2 | 3 | # Simple completion front-end implementing spelling correction. 4 | # The maximum number of errors is set quite high, and 5 | # the numeric prefix can be used to specify a different value. 6 | 7 | local curcontext="$curcontext" 8 | 9 | if [[ -z "$curcontext" ]]; then 10 | curcontext="correct-word:::" 11 | else 12 | curcontext="correct-word:${curcontext#*:}" 13 | fi 14 | 15 | _main_complete _correct 16 | -------------------------------------------------------------------------------- /Completion/Base/Widget/_expand_word: -------------------------------------------------------------------------------- 1 | #compdef -K _expand_word complete-word \C-xe _list_expansions list-choices \C-xd 2 | 3 | # Simple completion front-end implementing expansion. 4 | 5 | local curcontext="$curcontext" 6 | 7 | if [[ -z "$curcontext" ]]; then 8 | curcontext="expand-word:::" 9 | else 10 | curcontext="expand-word:${curcontext#*:}" 11 | fi 12 | 13 | _main_complete _expand 14 | -------------------------------------------------------------------------------- /Completion/Base/Widget/_generic: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | if [[ -n $ZSH_TRACE_GENERIC_WIDGET ]]; then 4 | local widget=$ZSH_TRACE_GENERIC_WIDGET 5 | unset ZSH_TRACE_GENERIC_WIDGET 6 | $widget _generic 7 | return 8 | fi 9 | 10 | local curcontext="${curcontext:-}" 11 | 12 | if [[ -z "$curcontext" ]]; then 13 | curcontext="${WIDGET}:::" 14 | else 15 | curcontext="${WIDGET}:${curcontext#*:}" 16 | fi 17 | 18 | _main_complete "$@" 19 | -------------------------------------------------------------------------------- /Completion/Cygwin/Command/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Cygwin/Command/_dumper: -------------------------------------------------------------------------------- 1 | #compdef dumper dumper.exe 2 | 3 | # cygwin 1.5.25 4 | 5 | _arguments -s -S \ 6 | '(--verbose -d --quiet -q)'{-d,--verbose}'[be verbose while dumping]' \ 7 | '(--verbose -d --quiet -q)'{-q,--quiet}'[be quiet while dumping (default)]' \ 8 | '(- 1 *)'{-h,--help}'[output help information and exit]' \ 9 | '(- 1 *)'{-v,--version}'[output version information and exit]' \ 10 | '1: :_files' \ 11 | '*: :_pids' 12 | -------------------------------------------------------------------------------- /Completion/Cygwin/Command/_getclip: -------------------------------------------------------------------------------- 1 | #compdef getclip getclip.exe 2 | 3 | # cygutils 1.3.2 4 | 5 | _arguments -s -S \ 6 | '(--dos -d --unix -u --no-conv -n)'{-d,--dos}'[output text will have DOS line endings]' \ 7 | '(--dos -d --unix -u --no-conv -n)'{-u,--unix}'[output text will have UNIX line endings]' \ 8 | '(--dos -d --unix -u --no-conv -n)'{-n,--no-conv}'[do not translate line endings]' \ 9 | '(-)'{-\?,--help}'[display help information]' \ 10 | '(-)--usage[display brief usage message]' \ 11 | '(-)--version[display version information]' \ 12 | '(-)--license[display licensing information]' 13 | -------------------------------------------------------------------------------- /Completion/Cygwin/Command/_mkzsh: -------------------------------------------------------------------------------- 1 | #compdef mkzsh mkzsh.exe 2 | 3 | _arguments -s -S \ 4 | '(--allusers -A)'{-A,--allusers}'[creates item for All Users instead of just current user]' \ 5 | '(--desktop -D)'{-D,--desktop}'[creates a Desktop icon for running /zsh.bat]' \ 6 | '(--smprograms -P)'{-P,--smprograms}'[creates a Program menu item for running /zsh.bat]' \ 7 | '(--help -h)'{-h,--help}'[display help information]' 8 | -------------------------------------------------------------------------------- /Completion/Cygwin/Command/_putclip: -------------------------------------------------------------------------------- 1 | #compdef putclip putclip.exe 2 | 3 | # cygutils 1.3.2 4 | 5 | _arguments -s -S \ 6 | '(--dos -d --unix -u --no-conv -n)'{-d,--dos}'[clipboard text will have DOS line endings]' \ 7 | '(--dos -d --unix -u --no-conv -n)'{-u,--unix}'[clipboard text will have UNIX line endings]' \ 8 | '(--dos -d --unix -u --no-conv -n)'{-n,--no-conv}'[do not translate line endings]' \ 9 | '(-)'{-\?,--help}'[display help information]' \ 10 | '(-)--usage[display brief usage message]' \ 11 | '(-)--version[display version information]' \ 12 | '(-)--license[display licensing information]' 13 | -------------------------------------------------------------------------------- /Completion/Darwin/Command/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Darwin/Command/_caffeinate: -------------------------------------------------------------------------------- 1 | #compdef caffeinate 2 | 3 | _arguments -s -S : \ 4 | '-d[prevent display sleep]' \ 5 | '-i[prevent system idle sleep]' \ 6 | '-m[prevent disk idle sleep]' \ 7 | '-s[prevent system sleep (AC power only)]' \ 8 | '-u[declare that user is active]' \ 9 | '(:)-t[specify assertion timeout value]:timeout (seconds)' \ 10 | '(:)-w[wait for specified PID]: :_pids' \ 11 | '(-)1: : _command_names -e' \ 12 | '(-)*::command argument' 13 | -------------------------------------------------------------------------------- /Completion/Darwin/Command/_mdls: -------------------------------------------------------------------------------- 1 | #compdef mdls 2 | 3 | # Note: The inconsistent use of the -o+ option variant here is deliberate 4 | _arguments -s -S : \ 5 | '*'{-n+,-name}'[restrict output to specified attribute]:attribute' \ 6 | '(-p -plist)-nullMarker[specify string used for null values]:string' \ 7 | '(-p -r -nullMarker -plist -raw)'{-p,-plist}'[output in XML plist format to specified file]:output file:_files' \ 8 | '(-p -r -plist -raw)'{-r,-raw}'[print raw (NUL-delimited) attribute data]' \ 9 | '*: :_files' 10 | -------------------------------------------------------------------------------- /Completion/Darwin/Command/_qtplay: -------------------------------------------------------------------------------- 1 | #compdef qtplay 2 | 3 | _arguments -S \ 4 | '(- *)-cd[play a CD]' \ 5 | '(-)-f[read files as playlist]:*:playlist:_files' \ 6 | '-l[loop]' \ 7 | '-q[quiet]' \ 8 | '-Q[quicktime only]' \ 9 | '-s[speak filenames]' \ 10 | '-S[sound manager only]' \ 11 | '-v[verbose]' \ 12 | '-z[shuffle play]' \ 13 | '-Z[random play]' \ 14 | '-1[play one random file]' \ 15 | '-t[specify update time]:update time (seconds)' \ 16 | '-T[kill time]:ticks' \ 17 | '-V[volume]:percentage of normal volume' \ 18 | '(-)'{-\?,--help,-h}'[display help information]' \ 19 | '(-)*:quicktime file:_files' 20 | 21 | -------------------------------------------------------------------------------- /Completion/Darwin/Command/_sc_usage: -------------------------------------------------------------------------------- 1 | #compdef sc_usage 2 | 3 | _arguments -s -A '-*' : \ 4 | '-c+[specify code file to use]:code file:_files' \ 5 | '-e[sort output by call count]' \ 6 | '-l[use scrolling output style instead of window updating style]' \ 7 | '-s+[specify sampling interval]:seconds' \ 8 | '(- :)-E[specify command path and args to execute]: :_absolute_command_paths:*:: :_normal' \ 9 | '1: : _alternative "processes:: _pids" 10 | "processes-names:: _process_names -a"' 11 | -------------------------------------------------------------------------------- /Completion/Darwin/Command/_sw_vers: -------------------------------------------------------------------------------- 1 | #compdef sw_vers 2 | 3 | # Only options with a single dash '-' are accepted on Monterey or older, 4 | # but both a single and double dashes are accepted on Ventura (or newer). 5 | # We may replace '-' by '--' when Monterey fades out. 6 | 7 | _arguments : \ 8 | '(-)-buildVersion[display build version only]' \ 9 | '(-)-productName[display product name only]' \ 10 | '(-)-productVersion[display product version only]' \ 11 | '(-)-productVersionExtra[display rapid security response version only]' 12 | -------------------------------------------------------------------------------- /Completion/Darwin/Command/_xcode-select: -------------------------------------------------------------------------------- 1 | #compdef xcode-select 2 | 3 | # No -s, no -o+ form options 4 | _arguments : \ 5 | '(-)'{-h,--help}'[display help information]' \ 6 | '(-)'{-v,--version}'[display version information]' \ 7 | '(-)--install[install command-line developer tools]' \ 8 | '(-)'{-p,--print-path}'[display path of active developer directory]' \ 9 | '(-)'{-r,--reset}'[reset to default developer directory]' \ 10 | '(-)'{-s,--switch}'[specify path of active developer directory]:developer directory:_files -/' 11 | -------------------------------------------------------------------------------- /Completion/Darwin/Type/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Darwin/Type/_mac_applications: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | _retrieve_mac_apps 4 | 5 | local expl 6 | _wanted commands expl 'macOS application' \ 7 | compadd "$@" - "${(@)${_mac_apps[@]:t}%.app}" 8 | -------------------------------------------------------------------------------- /Completion/Debian/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Debian/Command/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Debian/Command/_a2utils: -------------------------------------------------------------------------------- 1 | #compdef a2ensite a2dissite a2enmod a2dismod 2 | 3 | local -a expl mods 4 | 5 | case "$service" in 6 | a2ensite) 7 | _wanted sites expl sites \ 8 | _files -W /etc/apache2/sites-available 9 | ;; 10 | a2dissite) 11 | _wanted sites expl sites \ 12 | _files -W /etc/apache2/sites-enabled 13 | ;; 14 | a2enmod) 15 | mods=( /etc/apache2/mods-available/*.load(N:r:t) ) 16 | _wanted mods expl mods compadd -a mods 17 | ;; 18 | a2dismod) 19 | mods=( /etc/apache2/mods-enabled/*.load(N:r:t) ) 20 | _wanted mods expl mods compadd -a mods 21 | ;; 22 | esac 23 | 24 | return 25 | -------------------------------------------------------------------------------- /Completion/Debian/Command/_cdbs-edit-patch: -------------------------------------------------------------------------------- 1 | #compdef cdbs-edit-patch 2 | 3 | _files -W $PWD/debian/patches 4 | -------------------------------------------------------------------------------- /Completion/Debian/Command/_debmany: -------------------------------------------------------------------------------- 1 | #compdef debmany 2 | 3 | _deb_packages avail 4 | -------------------------------------------------------------------------------- /Completion/Debian/Command/_debsign: -------------------------------------------------------------------------------- 1 | #compdef debsign 2 | 3 | _arguments \ 4 | '-r[copy .changes file from remote host]: :_user_at_host' \ 5 | '-p[program with which to sign]:program name' \ 6 | '-m[maintainer]:maintainer name and email address' \ 7 | '-e[maintainer]:maintainer name and email address' \ 8 | '-k[key ID to use for signing]:keyid' \ 9 | '-s[argument style for signing program]:gpg or pgp' \ 10 | '-S[look for source-only .changes file]' \ 11 | '-a[architecture]:Debian architecture' \ 12 | '-t[GNU system type]:GNU system type' \ 13 | '--help[display help information]' \ 14 | '--version[display version information]' \ 15 | '*:changes or dsc file:_files -g "*.(changes|dsc)(-.)"' 16 | -------------------------------------------------------------------------------- /Completion/Debian/Command/_dhomepage: -------------------------------------------------------------------------------- 1 | #compdef dhomepage 2 | 3 | local arguments 4 | 5 | arguments=( 6 | '(-v --vcs)'{-v,--vcs}'[open VCS homepage instead]' 7 | '(-e --echo)'{-e,--echo}'[only print URL]' 8 | '(- : *)'{-h,--help}'[show help]' 9 | '(- : *)--version[show version information]' 10 | ':package:_deb_packages avail' 11 | ) 12 | 13 | _arguments -A '-*' : $arguments 14 | -------------------------------------------------------------------------------- /Completion/Debian/Command/_dpkg-info: -------------------------------------------------------------------------------- 1 | #compdef dpkg-info 2 | 3 | _deb_packages avail 4 | -------------------------------------------------------------------------------- /Completion/Debian/Command/_dpkg-repack: -------------------------------------------------------------------------------- 1 | #compdef dpkg-repack 2 | 3 | _arguments \ 4 | '--root=[take package from filesystem rooted on ]:root dir:_files -/' \ 5 | '--arch=[force the package to be built for specified architecture]:architecture:_deb_architectures' \ 6 | '--generate[generate build directory but do not build deb]' \ 7 | '*:package:_deb_packages xinstalled' 8 | -------------------------------------------------------------------------------- /Completion/Debian/Command/_grep-excuses: -------------------------------------------------------------------------------- 1 | #compdef grep-excuses 2 | 3 | _arguments \ 4 | '(--no-conf --noconf)'{--no-conf,--noconf}'[do not read any config files]' \ 5 | '(--wipnity -w)'{--wipnity,-w}'[get information from release.debian.org]' \ 6 | '--version[display version information]' \ 7 | '--help[display help information]' \ 8 | ':package:_deb_packages avail' 9 | -------------------------------------------------------------------------------- /Completion/Debian/Command/_invoke-rc.d: -------------------------------------------------------------------------------- 1 | #compdef invoke-rc.d 2 | 3 | _arguments \ 4 | '--quiet[quiet mode, no error messages are generated]' \ 5 | '--force[run the initscript regardless of policy and subsystem]' \ 6 | '--try-anyway[run the initscript even if a non-fatal error is found]' \ 7 | '--disclose-deny[return 101 instead of 0 if action is denied]' \ 8 | '--query[return one of status codes 100-106, does not run the script]' \ 9 | '--no-fallback[ignore any fallback action requests by the policy layer]' \ 10 | '1:service:_services' \ 11 | '2:command:(start stop force-stop restart reload force-reload status)' 12 | -------------------------------------------------------------------------------- /Completion/Debian/Command/_lighttpd: -------------------------------------------------------------------------------- 1 | #compdef lighty-enable-mod lighty-disable-mod 2 | 3 | local -a mods expl 4 | 5 | case "$service" in 6 | lighty-enable-mod) 7 | mods=( `echo /etc/lighttpd/conf-available/*.conf(N:r:t) | sed -e 's/\b[0-9][0-9]-//g'` ) 8 | _wanted mods expl mod compadd -a mods 9 | ;; 10 | lighty-disable-mod) 11 | mods=( `echo /etc/lighttpd/conf-enabled/*.conf(N:r:t) | sed -e 's/\b[0-9][0-9]-//g'` ) 12 | _wanted mods expl mod compadd -a mods 13 | ;; 14 | esac 15 | 16 | return 17 | -------------------------------------------------------------------------------- /Completion/Debian/Command/_madison: -------------------------------------------------------------------------------- 1 | #compdef madison rmadison 2 | 3 | _arguments \ 4 | '(-a --architecture)'{-a,--architecture=}':arch:_sequence _deb_architectures -a "all source" -' \ 5 | '(-b --binary)'{-b,--binary-type=}':type:(deb udeb)' \ 6 | '(-c --component)'{-c,--component=}':component:_values -s , "component list" main contrib non-free' \ 7 | '(-g --greaterorequal)'{-g,--greaterorequal} \ 8 | '(-G --greaterthan)'{-G,--greaterthan} \ 9 | '(-h --help)'{-h,--help} \ 10 | '(-r --regex)'{-r,--regex} \ 11 | '(-s --suite)'{-s,--suite=}':suite:_values -s , "suite list" oldstable stable testing unstable' \ 12 | '(-S --source-and-binary)'{-S,--source-and-binary} \ 13 | '*:package:_deb_packages avail' 14 | 15 | -------------------------------------------------------------------------------- /Completion/Debian/Command/_members: -------------------------------------------------------------------------------- 1 | #compdef members 2 | 3 | _arguments \ 4 | '(-a --all)'{-a,--all}'[show all group members on one line]' \ 5 | '(-p --primary)'{-p,--primary}'[show only primary group members]' \ 6 | '(-s --secondary)'{-s,--secondary}'[show only secondary group members]' \ 7 | '(-t --two-lines)'{-t,--two-lines}'[show only primary/secondary across two lines]' \ 8 | '(-h --help)'{-h,--help}'[show help]' \ 9 | ':group:_groups' 10 | -------------------------------------------------------------------------------- /Completion/Debian/Command/_mergechanges: -------------------------------------------------------------------------------- 1 | #compdef mergechanges 2 | 3 | _arguments \ 4 | '-f[output to file]' \ 5 | '*:changes file:_files -g "*.changes(-.)"' 6 | -------------------------------------------------------------------------------- /Completion/Debian/Command/_toolchain-source: -------------------------------------------------------------------------------- 1 | #compdef tpkg-install tpkg-make tpkg-debarch tpkg-update tpkg-install-libc 2 | 3 | local expl 4 | 5 | (( CURRENT == 2 )) && 6 | _wanted target expl 'target platform' \ 7 | compadd alpha-linux arm-linux hppa-linux i{3..6}86-linux ia32-linux ia64-linux m68k-linux \ 8 | mipsel-linux mips-linux ppc-linux powerpc-linux sparc-linux s390-linux 9 | 10 | -------------------------------------------------------------------------------- /Completion/Debian/Command/_which-pkg-broke: -------------------------------------------------------------------------------- 1 | #compdef which-pkg-broke 2 | 3 | _deb_packages avail 4 | -------------------------------------------------------------------------------- /Completion/Debian/Type/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Debian/Type/_deb_architectures: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local extra expl 4 | zparseopts -E -D -a extra a: 5 | 6 | _description architectures expl 'architecture' 7 | compadd "$@" "$expl[@]" alpha amd64 arm arm64 armel armhf hppa hurd-i386 i386 \ 8 | ia64 kfreebsd-amd64 loong64 loongarch6 m68k mips mips64el mipsel powerpc \ 9 | ppc64 ppc64el riscv64 s390x sh4 sparc sparc64 x32 ${=extra[2]} 10 | -------------------------------------------------------------------------------- /Completion/Debian/Type/_deb_codenames: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local distro codenames ret=1 4 | 5 | for distro in /usr/share/distro-info/*.csv(N); do 6 | # TODO: magic number "6" 7 | codenames=( ${(f)"$(<$distro tail -n6 | cut -d, -f3,1)"} ) 8 | codenames=( ${codenames/(#b)(*),(*)/${match[2]}:${match[1]}} ) 9 | _describe -V -t codename-${distro:t:r} "${distro:t:r} codenames" codenames && ret=0 10 | done 11 | 12 | return ret 13 | -------------------------------------------------------------------------------- /Completion/Debian/Type/_deb_files: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | # This function is used to generate file names for Debian package files (.deb 4 | # and friends). In addition to the options supported by _files, it understands 5 | # the following: 6 | # 7 | # -c Include .changes and .dsc files 8 | 9 | local -a _expl _fopts _c _exts=( deb ddeb udeb ) 10 | 11 | zparseopts -a _fopts -D -E - \ 12 | c=_c 1 2 F+: J+: M+: n P+: q r+: R+: S+: V+: W+: X+: 13 | 14 | (( $#_c )) && _exts+=( changes dsc ) 15 | 16 | _description files _expl 'Debian package' 17 | _files "${(@)_fopts}" "${(@)_expl}" -g "*.(${(j<|>)_exts})(-.)" 18 | -------------------------------------------------------------------------------- /Completion/Debian/Type/_debbugs_bugnumber: -------------------------------------------------------------------------------- 1 | #autoload 2 | # TODO: use _describe with some basic metadata (e.g., bug title/package/version) 3 | 4 | local expl 5 | 6 | [[ $PREFIX$SUFFIX == [0-9]# ]] || return 1 7 | 8 | # The cache directory moved; try both locations. 9 | # ### TODO: Use 'bts listcachedbugs'? 10 | local -a cachedirs=( ~/.devscripts_cache/bts ~/.cache/devscripts/bts ) 11 | _wanted -x bugnum expl 'bug number' compadd -- $^cachedirs/<->.(html|mbox)(N:t:r) 12 | -------------------------------------------------------------------------------- /Completion/Linux/Command/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Linux/Command/_choom: -------------------------------------------------------------------------------- 1 | #compdef choom 2 | 3 | _arguments -S \ 4 | '(H -n --adjust)'{-n,--adjust}'+[specify the adjust score value (-1000...1000)]:score (-1000...1000)' \ 5 | '(H -p --pid)'{-p,--pid}'[interpret args as process ID]:process ID:_pids' \ 6 | '(H -p --pid):command:_command_names' \ 7 | '*::arguments:_normal' \ 8 | + 'H' \ 9 | '(- *)'{-V,--version}'[display version information]' \ 10 | '(- *)'{-h,--help}'[display help information]' 11 | -------------------------------------------------------------------------------- /Completion/Linux/Command/_e2label: -------------------------------------------------------------------------------- 1 | #compdef e2label 2 | 3 | _arguments '1:device:_files' '2::volume label:(/dev/disk/by-label/*(N:t))' 4 | -------------------------------------------------------------------------------- /Completion/Linux/Command/_iconvconfig: -------------------------------------------------------------------------------- 1 | #compdef iconvconfig 2 | 3 | local exargs="-? --help --usage -V --version" 4 | 5 | _arguments -S -s \ 6 | "($exargs)--nostdlib[do not search system directory]" \ 7 | "(-o --output $exargs)"{-o+,--output=}'[specify output file]:output file:_files' \ 8 | "($exargs)--prefix=[specify system dir prefix]:prefix:_files" \ 9 | '(- *)'{-\?,--help}'[display help information]' \ 10 | '(- *)--usage[display a short usage message]' \ 11 | '(- *)'{-V,--version}'[print program version]' \ 12 | '*:directory:_files -/' \ 13 | && return 0 14 | -------------------------------------------------------------------------------- /Completion/Linux/Command/_kpartx: -------------------------------------------------------------------------------- 1 | #compdef kpartx 2 | 3 | _arguments -s -S : \ 4 | '(-d -u -l)-a[add partition mappings]' \ 5 | '-r[read-only partition mappings]' \ 6 | '(-a -u -l)-d[delete partition mappings]' \ 7 | '(-a -d -l)-u[update partition mappings]' \ 8 | '(-a -d -u)-l[list partition mappings]' \ 9 | '-p[set device name-partition number delimiter]' \ 10 | '-f[force creation of mappings]' \ 11 | '-g[force GUID partition table]' \ 12 | '-v[operate verbosely]' \ 13 | '-n[return before the partitions are created]' '!(-n)-s' \ 14 | '1: : _files' 15 | -------------------------------------------------------------------------------- /Completion/Linux/Command/_lsattr: -------------------------------------------------------------------------------- 1 | #compdef lsattr 2 | 3 | _arguments -s -S : \ 4 | '-a[show all files, including hidden ones]' \ 5 | '-d[list directory entries instead of contents]' \ 6 | '-l[use long option names]' \ 7 | "-p[show file's project number]" \ 8 | '-R[act recursively]' \ 9 | '-V[display version information]' \ 10 | "-v[show file's version/generation number]" \ 11 | '*: :_files' 12 | -------------------------------------------------------------------------------- /Completion/Linux/Command/_setsid: -------------------------------------------------------------------------------- 1 | #compdef setsid 2 | 3 | _arguments -s -S -A '-*' : \ 4 | '(: * -)'{-h,--help}'[display help information]' \ 5 | '(: * -)'{-V,--version}'[display version information]' \ 6 | '(-c --ctty)'{-c,--ctty}'[set controlling terminal to current one]' \ 7 | '(-f --fork)'{-f,--fork}'[always fork]' \ 8 | '(-w --wait)'{-w,--wait}'[wait for program to exit, and use same return code]' \ 9 | '*:: : _normal -p $service' 10 | -------------------------------------------------------------------------------- /Completion/Linux/Command/_tload: -------------------------------------------------------------------------------- 1 | #compdef tload 2 | # based on procps-ng-3.3.15 3 | 4 | _arguments -s \ 5 | '(-s --scale)'{-s+,--scale=}'[specify the vertical scale]:number of characters between tics: ' \ 6 | '(-d --delay)'{-d+,--delay=}'[specify the delay between updates]:seconds: ' \ 7 | '(- *)'{-h,--help}'[display help and exit]' \ 8 | '(- *)'{-V,--version}'[display version information and exit]' \ 9 | '1: :_ttys -o' 10 | -------------------------------------------------------------------------------- /Completion/Linux/Command/_tracepath: -------------------------------------------------------------------------------- 1 | #compdef tracepath tracepath6 2 | 3 | _arguments -s -S \ 4 | '-n[print IP addresses numerically]' \ 5 | '-b[print both host names and IP addresses]' \ 6 | '-l+[set the initial packet length]:length (bytes)' \ 7 | '-m+[set maximum hops]:maximum [30]' \ 8 | '-p+[set initial destination port to use]:port:_ports' \ 9 | ':destination:_hosts' 10 | -------------------------------------------------------------------------------- /Completion/Linux/Type/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Linux/Type/_selinux_contexts: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local -a parts users roles types 4 | 5 | zparseopts -E -D a:=types P:=users 6 | 7 | if ! compset -S ':*'; then 8 | users+=( -qS : ) 9 | roles+=( -qS : ) 10 | [[ $(/dev/null || types+=( -qS : ) 11 | fi 12 | 13 | parts=( users roles types ) 14 | while compset -P 1 '*:' && (( $+parts[1] )) ; do 15 | shift parts 16 | done 17 | if (( $+parts[1] )); then 18 | _selinux_$parts[1] ${(P)parts[1]} 19 | else 20 | _message -e selinux-ranges 'selinux range' 21 | fi 22 | -------------------------------------------------------------------------------- /Completion/Linux/Type/_selinux_roles: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local -a seroles expl 4 | 5 | seroles=( ${(f)"$(_call_program selinux-roles seinfo --flat -r)"} ) 6 | _description selinux-roles expl "selinux role" 7 | compadd "$@" "$expl[@]" -a seroles 8 | -------------------------------------------------------------------------------- /Completion/Linux/Type/_selinux_types: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | # Pass -a attribute to filter types, e.g.: 4 | # -a domain - for process types 5 | # -a file_type - for file types 6 | # -a port_type - for network ports 7 | 8 | local -a setypes expl extra 9 | 10 | zparseopts -E -D -a extra a: 11 | 12 | if (( $#extra )); then 13 | setypes=( ${${${(f)"$(_call_program selinux-types seinfo $extra --flat -x)"}#[[:blank:]]}:1} ) 14 | else 15 | setypes=( ${(f)"$(_call_program selinux-types seinfo --flat -t)"} ) 16 | fi 17 | 18 | _description selinux-types expl "selinux type" 19 | compadd "$@" "$expl[@]" -a setypes 20 | -------------------------------------------------------------------------------- /Completion/Linux/Type/_selinux_users: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local -a seusers expl 4 | 5 | seusers=( ${(f)"$(_call_program selinux-users seinfo --flat -u)"} ) 6 | (( $#seusers )) || seusers=( guest_u root staff_u sysadm_u system_u unconfined_u user_u ) 7 | _description selinux-users expl "selinux user" 8 | compadd "$@" "$expl[@]" -a seusers 9 | -------------------------------------------------------------------------------- /Completion/Linux/Type/_wakeup_capable_devices: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local ret=1 item devline expl 4 | typeset -a desc 5 | 6 | _call_program wakeup-capable-devices acpitool -w 2> /dev/null | 7 | while read devline; do 8 | [[ -n ${devline:#(#b)([0-9]#).[[:space:]]#([^[:space:]]#)[[:space:]]#[0-9]#[[:space:]]#(*)} ]] && continue 9 | zformat -f item "${match[1]}:%8d (currently ${match[3]})" d:${match[2]} 10 | desc+=$item 11 | done 12 | 13 | _describe -t wakeup-capable-devices 'wakeup capable device' desc "$@" && ret=0 14 | 15 | return ret 16 | -------------------------------------------------------------------------------- /Completion/Mandriva/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Mandriva/Command/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/README: -------------------------------------------------------------------------------- 1 | The subdirectories contain code for a shell-based system of command-line 2 | completion. This is considerably more powerful than the old `compctl' 3 | method. For details, see the compsys(1) manual page (`man zshcompsys'). 4 | -------------------------------------------------------------------------------- /Completion/Redhat/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Redhat/Command/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Solaris/Command/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Solaris/Command/_inetadm: -------------------------------------------------------------------------------- 1 | #compdef inetadm 2 | 3 | _arguments -s \ 4 | '-?[help]' \ 5 | '-l[list service instance properties]:FMRI:_svcs_fmri -i' \ 6 | '-e[enable specified instance]:FMRI:_svcs_fmri -i' \ 7 | '-d[disable specified instance]:FMRI:_svcs_fmri -i' \ 8 | '-p[list inet service properties]' \ 9 | '-m[modify service instance properties]:FMRI:_svcs_fmri -i' \ 10 | '-M[modify inet service properties]' 11 | -------------------------------------------------------------------------------- /Completion/Solaris/Command/_ptree: -------------------------------------------------------------------------------- 1 | #compdef ptree 2 | 3 | _arguments -s \ 4 | '-a[all processes]' \ 5 | '-c[show contract memberships]' \ 6 | '-z[show processes in zone]:zone:_zones' \ 7 | '*: : _alternative "users:logged-in user:_users_on" "pids:pid:_pids"' 8 | -------------------------------------------------------------------------------- /Completion/Solaris/Command/_savecore: -------------------------------------------------------------------------------- 1 | #compdef savecore 2 | 3 | _savecore() { 4 | _arguments -s \ 5 | '-L[take live dump]' \ 6 | '-v[verbose]' \ 7 | '-d[disregard dump header valid flag]' \ 8 | '-f[save crash dump from file]:file:_files' \ 9 | '::directory:_files -/' 10 | } 11 | 12 | _savecore "$@" 13 | -------------------------------------------------------------------------------- /Completion/Solaris/Command/_zlogin: -------------------------------------------------------------------------------- 1 | #compdef zlogin 2 | # Synced with the Nevada build 162 man page 3 | 4 | local -a _comp_priv_prefix 5 | _arguments -s \ 6 | '-E[disable escape character]' \ 7 | '-e[specify escape character]:character' \ 8 | '-l[specify username]:username:_users' \ 9 | ':zonename:_zones' \ 10 | - set1 \ 11 | '-C[connect to zone console]' \ 12 | '-d[disconnect on zone halt]' \ 13 | - set2 \ 14 | '-S["safe" login mode]' \ 15 | '(-):command name: _command_names -e' \ 16 | '*::utility: _normal' 17 | -------------------------------------------------------------------------------- /Completion/Solaris/Type/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Solaris/Type/_be_name: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local -a type be_names expl 4 | 5 | zparseopts -D -E -a type t+: 6 | 7 | be_names=( ${${(f)"$(_call_program boot-environs beadm list -H)"}%%;*} ) 8 | 9 | [[ -n $type[(r)all] ]] && 10 | be_names+=( ${${${(f)"$(_call_program boot-environs beadm list -sH)"}#*;}%%;*} ) 11 | 12 | _description boot-environs expl 'boot environment' 13 | compadd "$@" "$expl[@]" -a be_names 14 | -------------------------------------------------------------------------------- /Completion/Solaris/Type/_zones: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local -a type typearg expl 4 | 5 | zparseopts -D -E -a type t+: 6 | 7 | [[ -n $type[(r)c] ]] && typearg=-c 8 | [[ -n $type[(r)i] ]] && typearg=-i 9 | 10 | _description zones expl zone 11 | compadd "$@" "$expl[@]" - ${="$(_call_program zones /usr/sbin/zoneadm list $typearg)"} 12 | -------------------------------------------------------------------------------- /Completion/Unix/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Unix/Command/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_apachectl: -------------------------------------------------------------------------------- 1 | #compdef apachectl apache2ctl 2 | 3 | _sub_commands start startssl stop restart fullstatus status graceful configtest help 4 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_bibtex: -------------------------------------------------------------------------------- 1 | #compdef bibtex 2 | 3 | # bibtex only works when the *.aux file exists, but complete the *.tex file in 4 | # case it hasn't been compiled yet. 5 | _files -g '*.(aux|tex)(:r)' 6 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_cabal: -------------------------------------------------------------------------------- 1 | #compdef cabal 2 | 3 | local -a subcmds 4 | 5 | subcmds=(${${${${${(f)"$(cabal --help)"}[(r)Commands:*,(r)For more information*]}[2,-2]}# }%% *}) 6 | 7 | _arguments \ 8 | '1:subcmd:compadd -a subcmds' \ 9 | ':other: _alternative "options:option:compadd -- $(cabal $words[2] --list-options)" "files:file:_files"' 10 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_cacaclock: -------------------------------------------------------------------------------- 1 | #compdef cacaclock 2 | 3 | local -a arguments=( 4 | '(-d --dateformat)'{-d+,--dateformat=}'[use specified format as strftime argument]: :_date_formats' 5 | '(-f --font)'{-f+,--font=}'[use specified font for time display]:font file:_files -g "/usr/share/figlet/*.tlf"' 6 | '(-)'{-h,--help}'[display usage help]' 7 | '(-)'{-v,--version}'[display version information]' 8 | ) 9 | 10 | _arguments $arguments 11 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_configure: -------------------------------------------------------------------------------- 1 | #compdef configure config.status 2 | 3 | _arguments -- -i '(--(disable|enable)-FEATURE* --(with|without)-PACKAGE*)' \ 4 | -s '((#s)--disable- --enable- 5 | (#s)--enable- --disable- 6 | (#s)--with- --without- 7 | (#s)--without- --with-)' \ 8 | '*=(E|)PREFIX*:prefix directory:_files -/' \ 9 | '*=PROGRAM*:program:_command_names -e' \ 10 | '*=NAME*executable*:program:_command_names -e' \ 11 | '*=NAME*:file:_files' 12 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_cplay: -------------------------------------------------------------------------------- 1 | #compdef cplay 2 | 3 | _arguments -s \ 4 | '-n[enable restricted mode]' \ 5 | '-r[toggle playlist repeat mode]' \ 6 | '-R[toggle playlist random mode]' \ 7 | '-v[toggle PCM and MASTER volume control]' \ 8 | '*:playlist or directory or audio file:_files -g "*.(mp3|mp2|ogg|669|amf|ams|dsm|far|it|med|mod|mt2|mtm|okt|s3m|stm|ult|gdm|xm|m3u|pls|spx|wav|au)(-.)"' 9 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_curl: -------------------------------------------------------------------------------- 1 | #compdef curl 2 | 3 | # As of 7.43.0, curl upstream provides its own _curl definition. This 4 | # definition is provided as a fallback, and should be installed later 5 | # in $fpath than the curl-provided definition of _curl. 6 | 7 | _gnu_generic || _urls "$@" 8 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_diff: -------------------------------------------------------------------------------- 1 | #compdef diff gdiff 2 | 3 | _diff_options "$words[1]" ':original file:_files' ':new file:_files' 4 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_fakeroot: -------------------------------------------------------------------------------- 1 | #compdef fakeroot 2 | 3 | _arguments \ 4 | '(-l --lib)'{-l,--lib}'[specify alternate wrapper library]:wrapper library:_files' \ 5 | '--faked[specify alternate faked binary]:fake binary:_command_names -e' \ 6 | '-s[save the fakeroot environment on exit]:save file:_files' \ 7 | '-i[load a previously saved environment]:file:_files' \ 8 | '(-u --unknown-is-real)'{-u,--unknown-is-real}'[use real ownership of previously unknown files]' \ 9 | '(-):command name:_command_names -e' \ 10 | '*::arguments:_normal' 11 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_fetchmail: -------------------------------------------------------------------------------- 1 | #compdef fetchmail 2 | 3 | _arguments -S \ 4 | {--bsmtp,'(--logfile)-L','(-L)--logfile','(--fetchmailrc)-f','(-f)--fetchmailrc','(--idfile)-i','(-i)--idfile'}':file:_files' \ 5 | {--plugin,--plugout,'(--mda)-m','(-m)--mda'}':command:_command_names -e' \ 6 | {'(--username)-u','(-u)--username'}:user:_users \ 7 | '--auth:authentication type:(password kerberos kerberos_v5)' \ 8 | {'(--protocol)-p','(-p)--protocol'}:protocol:'(auto pop2 pop3 apop rpop kpop sdps imap imap-k4 imap-gss etrn)' \ 9 | {'(--port)-P','(-P)--port'}':port number' \ 10 | '*:mail server:_hosts' \ 11 | -- 12 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_fortune: -------------------------------------------------------------------------------- 1 | #compdef fortune 2 | 3 | _arguments \ 4 | '-a[choose from all lists of maxims, both offensive and not]' \ 5 | '-c[show the cookie file from which the fortune came]' \ 6 | '-e[consider all fortune files to be of equal size]' \ 7 | '-f[print out the list of files which would be searched]' \ 8 | '-l[long dictums only]' \ 9 | '-m[print all matches to regex]:BRE' \ 10 | '-n[set longest length to be short]:length' \ 11 | '-o[choose only from potentially offensive aphorisms]' \ 12 | '-s[short apothegms only]' \ 13 | '-i[ignore case for -m patterns]' \ 14 | '-w[wait before termination for a time based on msg length]' \ 15 | '*:databases' 16 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_fsh: -------------------------------------------------------------------------------- 1 | #compdef fsh 2 | 3 | local curcontext="$curcontext" state line ret=1 4 | local -a _comp_priv_prefix 5 | 6 | _arguments -C \ 7 | '(- : *)'{-h,--help}'[display help information]' \ 8 | '(- : *)'{-V,--version}'[display version information]' \ 9 | '-r[specify method]:method:(rsh ssh)' \ 10 | '-l[specify login id]:login:_users' \ 11 | '(-T --timeout)'{-T,--timeout}':idle timeout:' \ 12 | ':remote host name:_hosts' \ 13 | '(-):command: _command_names -e' \ 14 | '*::args:->command' && ret=0 15 | 16 | if [[ -n "$state" ]]; then 17 | shift 1 words 18 | (( CURRENT-- )) 19 | _normal && ret=0 20 | fi 21 | 22 | return ret 23 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_gnu_generic: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | # This is for GNU-like commands which understand the --help option, 4 | # but which do not otherwise require special completion handling. 5 | 6 | _arguments '*:arg: _default' -- 7 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_go: -------------------------------------------------------------------------------- 1 | #compdef gccgo gofmt 5l 6l 8l 5g 6g 8g 2 | 3 | # This is for the computer language go, 4 | # http://golang.org. 5 | 6 | local expl pat 7 | 8 | case $service in 9 | (<->l) 10 | pat="*.${service[1,-2]}" 11 | ;; 12 | 13 | (*) 14 | pat="*.go" 15 | ;; 16 | esac 17 | 18 | _wanted files expl "input file" _files -g "$pat(-.)" 19 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_knock: -------------------------------------------------------------------------------- 1 | #compdef knock 2 | 3 | _arguments \ 4 | '(-u --udp)'{-u,--udp}'[UDP mode]' \ 5 | '(-v --verbose)'{-v,--verbose}'[verbose]' \ 6 | '(-V --version -h --help -u --udp -v --verbose)'{-V,--version}'[display version]' \ 7 | '(-h --help -u --udp -v --verbose -V --version)'{-h,--help}'[help]' \ 8 | '1:host:_hosts' \ 9 | '*:port:_ports' 10 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_loadkeys: -------------------------------------------------------------------------------- 1 | #compdef loadkeys 2 | 3 | case $OSTYPE in 4 | linux*) 5 | _arguments \ 6 | '(--clearcompose -c)'{--clearcompose,-c}'[clear kernel compose table]' \ 7 | '(--default -d)'{--default,-d}'[load default keymap file]' \ 8 | '(--help -h)'{--help,-h}'[display help information]' \ 9 | '(--mktable -m)'{--mktable,-m}'[output a "defkeymap.c" to stdout]' \ 10 | '(--clearstrings)'{--clearstrings,-s}'[clear kernel string table]' \ 11 | '*'{--verbose,-v}'[print more details]' \ 12 | ':keymap:_files -W /usr/share/keymaps' 13 | ;; 14 | solaris*) 15 | _files -W /usr/share/lib/keytables 16 | ;; 17 | 18 | *) _default;; 19 | esac 20 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_mail: -------------------------------------------------------------------------------- 1 | #compdef mail mailx=mail Mail=mail mush zmail nail=mail 2 | 3 | _arguments -s \ 4 | '(-f -u)*-b[specify a BCC recipient]:BCC recipient:_email_addresses -n $service' \ 5 | '(-f -u)*-c[specify a CC recipient]:CC recipient:_email_addresses -n $service' \ 6 | '(-b -c -u -s *)-f+[specify mail folder]:mailbox:_mailboxes' \ 7 | '(-f -u)-s+[specify a subject]:subject' \ 8 | "(-b -c -f -s *)-u+[read specified user's mail]:user:_users" \ 9 | "(-f -u)*:recipient:_email_addresses -n $service" 10 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_mkfifo: -------------------------------------------------------------------------------- 1 | #compdef mkfifo gmkfifo 2 | 3 | local -a aopts args 4 | 5 | if _pick_variant gnu='Free Soft' unix --version; then 6 | args=( 7 | '(: * -)--help[display help information]' 8 | '(: * -)--version[display version information]' 9 | '(-m --mode)'{-m+,--mode=}'[specify file mode]: :_file_modes' 10 | ) 11 | [[ $OSTYPE == linux* ]] && args+=( 12 | '(--context)-Z[set SELinux security context to default]' 13 | '(-Z)--context=-[like -Z, or specify SELinux security context]::SELinux security context:_selinux_contexts' 14 | ) 15 | else 16 | aopts=( -A '-*' ) 17 | args=( '-m+[specify file mode]: :_file_modes' ) 18 | fi 19 | 20 | _arguments -s -S $aopts : '*:FIFO:_files' $args 21 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_ncftp: -------------------------------------------------------------------------------- 1 | #compdef ncftp lftp 2 | 3 | local expl bookmarks XDG_DATA_HOME=${XDG_DATA_HOME:-$HOME/.local/share} 4 | 5 | if [[ $service = lftp ]]; then 6 | bookmarks=$XDG_DATA_HOME/$service/bookmarks 7 | else 8 | bookmarks=$HOME/.$service/bookmarks 9 | fi 10 | 11 | if [[ -f $bookmarks ]]; then 12 | bookmarks=(${"${(f)$(<$bookmarks)}"%%[[:space:],]*}) 13 | [[ $service == ncftp ]] && shift 2 bookmarks 14 | _wanted bookmarks expl bookmark compadd -a bookmarks && return 0 15 | fi 16 | 17 | _hosts 18 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_nice: -------------------------------------------------------------------------------- 1 | #compdef nice 2 | 3 | local -a specs=( '*:: : _normal -p $service' ) 4 | 5 | # See if the 1st arg is such as -10 --10 or -+10 6 | if [[ $words[2] = -(-|+|)[0-9]## ]]; then 7 | if (( $CURRENT == 2 )); then 8 | _message 'niceness increment' && return 9 | fi 10 | compset -n 2 # Ignore the 1st arg 11 | else 12 | if _pick_variant gnu=GNU unix --version; then 13 | specs+=( 14 | '(-)'{-n+,--adjustment=}'[adjust niceness]:niceness increment' 15 | '(* -)--help[display help and exit]' 16 | '(* -)--version[output version information and exit]' 17 | ) 18 | else 19 | specs+=( '-n+[specify increment of niceness]:niceness increment' ) 20 | fi 21 | fi 22 | 23 | _arguments : $specs 24 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_npm: -------------------------------------------------------------------------------- 1 | #compdef npm 2 | 3 | # Node Package Manager completion, letting npm do all the completion work 4 | 5 | if (( $+commands[npm] )); then 6 | eval "$(NPM_CONFIG_UPDATE_NOTIFIER=false npm completion)" 7 | # Monkey-patch their function to prevent update checks 8 | functions[_npm_completion]=" 9 | local -x NPM_CONFIG_UPDATE_NOTIFIER=false; 10 | ${functions[_npm_completion]} 11 | " 12 | 13 | _npm_completion "$@" 14 | fi 15 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_pack: -------------------------------------------------------------------------------- 1 | #compdef pack unpack pcat=unpack 2 | 3 | local expl state line 4 | 5 | case $service in 6 | pack) 7 | _arguments -C \ 8 | '-f[force packing even for files which will not benefit]' \ 9 | '-[show statistics for files]' \ 10 | '*:file to compress:_files -g "^*.z(-.)"' 11 | ;; 12 | unpack) 13 | _description files expl 'compressed file' 14 | _files "$expl[@]" -g '*.z(-.)' 15 | ;; 16 | esac 17 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_paste: -------------------------------------------------------------------------------- 1 | #compdef paste gpaste 2 | 3 | local -a args 4 | local dopt='[specify delimiter list]:delimiter list [tab]' 5 | local sopt='[paste one file at a time instead of in parallel]' 6 | 7 | if _pick_variant gnu=GNU unix --version; then 8 | args=( 9 | '(-z --zero-terminated)'{-z,--zero-terminated}'[use NUL as line delimiter instead of newline]' 10 | "(-d)--delimiters=$dopt" 11 | "(-s)--serial$sopt" 12 | '(- *)--help[display help information]' 13 | '(- *)--version[display version information]' 14 | ) 15 | else 16 | args=( -A "-?*" ) 17 | fi 18 | 19 | _arguments -s $args "(--delimiters)-d+$dopt" "(--serial)-s$sopt" '*:file:_files' 20 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_pkg_instance: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local -A opts 4 | local whicharg 5 | 6 | zparseopts -E -D -- '-_opts:=opts' 7 | 8 | whicharg=${opts#*:} 9 | 10 | case ${opts%:*} in 11 | (installed) 12 | compadd "$@" - ${opt_args[$whicharg]}/var/sadm/pkg/*/pkginfo(:h:t) 13 | ;; 14 | (spooled) 15 | compadd "$@" - ${opt_args[$whicharg]}/*(:t) 16 | ;; 17 | (uninstalled) 18 | compadd "$@" - ${opt_args[$whicharg]:-/var/spool/pkg}/*/pkgmap(:h:t) 19 | ;; 20 | esac 21 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_pkginfo: -------------------------------------------------------------------------------- 1 | #compdef pkginfo 2 | 3 | _arguments -s \ 4 | '(-q -r -x)-l[long listing]' \ 5 | '(-l -r -x)-q[quiet mode]' \ 6 | '(-l -q -x)-r[relocation base]' \ 7 | '(-l -q -r)-x[extracted listing]' \ 8 | '-c[category]:category' \ 9 | '-a[architecture]:architecture' \ 10 | '-v[version]:version' \ 11 | - set1 \ 12 | '(-p)-i[select completely installed packages]' \ 13 | '(-i)-p[select partially installed packages]' \ 14 | '-R[root path]:root path:_files -/' \ 15 | '*:package instance:_pkg_instance --_opts installed:set1--R' \ 16 | - set2 \ 17 | '-d[device]:device file:_files' \ 18 | '*:package instance:_pkg_instance --_opts uninstalled:set2--d' 19 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_pkgrm: -------------------------------------------------------------------------------- 1 | #compdef pkgrm 2 | 3 | _arguments -s \ 4 | '-Y[select packages by category]:category' \ 5 | - set1 \ 6 | '-n[non-interactive mode]' \ 7 | '-v[trace all scripts]' \ 8 | '-a[admin file]:admin file:_files' \ 9 | "-A[force removal of all files]" \ 10 | "-M[don't use vfstab file]" \ 11 | '-R[root path]:root path:_files -/' \ 12 | '-V[alternate vfstab file]:vfstab file:_files' \ 13 | '*:package instance:_pkg_instance --_opts installed:set1--R' \ 14 | - set2 \ 15 | '-s[spool package]:spool directory:_files -/' \ 16 | '*:package instance:_pkg_instance --_opts spooled:set2--s' 17 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_pon: -------------------------------------------------------------------------------- 1 | #compdef pon poff 2 | 3 | case "$service" in 4 | (pon) 5 | 6 | _arguments \ 7 | '(-q --quick)'{-q,--quick}'[hangs up after all ip-up scripts are run]' \ 8 | '1:provider to call:_files -W /etc/ppp/peers' 9 | 10 | ;; 11 | 12 | (poff) 13 | _arguments \ 14 | '-r[drop the line and redial]' \ 15 | '-d[toggle state of debug option]' \ 16 | '-c[renegotiate compression]' \ 17 | '-a[stop all pppds]' \ 18 | '-h[help]' \ 19 | '-v[version]' \ 20 | '1:provider to disconnect:_files -W /etc/ppp/peers' 21 | 22 | ;; 23 | esac 24 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_printenv: -------------------------------------------------------------------------------- 1 | #compdef printenv gprintenv 2 | 3 | local expl 4 | 5 | _wanted parameters expl 'environment variable' _parameters -g '*export*' 6 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_python_module-http.server: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | _arguments -S \ 4 | '(-h --help)'{-h,--help}'[show a help message and exit]' \ 5 | '--cgi[run as CGI server]' \ 6 | '(-b --bind)'{-b+,--bind=}'[bind to this address]:address:' \ 7 | '(-d --directory)'{-d+,--directory=}'[serve this directory]:directory:_directories' \ 8 | '(-p --protocol)'{-p+,--protocol=}'[conform to this HTTP version]:protcol version:(HTTP/1.0 HTTP/1.1)' 9 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_python_module-json.tool: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | _arguments -S \ 4 | '(-h --help)'{-h,--help}'[show a help message and exit]' \ 5 | '--sort-keys[sort the output of dictionaries alphabetically by key]' \ 6 | '--no-ensure-ascii[disable escaping of non-ASCII characters]' \ 7 | '--json-lines[parse input using the JSON Lines format]' \ 8 | '--indent=[separate items with newlines and use this number of spaces for indentation]:spaces:' \ 9 | '--tab[separate items with newlines and use tabs for indentation]' \ 10 | '--no-indent[separate items with spaces rather than newlines]' \ 11 | '--compact[suppress all whitespace separation]' \ 12 | '1:infile:_files' \ 13 | '2:outfile:_files' 14 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_ranlib: -------------------------------------------------------------------------------- 1 | #compdef ranlib 2 | 3 | _arguments \ 4 | "(-a)-s[preferred type ToC (default)]" \ 5 | "(-s)-a[original type ToC]" \ 6 | "-c[include common symbols]" \ 7 | "(-T)-L[4.4bsd archive extended format #1 (default)]" \ 8 | "(-L)-T[truncate names to 16 chars, per pre-4.4.bsd format]" \ 9 | "-f[warn about fat archives]" \ 10 | "-t[do not rebuild ToC (ignored)]" \ 11 | "(-)-[no more options]" \ 12 | "1:archive: _files" 13 | 14 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_renice: -------------------------------------------------------------------------------- 1 | #compdef renice 2 | 3 | if [[ $CURRENT = 2 ]]; then 4 | _message -e priority 5 | else 6 | local opts ret=1 7 | opts=( 8 | '-g:interpret args as process group IDs' 9 | '-u:interpret args as user names' 10 | '-p:interpret args as process IDs' 11 | ) 12 | _describe -o option opts && ret=0 13 | 14 | case ${(v)words[(I)-?]} in 15 | -g) _pgids && ret=0 ;; 16 | -u) _users && ret=0 ;; 17 | *) _pids && ret=0;; 18 | esac 19 | fi 20 | 21 | return ret 22 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_rrdtool: -------------------------------------------------------------------------------- 1 | #compdef rrdtool 2 | 3 | local curcontext="$curcontext" state line expl ret=1 4 | 5 | _arguments -C \ 6 | ':rrdtool command:(create update updatev graph dump restore 7 | last lastupdate first help info fetch tune 8 | resize xport)' \ 9 | '*:: :->subcmds' && ret=0 10 | 11 | curcontext="${curcontext%:*}-$words[1]:" 12 | case "$state" in 13 | (subcmds) 14 | case "$words[1]" in 15 | (help) 16 | _wanted -V 'subcommands' expl 'subcommand' compadd \ 17 | create update updatev graph dump restore last lastupdate \ 18 | first help info fetch tune resize xport 19 | ;; 20 | (*) 21 | _files 22 | ;; 23 | esac 24 | ;; 25 | esac 26 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_showmount: -------------------------------------------------------------------------------- 1 | #compdef showmount 2 | 3 | _arguments \ 4 | '(-a --all)'{-a,--all}'[list both hostname and mounted dir in host:dir format]' \ 5 | '(-d --directories)'{-d,--directories}'[list only the directories mounted by some client]' \ 6 | '(-e --exports)'{-e,--exports}'[show server export list]' \ 7 | '(-h --help)'{-h,--help}'[help]' \ 8 | '(-v --version)'{-v,--version}'[version]' \ 9 | '--no-headers[suppress descriptive headers from output]' \ 10 | ':host:_hosts' 11 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_spamassassin: -------------------------------------------------------------------------------- 1 | #compdef spamassassin 2 | 3 | _arguments \ 4 | '-P[pipe to STDOUT]' \ 5 | '-e[error code on spam]' \ 6 | '-h[help]' \ 7 | '-t[test mode]' \ 8 | '-r[report message as verified spam]' \ 9 | '-w[set from addr of reply mail]:fromaddr:_user_at_host' \ 10 | '-l[log to file]:filename:_files' \ 11 | '-L[perform only local tests]' \ 12 | '-d[remove SpamAssassin markup]' \ 13 | '-c[config]:config file:_files' \ 14 | '-p[score preferences]:preference file:_files' \ 15 | '-D[diagnostic output]' 16 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_tac: -------------------------------------------------------------------------------- 1 | #compdef tac gtac 2 | 3 | # NetBSD (at least) has its own bare-bones version of this tool 4 | _pick_variant gnu='Free Soft' unix --version || { 5 | _default 6 | return 7 | } 8 | 9 | _arguments -s -S : \ 10 | '(: -)--help[display help information]' \ 11 | '(: -)--version[display version information]' \ 12 | '(-b --before)'{-b,--before}'[attach separator before instead of after]' \ 13 | '(-r --regex)'{-r,--regex}'[treat separator as regular expression (with -s)]' \ 14 | '(-s --separator)'{-s+,--separator=}'[use specified separator instead of newline]:separator' \ 15 | '*: :_files' 16 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_tcptraceroute: -------------------------------------------------------------------------------- 1 | #compdef tcptraceroute 2 | 3 | _arguments \ 4 | '-n[no reverse lookups]' \ 5 | '-N[always reverse lookup]' \ 6 | '-f:first ttl:' \ 7 | '-m:maximum ttl:' \ 8 | '-p:local tcp port:_ports' \ 9 | '-s:source address:_hosts' \ 10 | '-i:interface for outgoing packets:_net_interfaces' \ 11 | '-q:number of probes to each hop:' \ 12 | '-w:timeout in seconds:' \ 13 | '-S[set TCP SYN flag]' \ 14 | '-A[set TCP ACK flag]' \ 15 | '-E[send ECN SYN packets]' \ 16 | '-t:IP TOS:' \ 17 | '-F[set IP don'"'"'t fragment bit]' \ 18 | '-l:total packet length:' \ 19 | '-d[enable debugging]' \ 20 | ':destination:_hosts' \ 21 | ':port:_ports' \ 22 | ':length:' 23 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_topgit: -------------------------------------------------------------------------------- 1 | #compdef tg 2 | local expl 3 | 4 | if (( CURRENT == 2 )); then 5 | _wanted subcmd expl 'topgit command' compadd create delete export import info patch remote summary update 6 | else 7 | _files 8 | fi 9 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_totd: -------------------------------------------------------------------------------- 1 | #compdef totdconfig 2 | 3 | _arguments \ 4 | - set1 \ 5 | '-a[add totd specific options]' \ 6 | '-D[add totd specific config into dhclient-enter-hooks]' \ 7 | '-d:name server:_hosts' \ 8 | '-l[configure resolv.conf]' \ 9 | - set2 \ 10 | '-r:config to remove:(dhcp totd resolv all)' \ 11 | - set3 \ 12 | '-h[help]' 13 | 14 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_tput: -------------------------------------------------------------------------------- 1 | #compdef tput 2 | local -a args 3 | 4 | case $OSTYPE in 5 | *linux*) 6 | args=( 7 | - set1 8 | '-S[allows more than one capability per invocation of tput]' 9 | - set2 10 | '-V[reports the version of ncurses used for tput]' 11 | ) 12 | esac 13 | 14 | _arguments : \ 15 | $args - set3 \ 16 | '(-S -V)-T+[terminal type]:terminal type:_terminals' \ 17 | '1:terminal capability:( init reset longname ${(k)terminfo} )' \ 18 | '*:capability parameters:{ [[ $words[1] != (init|reset|longname) ]] && _message parameter }' 19 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_tty: -------------------------------------------------------------------------------- 1 | #compdef tty gtty 2 | 3 | local -a args 4 | 5 | if _pick_variant gnu='Free Soft' unix --version; then 6 | args=( 7 | '(-)--help[display help information]' 8 | '(-)--version[display version information]' 9 | '(-s --quiet --silent)'{-s,--quiet,--silent}'[suppress normal output]' 10 | ) 11 | else 12 | args=( '-s[suppress normal output]' ) 13 | [[ $OSTYPE == solaris* ]] && args+=( 14 | "-l[display terminal's synchronous line number]" 15 | ) 16 | fi 17 | 18 | _arguments -s -S : $args 19 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_unace: -------------------------------------------------------------------------------- 1 | #compdef unace 2 | 3 | _arguments -S \ 4 | '-c[show comments]' \ 5 | '-f[full path matching]' \ 6 | '-o[overwrite files]' \ 7 | '-p+[specify password]:password' \ 8 | '-y[assume yes on all queries]' \ 9 | '-x+[specify files to exclude]:files' \ 10 | '-h[print help information]' \ 11 | '1:unace command:(( 12 | e\:extract\ files 13 | l\:list\ archive 14 | t\:test\ archive\ integrity 15 | v\:list\ archive\ \(verbose\) 16 | x\:extract\ files\ with\ full\ path 17 | ))' \ 18 | '*:files:_files -g "*.ace(-.)"' 19 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_visudo: -------------------------------------------------------------------------------- 1 | #compdef visudo 2 | 3 | _arguments -s -S : \ 4 | '(: * -)'{-h,--help}'[display help information]' \ 5 | '(: * -)'{-V,--version}'[display version information]' \ 6 | '(-f --file)'{-f+,--file=}'[specify sudoers file]:sudoers file:_files' \ 7 | + c \ 8 | '(x -c --check)'{-c,--check}'[check sudoers file for errors only]' \ 9 | '(-q --quiet)'{-q,--quiet}'[suppress error messages (with -c)]' \ 10 | '(x -s --strict)'{-s,--strict}'[enable strict checking]' \ 11 | + '(x)' \ 12 | '(c)'{-x+,--export=}'[export sudoers file to specified JSON output file]:JSON output file:_files' 13 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_webbrowser: -------------------------------------------------------------------------------- 1 | #compdef amaya arena chimera dillo dwb express galeon grail gzilla hotjava konqueror light mmm Mosaic netrik opera opera-next retawq skipstone www xmosaic zen 2 | 3 | _alternative 'files: :_files' 'urls: :_urls' 4 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_whereis: -------------------------------------------------------------------------------- 1 | #compdef whereis 2 | 3 | _command_names -e 4 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_yodl: -------------------------------------------------------------------------------- 1 | #compdef -P yodl(|2*) 2 | 3 | _arguments -s \ 4 | '-D-[define symbol]:define symbol:' \ 5 | '-I-[set include directory]:include directory:_files -/' \ 6 | '-l-[set live data policy]:live data policy:((0\:suppress\ SYSTEM\ and\ PIPETHROUGH 1\:require\ user\ confirmation 2\:display\ macros 3\:no\ confirmation,\ no\ display))' \ 7 | '-o-[specify output file]:output file:_files' \ 8 | '-P-[specify preload command]:preload command:' \ 9 | '-p-[specify maximum number of passes]:maximum number of passes:' \ 10 | '-t[enable tracing mode]' \ 11 | '-v[enable verbose mode]' \ 12 | '-w[enable warnings]' \ 13 | '-h[show usage information]' \ 14 | '*:YODL input file:_files -g "*.(#i)yo(|dl)(-.)"' 15 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_zcat: -------------------------------------------------------------------------------- 1 | #compdef zcat 2 | 3 | if _pick_variant gz='(GNU|NetBSD|Apple)' unix --license; then 4 | _gzip "$@" 5 | else 6 | _compress "$@" 7 | fi 8 | -------------------------------------------------------------------------------- /Completion/Unix/Command/_zdump: -------------------------------------------------------------------------------- 1 | #compdef zdump 2 | 3 | _arguments \ 4 | '-v[lowest possible]' \ 5 | '-c[cutoff]:cutoff year:' \ 6 | '*:time zone:_time_zone' 7 | -------------------------------------------------------------------------------- /Completion/Unix/Type/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_arch_archives: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local ARCHCMD="$1" 4 | shift 5 | local expl completions library name_arg='-n' 6 | if [[ -n $argv[(r)--library] ]]; then 7 | library='library-' 8 | # remove parameter from $@ before calling compadd 9 | argv[(r)--library]=() 10 | name_arg= 11 | fi 12 | completions=($(_call_program ${ARCHCMD} ${ARCHCMD} ${library:-}archives $name_arg)) 13 | _description -V archives expl "${library:-}archives" 14 | compadd "$@" "$expl[@]" -- "$completions[@]" 15 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_cmdambivalent: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | if (( CURRENT == 1 && ${#words} == 1 )); then 4 | # Heuristics to decide whether to complete for system() or for execl(). 5 | local space=' ' 6 | if (( ${${words[CURRENT]}[(I)$space]} )); then 7 | _cmdstring 8 | elif [[ ${${compstate[all_quotes]}[1]} == (\'|\") ]]; then 9 | _cmdstring 10 | else 11 | _command_names -e 12 | fi 13 | elif (( CURRENT == 1 )); then 14 | _command_names -e 15 | else 16 | _normal 17 | fi 18 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_cmdstring: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | # This is for a quoted argument that will be interpreted as a command. 4 | 5 | compset -q 6 | _normal 7 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_ctags_tags: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl tags 4 | 5 | [[ -r tags ]] && tags=( ${${${(f)"$(< tags)"}:#!*}%%[[:blank:]]*} ) 6 | 7 | _wanted ctags expl 'tag' compadd -M 'm:{a-zA-Z}={A-Za-z}' -a "$@" - tags 8 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_directories: -------------------------------------------------------------------------------- 1 | #compdef dircmp -P -value-,*path,-default- 2 | 3 | local expl 4 | 5 | _wanted directories expl directory _files -/ "$@" - 6 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_dns_types: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl 4 | _description dns-types expl 'DNS type' 5 | compadd "$@" "$expl[@]" -M 'm:{a-z}={A-Z}' \ 6 | ANY A AAAA AFSDB APL AXFR CAA CDNSKEY CDS CERT CNAME DHCID DLV DNAME \ 7 | DNSKEY DS HIP HINFO IPSECKEY IXFR KEY KX LOC MX NAPTR NS NSEC NSEC3 \ 8 | NSEC3PARAM OPT PTR RRSIG RP SIG SOA SPF SRV SSHFP TA TKEY TLSA TSIG TXT 9 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_domains: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl domains tmp 4 | 5 | if ! zstyle -a ":completion:${curcontext}:domains" domains domains; then 6 | if (( ! $+_cache_domains )); then 7 | _cache_domains=() 8 | if [[ -f /etc/resolv.conf ]]; then 9 | while read tmp; do 10 | [[ "$tmp" = (domain|search)* ]] && 11 | _cache_domains=( "$_cache_domains[@]" "${=${tmp%%[ ]#}#*[ ]}" ) 12 | done < /etc/resolv.conf 13 | _cache_domains=( "${(@)_cache_domains:#[ ]#}" ) 14 | fi 15 | fi 16 | domains=( "$_cache_domains[@]" ) 17 | fi 18 | 19 | _wanted domains expl domain \ 20 | compadd -M 'm:{a-zA-Z}={A-Za-z} r:|.=* r:|=*' -a "$@" - domains 21 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_global_tags: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl tags 4 | 5 | tags=( $(_call_program global-tags global --completion $PREFIX 2>/dev/null) ) 6 | 7 | _wanted global-tags expl 'tag' compadd -M 'm:{a-zA-Z}={A-Za-z}' -a "$@" - tags 8 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_locales: -------------------------------------------------------------------------------- 1 | #compdef -value-,LANG,-default- -value-,LANGUAGE,-default- -P -value-,LC_*,-default- 2 | 3 | local expl locales 4 | 5 | if (( $+commands[locale] )); then 6 | locales=( $(_call_program locales locale -a) ) 7 | [[ $OSTYPE = *-gnu ]] && locales=( ${locales/utf8/UTF-8} ) 8 | else 9 | locales=( /usr/lib/locale/*(:t) ) 10 | fi 11 | 12 | _wanted locales expl locale compadd -a "$@" - locales 13 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_my_accounts: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | _user_at_host -t my-accounts "$@" 4 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_net_interfaces: -------------------------------------------------------------------------------- 1 | #compdef ifup ifdown 2 | 3 | local expl 4 | local -a net_intf_disp net_intf_list 5 | 6 | _find_net_interfaces 7 | 8 | _wanted interfaces expl 'network interface' \ 9 | compadd "$@" "$net_intf_disp[@]" - "${(@)net_intf_list%%:*}" 10 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_newsgroups: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl 4 | 5 | : ${(A)_cache_newsgroups:=${${(f)"$(fgrep -vh \! ~/.newsrc*)"}%:*}} 6 | 7 | (( ${(w)#_cache_newsgroups} )) && _wanted newsgroups expl 'newsgroup' \ 8 | _multi_parts "$@" -i . _cache_newsgroups 9 | 10 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_object_files: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl 4 | 5 | _description files expl 'object file' 6 | 7 | __object_file() { 8 | [[ -x $REPLY || $REPLY = *.(a|o|elf|dylib) || $REPLY = *.so(.<->)# || 9 | $REPLY = (core*|*.core) ]] 10 | } 11 | 12 | _files -g '*(-.e,__object_file,)' "$@" "${(@)expl}" 13 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_other_accounts: -------------------------------------------------------------------------------- 1 | #compdef talk ntalk ytalk 2 | 3 | _user_at_host -t other-accounts "$@" 4 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_pdf: -------------------------------------------------------------------------------- 1 | #compdef pdf2dsc pdf2ps pdfimages pdfinfo pdftopbm pdftops pdftotext pdfopt pdffonts kpdf apvlv epdfview 2 | 3 | local expl ext='' 4 | 5 | # ghostscript: 6 | # pdf2dsc pdf2ps pdfopt 7 | # xpdf: 8 | # pdfimages pdfinfo pdftopbm pdftops pdftotext xpdf pdffonts 9 | # KDE 3: 10 | # kpdf 11 | # KDE 4: 12 | # okular 13 | 14 | if [[ "$1" == '-z' ]]; then 15 | ext='(|.bz2|.gz|.Z)' 16 | shift 17 | fi 18 | 19 | _description files expl 'PDF file' 20 | _files "$@" "$expl[@]" -g "*.(#i)pdf$ext(-.)" 21 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_pgids: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl 4 | 5 | _wanted pgids expl 'process group ID' compadd "$@" - ${(un)$(_call_program pgids ps -A -o pgid=)} 6 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_ports: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl ports 4 | 5 | if ! zstyle -a ":completion:${curcontext}:" ports ports; then 6 | (( $+_cache_ports )) || 7 | : ${(A)_cache_ports:=${${(M)${${(f)"$(/dev/null 16 | [[ -n $all ]] && syscalls+=( all ) 17 | [[ -n $none ]] && syscalls+=( none ) 18 | 19 | _description syscalls expl 'system call' 20 | compadd "$@" "$expl[@]" -a syscalls 21 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_terminals: -------------------------------------------------------------------------------- 1 | #compdef infocmp -value-,TERM,-default- 2 | 3 | local desc expl 4 | 5 | desc=( $TERMINFO ~/.terminfo $TERMINFO_DIRS /usr/{,share/}{,lib/}terminfo /{etc,lib}/terminfo ) 6 | 7 | _wanted terminals expl 'terminal name' \ 8 | compadd "$@" - $desc/*/*(N:t) 9 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_texi: -------------------------------------------------------------------------------- 1 | #compdef -P (texi(2*|ndex)) 2 | 3 | local expl 4 | 5 | _description files expl 'texinfo file' 6 | _files "$@" "$expl[@]" -g '*.(texinfo|texi)(-.)' 7 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_time_zone: -------------------------------------------------------------------------------- 1 | #compdef -value-,TZ,-default- 2 | 3 | local expl 4 | 5 | if (( ! $+_zoneinfo_dirs )); then 6 | _zoneinfo_dirs=( /usr/{share,lib,share/lib}/{zoneinfo*,locale/TZ}(/) ) 7 | fi 8 | 9 | _wanted time-zones expl 'time zone' \ 10 | _files -g '[A-Z]*' -M 'm:{a-z}={A-Z}' -W _zoneinfo_dirs "$@" - 11 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_users: -------------------------------------------------------------------------------- 1 | #compdef passwd groups userdel chage chfn 2 | 3 | local expl users 4 | 5 | if zstyle -a ":completion:${curcontext}:users" users users; then 6 | _wanted users expl user compadd "$@" -a - users 7 | return 8 | fi 9 | 10 | _wanted users expl user compadd "$@" -k - userdirs 11 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_users_on: -------------------------------------------------------------------------------- 1 | #compdef write 2 | 3 | local expl 4 | 5 | if (( $+commands[users] )); then 6 | _wanted users expl 'users logged on' \ 7 | compadd "$@" - $(_call_program users users) && return 0 8 | else 9 | # Other methods of finding out users logged on should be added here 10 | return 1 11 | fi 12 | -------------------------------------------------------------------------------- /Completion/Unix/Type/_zfs_pool: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | compadd "$@" - $(zpool list -H -o name) 4 | -------------------------------------------------------------------------------- /Completion/X/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/X/Command/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/X/Command/_gnome-gv: -------------------------------------------------------------------------------- 1 | #compdef gnome-gv ggv 2 | 3 | _arguments \ 4 | '(--help)-?[help]' \ 5 | '(--windows)-w[number of empty windows]:number:' \ 6 | '*:file: _pspdf -z' -- 7 | -------------------------------------------------------------------------------- /Completion/X/Command/_gqview: -------------------------------------------------------------------------------- 1 | #compdef gqview 2 | 3 | _arguments \ 4 | '(+t -t --without-tools --with-tools)'{+t,--with-tools}'[force show of tools]' \ 5 | '(+t -t --without-tools --with-tools)'{-t,--without-tools}'[force hide of tools]' \ 6 | '(--fullscreen -f)'{-f,--fullscreen}'[start in full screen mode]' \ 7 | '(--slideshow -s)'{-s,--slideshow}'[start in slideshow mode]' \ 8 | '(--list -l)'{-l,--list}'[open collection window for command line]' \ 9 | '--debug[turn on debug output]' \ 10 | '(--version -v)'{-v,--version}'[print version info]' \ 11 | '(--help -h)'{-h,--help}'[show help]' \ 12 | '*:picture file:_files -g "*.(#i)(jpg|jpe|jpeg|png|gif|tif|tiff|bmp)(-.)"' 13 | -------------------------------------------------------------------------------- /Completion/X/Command/_nautilus: -------------------------------------------------------------------------------- 1 | #compdef nautilus 2 | 3 | _arguments \ 4 | '--browser[open a browser window]' \ 5 | '(--check -c)'{-c,--check}'[perform a quick set of self-check tests]' \ 6 | '(--geometry -g)'{-g,--geometry=}':geometry:_x_geometry' \ 7 | '(--no-default-window -n)'{-n,--no-default-window}'[only create windows for explicitly specified URIs]' \ 8 | '--no-desktop[do not manage the desktop]' \ 9 | '(--quit -q)'{-q,--quit}'[quit Nautilus]' \ 10 | '--help[show a summary of options]' \ 11 | '--version[show version]' \ 12 | '*:URI: _alternative "files:file:_files" "urls:URL:_urls"' 13 | 14 | -------------------------------------------------------------------------------- /Completion/X/Command/_okular: -------------------------------------------------------------------------------- 1 | #compdef okular 2 | local extns 3 | 4 | extns="(pdf|ps|eps|dvi)(|.gz|.bz2)|djvu|tif|tiff|chm|cbr|cbz|epub" 5 | 6 | _arguments \ 7 | '(-p --page)'{-p,--page}'[page of the document to be shown]:page: ' \ 8 | '--presentation[start the document in presentation mode]' \ 9 | '--unique[unique instance control]' \ 10 | "*:okular document:_files -g '*.(#i)($extns)(-.)'" 11 | -------------------------------------------------------------------------------- /Completion/X/Command/_xautolock: -------------------------------------------------------------------------------- 1 | #compdef xautolock 2 | _arguments \ 3 | '(-enable -toggle)-disable' \ 4 | '(-disable -toggle)-enable' \ 5 | '(-locknow)-unlocknow' \ 6 | '(-unlocknow)-locknow' \ 7 | '(-restart)-exit' \ 8 | '(-exit)-restart' \ 9 | '-killer:program: _command_names -e' \ 10 | '-locker:program: _command_names -e' \ 11 | '-notifier:program: _command_names -e' \ 12 | '-nowlocker:program: _command_names -e' \ 13 | -bell:percent: \ 14 | -cornerdelay:seconds: \ 15 | -cornerredelay:seconds: \ 16 | -corners:corners: \ 17 | -cornersize:pixels: \ 18 | -killtime:minutes: \ 19 | -noclose{,out,err} \ 20 | -notify:seconds: \ 21 | -time:minutes: \ 22 | -secure \ 23 | -resetsaver \ 24 | -detectsleep \ 25 | -{help,version} 26 | -------------------------------------------------------------------------------- /Completion/X/Command/_xournal: -------------------------------------------------------------------------------- 1 | #compdef xournal 2 | 3 | local expl 4 | 5 | _description files expl 'PDF or Xournal file' 6 | _files "$@" "$expl[@]" -g '*.(#i){xoj,pdf}(-.)' 7 | -------------------------------------------------------------------------------- /Completion/X/Type/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/X/Type/_x_borderwidth: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local x="$argv[(I)-X]" 4 | 5 | if (( x )); then 6 | _message -r "$argv[x + 1]" 7 | else 8 | _message -e values 'border width' 9 | fi 10 | -------------------------------------------------------------------------------- /Completion/X/Type/_x_colormapid: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl list desc 4 | 5 | _tags colormapids || return 1 6 | 7 | list=(${(f)"$(xprop -root -f RGB_COLOR_MAP 32xcccccccxx ': $0\n'|awk -F'[ ():]' '/^[a-zA-Z_]+\(RGB_COLOR_MAP\)/ {print $5, "--", $1}')"}) 8 | 9 | if zstyle -T ":completion:${curcontext}:colormap-id" verbose; then 10 | desc=(-ld list) 11 | else 12 | desc=() 13 | fi 14 | 15 | _wanted colormapids expl 'colormap id' \ 16 | compadd "$@" "$desc[@]" - "${(@)list%% *}" 17 | -------------------------------------------------------------------------------- /Completion/X/Type/_x_cursor: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl 4 | 5 | if (( ! $+_cursor_cache )); then 6 | local file 7 | 8 | file=( /usr/{include,{{X11R6,openwin},local{,/X11{,R6}}}/include}/X11/cursorfont.h(N) ) 9 | 10 | if (( $#file )); then 11 | _cursor_cache=( "${(@)${(@)${(M@)${(@f)$(< $file[1])}:#*XC_*}[2,-1]#* XC_}% *}" ) 12 | else 13 | _cursor_cache=( X_cursor ) 14 | fi 15 | fi 16 | 17 | _wanted cursors expl 'cursor name' \ 18 | compadd "$@" -M 'm:-=_ r:|_=*' -a - _cursor_cache 19 | -------------------------------------------------------------------------------- /Completion/X/Type/_x_display: -------------------------------------------------------------------------------- 1 | #compdef -value-,DISPLAY,-default- 2 | 3 | _tags displays && _hosts -S ':0 ' -r : 4 | -------------------------------------------------------------------------------- /Completion/X/Type/_x_extension: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl 4 | 5 | _tags extensions || return 1 6 | 7 | (( $+_xe_cache )) || _xe_cache=( "${(@)${(@f)$(xdpyinfo)}[(r)number of extensions:*,-1][2,(r)default screen number:*][1,-2]//[ ]}" ) 8 | 9 | if [[ "$1" = -a ]]; then 10 | shift 11 | 12 | _wanted extensions expl 'X extension' \ 13 | compadd "$@" -M 'm:{a-z}={A-Z} r:|-=* r:|=*' - all "$_xe_cache[@]" 14 | else 15 | [[ "$1" = - ]] && shift 16 | 17 | _wanted extensions expl 'X extension' \ 18 | compadd "$@" -M 'm:{a-z}={A-Z} r:|-=* r:|=*' -a - _xe_cache 19 | fi 20 | -------------------------------------------------------------------------------- /Completion/X/Type/_x_font: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl 4 | 5 | _tags fonts || return 1 6 | 7 | # This *has* to be improved some day... 8 | 9 | if (( ! $+_font_cache )); then 10 | typeset -gU _font_cache 11 | 12 | _font_cache=( ${(f)"$(_call_program fonts xlsfonts)"} ) 13 | fi 14 | 15 | _wanted fonts expl font \ 16 | compadd -M 'r:|-=* r:|=*' "$@" -a - _font_cache 17 | -------------------------------------------------------------------------------- /Completion/X/Type/_x_geometry: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local x="$argv[(I)-X]" 4 | 5 | if (( x )); then 6 | _message -r "$argv[x + 1]" 7 | else 8 | _message -e geometries 'geometry' 9 | fi 10 | -------------------------------------------------------------------------------- /Completion/X/Type/_x_keysym: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl 4 | 5 | _tags keysyms || return 1 6 | 7 | if (( ! $+_keysym_cache )); then 8 | local file 9 | 10 | file=( /usr/{include,{{X11R6,openwin},local{,/X11{,R6}}}/include}/X11/keysymdef.h(N) ) 11 | 12 | if (( $#file )); then 13 | _keysym_cache=( "${(@)${(@)${(M@)${(@f)$(< $file[1])}:#\#define[ ]##XK_*}#\#define[ ]##XK_}%%[ ]*}" ) 14 | else 15 | _keysym_cache=( BackSpace Tab Linefeed Clear Return Pause Escape 16 | Delete Left Right Up Down Space Home Begin End 17 | F{1,2,3,4,5,6,7,8,9,10,11,12} ) 18 | fi 19 | fi 20 | 21 | _wanted keysyms expl 'key symbol' \ 22 | compadd "$@" -M 'm:{a-z}={A-Z} r:|-=* r:|=*' -a - _keysym_cache 23 | -------------------------------------------------------------------------------- /Completion/X/Type/_x_locale: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local x="$argv[(I)-X]" 4 | 5 | if (( x )); then 6 | _message -r "$argv[x + 1]" 7 | else 8 | _message -e locales 'locale' 9 | fi 10 | -------------------------------------------------------------------------------- /Completion/X/Type/_x_modifier: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl 4 | 5 | _wanted modifiers expl modifier \ 6 | compadd "$@" -M 'm:{a-z}={A-Z}' - \ 7 | Shift Lock Control Mod1 Mod2 Mod3 Mod4 Mod5 8 | -------------------------------------------------------------------------------- /Completion/X/Type/_x_name: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local x="$argv[(I)-X]" 4 | 5 | if (( x )); then 6 | _message -r "$argv[x + 1]" 7 | else 8 | _message -e names 'name' 9 | fi 10 | -------------------------------------------------------------------------------- /Completion/X/Type/_x_resource: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local x="$argv[(I)-X]" 4 | 5 | if (( x )); then 6 | _message -r "$argv[x + 1]" 7 | else 8 | _message -e resources 'resource' 9 | fi 10 | -------------------------------------------------------------------------------- /Completion/X/Type/_x_selection_timeout: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local x="$argv[(I)-X]" 4 | 5 | if (( x )); then 6 | _message -r "$argv[x + 1]" 7 | else 8 | _message -e values 'selection timeout' 9 | fi 10 | -------------------------------------------------------------------------------- /Completion/X/Type/_x_title: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local x="$argv[(I)-X]" 4 | 5 | if (( x )); then 6 | _message -r "$argv[x + 1]" 7 | else 8 | _message -e titles 'title' 9 | fi 10 | -------------------------------------------------------------------------------- /Completion/X/Type/_x_visual: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl 4 | 5 | # with the -b option, include `Best' in the matches 6 | local best="${argv[(r)-b]:+Best}" 7 | argv[(i)-b]=() 8 | 9 | _wanted visuals expl visual compadd "$@" -M 'm:{a-zA-Z}={A-Za-z}' - \ 10 | $best DirectColor TrueColor PseudoColor StaticColor GrayScale StaticGray 11 | -------------------------------------------------------------------------------- /Completion/X/Type/_x_window: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local list expl 4 | 5 | _tags windows || return 1 6 | 7 | list=( "${(@)${(M@)${(@f)$(_call_program windows xwininfo -root -tree)}:#[ ]#0x[0-9a-f]# \"*}##[ ]#}" ) 8 | 9 | if [[ "$1" = -n ]]; then 10 | shift 11 | 12 | _wanted windows expl 'window name' \ 13 | compadd "$@" -d list - "${(@)${(@)list#*\"}%%\"*}" 14 | else 15 | [[ "$1" = - ]] && shift 16 | 17 | _wanted windows expl 'window ID' compadd "$@" -d list - "${(@)list%% *}" 18 | fi 19 | -------------------------------------------------------------------------------- /Completion/X/Type/_xt_session_id: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | _message -e ids 'session ID' 4 | -------------------------------------------------------------------------------- /Completion/X/Utility/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Zsh/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_builtin: -------------------------------------------------------------------------------- 1 | #compdef builtin 2 | 3 | if (( $CURRENT > 2 )); then 4 | shift words 5 | (( CURRENT -- )) 6 | _normal -p $service 7 | else 8 | local expl 9 | 10 | _wanted commands expl 'builtin command' compadd "$@" -k builtins 11 | fi 12 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_command: -------------------------------------------------------------------------------- 1 | #compdef command 2 | 3 | _arguments \ 4 | '-v[indicate result of command search]:*:command:_path_commands' \ 5 | '-V[show result of command search in verbose form]:*:command:_path_commands' \ 6 | '(-)-p[use default PATH to find command]' \ 7 | '*:: : _normal -p $service' 8 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_dirs: -------------------------------------------------------------------------------- 1 | #compdef dirs 2 | 3 | _arguments -s \ 4 | '(-)-c[clear the directory stack]' \ 5 | '(* -c)-l[display directory names in full]' \ 6 | '(* -c)-v[display numbered list of directory stack]' \ 7 | '(* -c)-p[display directory entries one per line]' \ 8 | '(-)*:directory:_directories' 9 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_disable: -------------------------------------------------------------------------------- 1 | #compdef disable 2 | 3 | local -a ali_arr sali_arr func_arr 4 | 5 | ali_arr=(${(k)aliases} ${(k)galiases}) 6 | sali_arr=(${(k)saliases}) 7 | func_arr=(${(k)functions}) 8 | 9 | _arguments -C -s -A "-*" -S \ 10 | "(-f -r -s -p)-a[act on regular or global aliases]:*:regular or global alias:compadd -k ali_arr" \ 11 | "(-a -r -s -p)-f[act on functions]:*:function:compadd -k func_arr" \ 12 | "(-a -f -s -p)-r[act on reserved words]:*:reserved-word:compadd -k reswords" \ 13 | "(-a -f -r -p)-s[act on suffix aliases]:*:suffix alias:compadd -k sali_arr" \ 14 | "(-a -f -r -s)-p[act on pattern characters]:*:pattern character:compadd -k patchars" \ 15 | '-m[treat arguments as patterns]' \ 16 | "*:builtin command:(${(k)builtins})" 17 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_echotc: -------------------------------------------------------------------------------- 1 | #compdef echotc 2 | 3 | local expl 4 | 5 | _wanted arguments expl 'terminal capability' compadd -k termcap 6 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_echoti: -------------------------------------------------------------------------------- 1 | #compdef echoti 2 | 3 | local expl 4 | 5 | _wanted arguments expl 'terminal capability' compadd -k terminfo 6 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_emulate: -------------------------------------------------------------------------------- 1 | #compdef emulate 2 | 3 | _arguments -C -s \ 4 | '-L[set local_options and local_traps as well]' \ 5 | '-R[reset all options instead of only those needed for script portability]' \ 6 | '1:shell to emulate:(zsh sh ksh csh)' \ 7 | '2:specify optional command:(-c)' \ 8 | '3:command:_cmdstring' 9 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_exec: -------------------------------------------------------------------------------- 1 | #compdef exec 2 | 3 | _arguments -s -S -A '-*' : \ 4 | '-a+[set argv\[0\] to specified string]:argv[0] string' \ 5 | '-c[clear environment]' \ 6 | '-l[simulate login shell (prepend - to argv\[0\])]' \ 7 | '*:: : _normal -p $service' 8 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_jobs_builtin: -------------------------------------------------------------------------------- 1 | #compdef jobs 2 | 3 | _arguments -C -s \ 4 | "(-d -l -p -r -s *)-Z[specify string to replace shell's argument and environment with]:string" \ 5 | '(-Z)-d[show directory from which each job was started]' \ 6 | '(-Z)-l[list process IDs]' \ 7 | '(-Z)-p[list process groups]' \ 8 | '(-Z -s)-r[list only running jobs]' \ 9 | '(-Z -r)-s[list only stopped jobs]' \ 10 | '(-Z)*::job:_jobs' 11 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_limit: -------------------------------------------------------------------------------- 1 | #compdef limit 2 | 3 | if ! ((CURRENT % 2)); then 4 | _limits 5 | elif [[ $PREFIX = u* ]]; then 6 | compadd unlimited 7 | else 8 | _message -e values "number and scaling factor" 9 | fi 10 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_mere: -------------------------------------------------------------------------------- 1 | #compdef mere 2 | 3 | _files -g '*.[1-9]([a-z]|)(-.) *.man(-.)' 4 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_precommand: -------------------------------------------------------------------------------- 1 | #compdef - nohup eval time rusage noglob nocorrect catchsegv aoss hilite eatmydata 2 | 3 | shift words 4 | (( CURRENT-- )) 5 | 6 | _normal -p $service 7 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_prompt: -------------------------------------------------------------------------------- 1 | #compdef prompt 2 | 3 | _arguments -s \ 4 | '-l[list themes]:*:' \ 5 | '-c[show selected theme]:*:' \ 6 | "-h[help]::prompt theme:($prompt_themes):*:" \ 7 | "-p[preview theme(s)]:*:prompt theme:($prompt_themes)" \ 8 | "-s[set and save theme]:prompt theme:($prompt_themes):*:" \ 9 | ":prompt theme:($prompt_themes)" 10 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_run-help: -------------------------------------------------------------------------------- 1 | #compdef run-help 2 | local d expl 3 | local HELPDIR=${HELPDIR:-@runhelpdir@} 4 | [[ -d $HELPDIR ]] && { 5 | d=($HELPDIR/*(:t)) 6 | (($#d)) && d+=('.' ':') && _wanted commands expl 'command' compadd -a d 7 | } || _man 8 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_sched: -------------------------------------------------------------------------------- 1 | #compdef sched 2 | 3 | local expl lines disp 4 | 5 | if [[ CURRENT -eq 2 ]]; then 6 | if compset -P -; then 7 | lines=(${(f)"$(sched)"}) 8 | if zstyle -T ":completion:${curcontext}:jobs" verbose; then 9 | disp=( -ld lines ) 10 | else 11 | disp=() 12 | fi 13 | [[ -z $lines ]] || _wanted jobs expl 'scheduled job' \ 14 | compadd "$disp[@]" - {1..$#lines} 15 | return 16 | else 17 | _message -e times 'time specification' 18 | return 1 19 | fi 20 | fi 21 | compset -n 3 && _normal 22 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_setopt: -------------------------------------------------------------------------------- 1 | #compdef setopt unsetopt 2 | 3 | local expl ret=1 4 | local -a onopts offopts 5 | onopts=( ${(k)_comp_caller_options[(R)on]} printexitvalue ) 6 | offopts=( ${(k)_comp_caller_options[(R)off]} printexitvalue ) 7 | typeset -U onopts offopts 8 | case $service in 9 | setopt) onopts=(no$onopts) ;; 10 | unsetopt) offopts=(no$offopts) ;; 11 | esac 12 | _wanted zsh-options expl 'zsh options (set)' \ 13 | compadd -J 'enabled options' -M 'M:_= M:{A-Z}={a-z}' -k - onopts && ret=0 14 | _wanted zsh-options expl 'zsh options (unset)' \ 15 | compadd -J 'disabled options' -M 'M:_= M:{A-Z}={a-z}' -k - offopts && ret=0 16 | 17 | return ret 18 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_source: -------------------------------------------------------------------------------- 1 | #compdef source . 2 | 3 | if [[ CURRENT -ge 3 ]]; then 4 | compset -n 2 5 | _normal 6 | else 7 | if [[ -prefix */ && ! -o pathdirs ]]; then 8 | _files 9 | elif [[ $service = . ]]; then 10 | _files -W path 11 | else 12 | _files -W "(. $path)" 13 | fi 14 | fi 15 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_strftime: -------------------------------------------------------------------------------- 1 | #compdef strftime 2 | 3 | local expl two='epoch time' 4 | 5 | if (( words[(I)-r] )); then 6 | two='date string' 7 | fi 8 | 9 | _arguments -S -A '-*' -s \ 10 | '-n[omit trailing newline]' \ 11 | '-q[run quietly]' \ 12 | '(3)-r[reverse lookup using strptime]' \ 13 | '-s+[assign result to parameter]:param:_parameters' \ 14 | '1:format: _date_formats zsh' \ 15 | "2:$two" \ 16 | '3:nanoseconds' \ 17 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_trap: -------------------------------------------------------------------------------- 1 | #compdef trap 2 | 3 | local expl 4 | 5 | if [[ CURRENT -eq 2 ]]; then 6 | compset -q 7 | _normal 8 | else 9 | _signals -a 10 | fi 11 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_ttyctl: -------------------------------------------------------------------------------- 1 | #compdef ttyctl 2 | 3 | _arguments '(-u)-f[freeze terminal settings]' \ 4 | '(-f)-u[unfreeze terminal settings]' 5 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_unhash: -------------------------------------------------------------------------------- 1 | #compdef unhash 2 | 3 | _arguments -s -S \ 4 | '(-a -f -s *)-d[remove named directories]:*:named directory:compadd -k nameddirs' \ 5 | '(-d -f -s *)-a[remove aliases]:*:alias:_aliases' \ 6 | '(-a -d -f *)-s[remove suffix aliases]:*:suffix alias:_aliases -s s' \ 7 | '(-d -a -s *)-f[remove functions]:*:shell function:_functions' \ 8 | '-m[treat arguments as patterns]' \ 9 | '(-a -d -f -m)*:command: _command_names -e' 10 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_vared: -------------------------------------------------------------------------------- 1 | #compdef vared 2 | 3 | _arguments -s -A "-*" \ 4 | '(-a)-A[edit associative array]' \ 5 | '(-A)-a[edit array parameter]' \ 6 | "-c[create parameter or change type]" \ 7 | '-p+[specify left prompt]:prompt' \ 8 | '-r+[specify right prompt]:right prompt' \ 9 | '-i+[specify initialisation widget]:widget:_widgets' \ 10 | '-f+[specify finish widget]:widget:_widgets' \ 11 | '-h[allow access to history]' \ 12 | '-e[exit on EOF (^D)]' \ 13 | '-M+[specify keymap to link to main]:keymap:compadd -a keymaps' \ 14 | '-m+[specify keymap to link to vicmd]:keymap:compadd -a keymaps' \ 15 | '1:parameter spec:_vars' 16 | 17 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_wait: -------------------------------------------------------------------------------- 1 | #compdef wait 2 | 3 | _alternative 'processes:: _pids' 'jobs:: _jobs -t' 4 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_zed: -------------------------------------------------------------------------------- 1 | #compdef zed fned histed 2 | 3 | case $service in 4 | (fned) _arguments -S : ':shell function:_functions';; 5 | (histed) _arguments -S : \ 6 | '1:history file:_files' \ 7 | '2:history size: ';; 8 | (zed) _arguments -S : \ 9 | '(-h 1 3 4)-f[edit function]' \ 10 | '(-h 1 3 4)-x+[specify spaces to use for indentation in function expansion]:spaces' \ 11 | '(-f -x 1 2)-h[edit history]' \ 12 | '(- 2 3 4)1:file:_files' \ 13 | '(3 4)2:shell function:_functions' \ 14 | '3:history file:_files -g "*(D)"' \ 15 | '4:history size';; 16 | esac 17 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_zsocket: -------------------------------------------------------------------------------- 1 | #compdef zsocket 2 | 3 | _arguments -s -w -A "-*" \ 4 | '-v[verbose output]' \ 5 | '-d[target file descriptor]:fd:_file_descriptors' \ 6 | - outbound \ 7 | '1: :_files' \ 8 | - listen \ 9 | '-l[open a socket listening]' \ 10 | '1: :_files' \ 11 | - accept \ 12 | '-a[accept an incoming connection]' \ 13 | '-t[return if no incoming connections are pending]' \ 14 | '1:fd:{ (( words[(I)-*a*] )) && _file_descriptors }' 15 | -------------------------------------------------------------------------------- /Completion/Zsh/Command/_ztodo: -------------------------------------------------------------------------------- 1 | #compdef ztodo 2 | 3 | _ztodo_entries() { 4 | local -a entries 5 | 6 | entries=(${${${${(f)"$(_call_program ztodo-entry ztodo list)"}#[[:space:]]##}/:[[:space:]]##/:}%:[[:space:]]#}) 7 | _describe -t ztodo-entry 'todo entry' entries "$@" 8 | } 9 | 10 | local -a args reply 11 | args=( 12 | /$'[^\0]#\0'/ 13 | ) 14 | 15 | local -a todo_entry 16 | todo_entry=( 17 | /$'[^\0]#\0'/ ':ztodo-entry:todo entry:_ztodo_entries' 18 | ) 19 | 20 | _regex_words \ 21 | commands "ztodo command" \ 22 | 'add:add entry' \ 23 | 'del:delete entry:$todo_entry' \ 24 | 'clear:clear todo list' \ 25 | 'list:show todo list' 26 | args+=("$reply[@]") 27 | 28 | _regex_arguments _ztodo "${args[@]}" 29 | 30 | _ztodo "$@" 31 | -------------------------------------------------------------------------------- /Completion/Zsh/Context/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Zsh/Context/_assign: -------------------------------------------------------------------------------- 1 | #compdef -assign-parameter- 2 | 3 | _parameters -g "^*readonly*" -S '' 4 | -------------------------------------------------------------------------------- /Completion/Zsh/Context/_autocd: -------------------------------------------------------------------------------- 1 | #compdef -command- 2 | 3 | _command_names 4 | local ret=$? 5 | [[ -o autocd ]] && _cd || return ret 6 | -------------------------------------------------------------------------------- /Completion/Zsh/Context/_dynamic_directory_name: -------------------------------------------------------------------------------- 1 | #autoload 2 | local -a dirfuncs=( 3 | ${(k)functions[zsh_directory_name]} 4 | $zsh_directory_name_functions 5 | ) 6 | local descr='dynamically named directory' 7 | 8 | if (( $#dirfuncs )); then 9 | local -a expl 10 | local -i ret 11 | local func suf tag=dynamically-named-directories 12 | 13 | [[ $ISUFFIX != \]* ]] && 14 | suf=-S] 15 | 16 | _tags "$tag" 17 | while _tags; do 18 | while _next_label "$tag" expl "$descr" $suf; do 19 | for func in $dirfuncs; do 20 | $func c && ret=0 21 | done 22 | done 23 | (( ret )) || break 24 | done 25 | return ret 26 | 27 | else 28 | _message "${descr}: implement as zsh_directory_name c" 29 | fi 30 | -------------------------------------------------------------------------------- /Completion/Zsh/Context/_equal: -------------------------------------------------------------------------------- 1 | #compdef -equal- 2 | 3 | local -a match mbegin mend 4 | 5 | if _have_glob_qual $PREFIX; then 6 | compset -p ${#match[1]} 7 | compset -S '[^\)\|\~]#(|\))' 8 | _globquals 9 | else 10 | _path_commands 11 | fi 12 | -------------------------------------------------------------------------------- /Completion/Zsh/Context/_math: -------------------------------------------------------------------------------- 1 | #compdef -math- let 2 | 3 | if [[ "$PREFIX" = *[^a-zA-Z0-9_]* ]]; then 4 | IPREFIX="$IPREFIX${PREFIX%%[a-zA-Z0-9_]#}" 5 | PREFIX="${PREFIX##*[^a-zA-Z0-9_]}" 6 | fi 7 | if [[ "$SUFFIX" = *[^a-zA-Z0-9_]* ]]; then 8 | ISUFFIX="${SUFFIX##[a-zA-Z0-9_]#}$ISUFFIX" 9 | SUFFIX="${SUFFIX%%[^a-zA-Z0-9_]*}" 10 | fi 11 | 12 | _alternative 'math-parameters:math parameter: _math_params' \ 13 | 'user-math-functions:user math function: _user_math_func' \ 14 | 'module-math-functions:math function from zsh/mathfunc: _module_math_func' 15 | -------------------------------------------------------------------------------- /Completion/Zsh/Context/_parameter: -------------------------------------------------------------------------------- 1 | #compdef -parameter- 2 | 3 | if compset -P '*:'; then 4 | _history_modifiers p 5 | return 6 | fi 7 | 8 | _parameters -e 9 | -------------------------------------------------------------------------------- /Completion/Zsh/Context/_redirect: -------------------------------------------------------------------------------- 1 | #compdef -redirect- 2 | 3 | local strs _comp_command1 _comp_command2 _comp_command 4 | 5 | _set_command 6 | 7 | strs=( -default- ) 8 | 9 | if [[ "$CURRENT" != "1" ]]; then 10 | strs=( "${_comp_command}" "$strs[@]" ) 11 | if [[ -n "$_comp_command1" ]]; then 12 | strs=( "${_comp_command1}" "$strs[@]" ) 13 | [[ -n "$_comp_command2" ]] && 14 | strs=( "${_comp_command2}" "$strs[@]" ) 15 | fi 16 | fi 17 | 18 | _dispatch -redirect-,${compstate[redirect]},$_comp_command \ 19 | -redirect-,{${compstate[redirect]},-default-},${^strs} 20 | -------------------------------------------------------------------------------- /Completion/Zsh/Function/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Zsh/Function/_zcalc: -------------------------------------------------------------------------------- 1 | #compdef zcalc 2 | 3 | _arguments -s -w -S : \ 4 | '-#[specify default base]:base: ' \ 5 | '-f[force floating point for all expressions]' \ 6 | '-e[treat command line as expressions to be output immediately]' \ 7 | '*:expression: ' 8 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_arrays: -------------------------------------------------------------------------------- 1 | #compdef shift 2 | 3 | local expl 4 | 5 | _wanted arrays expl array _parameters "$@" -g '*array*' 6 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_completers: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | # option: -p - needs a `_' prefix 4 | local us 5 | local -a disp list expl 6 | 7 | list=( complete approximate correct match expand list menu oldlist 8 | ignored prefix history ) 9 | zparseopts -D -K -E 'p=us' 10 | [[ -n "$us" ]] && us='_' 11 | zstyle -t ":completion:${curcontext}:completers" prefix-hidden && 12 | disp=(-d list) 13 | _wanted completers expl 'completer' \ 14 | compadd "$@" "$disp[@]" - "$us${^list[@]}" 15 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_delimiters: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | # Simple function to offer delimiters for modifiers and qualifiers. 4 | # Single argument is tag to use. 5 | 6 | local expl 7 | local -a list 8 | 9 | zstyle -a ":completion:${curcontext}:$1" delimiters list || 10 | list=(: + / - %) 11 | 12 | if (( ${#list} )); then 13 | _wanted delimiters expl delimiter compadd -S '' -a list 14 | else 15 | _message delimiter 16 | fi 17 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_functions: -------------------------------------------------------------------------------- 1 | #compdef unfunction 2 | 3 | local expl ffilt 4 | 5 | zstyle -t ":completion:${curcontext}:functions" prefix-needed && \ 6 | [[ $PREFIX != [_.]* ]] && \ 7 | ffilt='[(I)[^_.]*]' 8 | 9 | _wanted functions expl 'shell function' compadd -k "$@" - "functions$ffilt" 10 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_globqual_delims: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | # Helper for _globquals. Sets delim to delimiter to match. 4 | 5 | # don't restore special parameters 6 | compstate[restore]=no 7 | 8 | delim=$PREFIX[1] 9 | compset -p 1 10 | 11 | # One of matching brackets? 12 | # These don't actually work: the parser gets very confused. 13 | local matchl="<({[" matchr=">)}]" 14 | integer ind=${matchl[(I)$delim]} 15 | 16 | (( ind )) && delim=$matchr[ind] 17 | 18 | if compset -P "[^$delim]#$delim"; then 19 | # Completely matched. 20 | return 0 21 | else 22 | # Still in delimiter 23 | return 1 24 | fi 25 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_jobs_bg: -------------------------------------------------------------------------------- 1 | #compdef bg 2 | 3 | _jobs -s "$@" 4 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_jobs_fg: -------------------------------------------------------------------------------- 1 | #compdef disown fg 2 | 3 | _jobs "$@" 4 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_limits: -------------------------------------------------------------------------------- 1 | #compdef unlimit 2 | 3 | local expl 4 | 5 | _wanted limits expl 'process limit' compadd "$@" - ${${(f)"$(limit)"}%% *} 6 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_math_params: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | _parameters -g '(integer|float)*' || _parameters 4 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_module_math_func: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local mod 4 | local -a funcs alts 5 | local -a modules=( example mathfunc system random ) 6 | 7 | for mod in $modules; do 8 | funcs=( ${${${(f)"$(zmodload -Fl zsh/$mod 2>/dev/null)"}:#^+f:*}##+f:} ) 9 | alts+=( "module-math-functions.${mod}:math function from zsh/${mod}:compadd -S '(' $funcs" ) 10 | done 11 | 12 | _alternative $alts 13 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_options: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | # This should be used to complete all option names. 4 | 5 | local expl 6 | 7 | _wanted zsh-options expl 'zsh option' \ 8 | compadd "$@" -M 'B:[nN][oO]= M:_= M:{A-Z}={a-z}' -k - options 9 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_options_set: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | # Complete all set options. This relies on `_main_complete' to store the 4 | # names of the options that were set when it was called in the array 5 | # `_options_set'. 6 | 7 | local expl 8 | 9 | _wanted zsh-options expl 'set zsh option' \ 10 | compadd "$@" -M 'B:[nN][oO]= M:_= M:{A-Z}={a-z}' -a - _options_set 11 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_options_unset: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | # Complete all unset options. This relies on `_main_complete' to store the 4 | # names of the options that were unset when it was called in the array 5 | # `_options_unset'. 6 | 7 | local expl 8 | 9 | _wanted zsh-options expl 'unset zsh option' \ 10 | compadd "$@" -M 'B:[nN][oO]= M:_= M:{A-Z}={a-z}' -a - _options_unset 11 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_suffix_alias_files: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | # Complete files for which a suffix alias exists. 4 | 5 | local expl pat 6 | 7 | (( ${#saliases} )) || return 1 8 | 9 | if (( ${#saliases} == 1 )); then 10 | pat="*.${(kq)saliases}" 11 | else 12 | local -a tmpa 13 | # This is so we can quote the alias names against expansion 14 | # without quoting the `|' which needs to be active in the pattern 15 | # --- remember that an alias name can be pretty much anything. 16 | tmpa=(${(kq)saliases}) 17 | pat="*.(${(kj.|.)tmpa})" 18 | fi 19 | [[ -o autocd ]] || pat+='(#q^/)' 20 | 21 | # _wanted is called for us by _command_names 22 | _path_files "$@" -g $pat 23 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_user_math_func: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl 4 | local -a funcs 5 | 6 | funcs=(${${${(f)"$(functions -M)"}##functions -M }%% *}) 7 | 8 | _wanted user-math-functions expl 'user math function' \ 9 | compadd -S '(' -q "$@" -a funcs 10 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_vars: -------------------------------------------------------------------------------- 1 | #compdef getopts unset 2 | 3 | # This will handle completion of keys of associative arrays, e.g. at 4 | # `vared foo[' could complete to `vared foo[key]'. 5 | 6 | local ret=1 7 | 8 | if [[ $PREFIX = *\[* ]]; then 9 | compstate[parameter]=${PREFIX%%(|\\)\[*} 10 | 11 | IPREFIX=${PREFIX%%\[*}\[ 12 | PREFIX=${PREFIX#*\[} 13 | 14 | _subscript -q 15 | else 16 | _parameters -g '^a*' "$@" && ret=0 17 | 18 | if compset -S '\[*'; then 19 | set - -S "" "$@" 20 | else 21 | set - -qS"${${QIPREFIX:+[}:-\[}" "$@" 22 | fi 23 | _parameters -g 'a*' "$@" && ret=0 24 | return ret 25 | fi 26 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_vcs_info_hooks: -------------------------------------------------------------------------------- 1 | #autoload 2 | compadd - ${functions[(I)+vi-*]#+vi-} 3 | -------------------------------------------------------------------------------- /Completion/Zsh/Type/_widgets: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | local expl pattern 4 | 5 | pattern=( -g \* ) 6 | zparseopts -D -K -E g:=pattern 7 | 8 | _description widgets expl widget 9 | compadd "$@" "$expl[@]" -M 'r:|-=* r:|=*' - "${(@k)widgets[(R)${pattern[2]}]}" 10 | -------------------------------------------------------------------------------- /Completion/openSUSE/Command/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Completion/openSUSE/Command/_SUSEconfig: -------------------------------------------------------------------------------- 1 | #compdef SuSEconfig 2 | 3 | local modules 4 | modules=( /sbin/conf.d/SuSEconfig.*~(*.rpm*|*.swap|*.bak|*.orig|*~|\#*)(N:e) ) 5 | 6 | _arguments \ 7 | '--help' \ 8 | '--quick' \ 9 | '--force' \ 10 | '--verbose' \ 11 | '--nonewpackage' \ 12 | '-norestarts' \ 13 | '-nomodule' \ 14 | '--module:module:compadd -a modules' 15 | -------------------------------------------------------------------------------- /Completion/openSUSE/Command/_yast: -------------------------------------------------------------------------------- 1 | #compdef yast yast2 2 | 3 | _arguments \ 4 | '(- 1)'{-h,--help}'[display help information]' \ 5 | '(- 1)'{-l,--list}'[list all available modules]' \ 6 | '(-g --geometry --ncurses)'{-g,--geometry}'[specify default window size]:_x_geometry' \ 7 | '--qt[use the QT graphical frontend]' \ 8 | '--gtk[use the GTK graphical frontend]' \ 9 | '--ncurses[use the curses text-mode frontend]' \ 10 | '--noborder[no window manager border for main window]' \ 11 | '--fullscreen[use full screen]' \ 12 | '(-)'{-i,--install}'[install package]:*:package file:_files -g "*.rpm(-.)"' \ 13 | '(-)--remove[remove package]:*:package' \ 14 | '1:module:( ${${(f)"$($words[1] -l 2>/dev/null)"}[2,-1]##* } )' 15 | -------------------------------------------------------------------------------- /Config/.cvsignore: -------------------------------------------------------------------------------- 1 | defs.mk 2 | *.swp 3 | -------------------------------------------------------------------------------- /Config/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Config/aczshoot.m4: -------------------------------------------------------------------------------- 1 | AC_DEFUN([zsh_OOT], 2 | [ 3 | AC_CHECK_HEADERS(stdarg.h varargs.h termios.h termio.h) 4 | 5 | AC_TYPE_SIGNAL 6 | 7 | AC_DEFINE([ZSH_OOT_MODULE], [], [Out-of-tree module]) 8 | ]) 9 | -------------------------------------------------------------------------------- /Doc/.cvsignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | help.txt 3 | version.yo 4 | zsh*.1 5 | zsh.texi 6 | zsh.info* 7 | *.html 8 | zsh.aux zsh.toc 9 | zsh.cp zsh.cps 10 | zsh.fn zsh.fns 11 | zsh.ky zsh.kys 12 | zsh.pg zsh.pgs 13 | zsh.vr zsh.vrs 14 | zsh.log zsh.dvi 15 | zsh.tp zsh.tps 16 | zsh.idx 17 | zsh_*.ps 18 | infodir 19 | *.swp 20 | zsh.pdf zsh_a4.pdf zsh_us.pdf 21 | -------------------------------------------------------------------------------- /Doc/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | version.yo 3 | zsh.texi 4 | zsh.1 zshbuiltins.1 zshcalsys.1 5 | zshcompctl.1 zshcompsys.1 zshcompwid.1 zshexpn.1 6 | zshmisc.1 zshmodules.1 zshoptions.1 zshparam.1 zshroadmap.1 7 | zshzle.1 zshall.1 zshzftpsys.1 zshcontrib.1 zshtcpsys.1 8 | help.txt 9 | ' 10 | 11 | DISTFILES_DOC=' 12 | zsh.info zsh.info-[0-9]* 13 | *.html 14 | zsh.dvi 15 | zsh.pdf 16 | intro.a4.pdf intro.us.pdf 17 | ' 18 | -------------------------------------------------------------------------------- /Doc/Zsh/.cvsignore: -------------------------------------------------------------------------------- 1 | modlist.yo 2 | modmenu.yo 3 | manmodmenu.yo 4 | *.swp 5 | -------------------------------------------------------------------------------- /Doc/Zsh/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | manmodmenu.yo 3 | modlist.yo 4 | modmenu.yo 5 | ' 6 | -------------------------------------------------------------------------------- /Doc/Zsh/.vimrc: -------------------------------------------------------------------------------- 1 | augroup filetypedetect 2 | autocmd BufRead,BufNewFile **/Doc/Zsh/*.yo set ft=zyodl | source :h:h:h/Util/zyodl.vim 3 | "autocmd BufRead,BufNewFile **/Etc/FAQ.yo set ft=zyodl | source :h:h:h/Util/zyodl.vim 4 | augroup END 5 | -------------------------------------------------------------------------------- /Doc/Zsh/filelist.yo: -------------------------------------------------------------------------------- 1 | sect(Files) 2 | cindex(files used) 3 | startlist() 4 | list(tt($ZDOTDIR/.zshenv)) 5 | list(tt($ZDOTDIR/.zprofile)) 6 | list(tt($ZDOTDIR/.zshrc)) 7 | list(tt($ZDOTDIR/.zlogin)) 8 | list(tt($ZDOTDIR/.zlogout)) 9 | list(tt(${TMPPREFIX}*) (default is /tmp/zsh*)) 10 | list(tt(zshenv())) 11 | list(tt(zprofile())) 12 | list(tt(zshrc())) 13 | list(tt(zlogin())) 14 | list(tt(zlogout()) (installation-specific - tt(/etc) is the default)) 15 | endlist() 16 | -------------------------------------------------------------------------------- /Doc/Zsh/mod_compctl.yo: -------------------------------------------------------------------------------- 1 | COMMENT(!MOD!zsh/compctl 2 | The tt(compctl) builtin for controlling completion. 3 | !MOD!) 4 | The tt(zsh/compctl) module makes available two builtin commands. tt(compctl), 5 | is the old, deprecated way to control completions for ZLE. See 6 | ifzman(zmanref(zshcompctl))\ 7 | ifnzman(noderef(Completion Using compctl))\ 8 | . 9 | The other builtin command, tt(compcall) can be used in user-defined 10 | completion widgets, see 11 | ifzman(zmanref(zshcompwid))\ 12 | ifnzman(noderef(Completion Widgets))\ 13 | . 14 | -------------------------------------------------------------------------------- /Doc/Zsh/mod_complete.yo: -------------------------------------------------------------------------------- 1 | COMMENT(!MOD!zsh/complete 2 | The basic completion code. 3 | !MOD!) 4 | The tt(zsh/complete) module makes available several builtin commands which 5 | can be used in user-defined completion widgets, see 6 | ifzman(zmanref(zshcompwid))\ 7 | ifnzman(noderef(Completion Widgets))\ 8 | . 9 | -------------------------------------------------------------------------------- /Doc/Zsh/mod_deltochar.yo: -------------------------------------------------------------------------------- 1 | COMMENT(!MOD!zsh/deltochar 2 | A ZLE function duplicating EMACS' tt(zap-to-char). 3 | !MOD!) 4 | The tt(zsh/deltochar) module makes available two ZLE functions: 5 | 6 | startitem() 7 | tindex(delete-to-char) 8 | item(tt(delete-to-char))( 9 | Read a character from the keyboard, and 10 | delete from the cursor position up to and including the next 11 | (or, with repeat count var(n), the var(n)th) instance of that character. 12 | Negative repeat counts mean delete backwards. 13 | ) 14 | tindex(zap-to-char) 15 | item(tt(zap-to-char))( 16 | This behaves like tt(delete-to-char), except that the final occurrence of 17 | the character itself is not deleted. 18 | ) 19 | enditem() 20 | -------------------------------------------------------------------------------- /Doc/Zsh/mod_example.yo: -------------------------------------------------------------------------------- 1 | COMMENT(!MOD!zsh/example 2 | An example of how to write a module. 3 | !MOD!) 4 | The tt(zsh/example) module makes available one builtin command: 5 | 6 | startitem() 7 | findex(example) 8 | cindex(modules, example) 9 | cindex(modules, writing) 10 | cindex(writing modules) 11 | item(tt(example) [ tt(-flags) ] [ var(args) ... ])( 12 | Displays the flags and arguments it is invoked with. 13 | ) 14 | enditem() 15 | 16 | The purpose of the module is to serve as an example of how to write a 17 | module. 18 | -------------------------------------------------------------------------------- /Doc/Zsh/mod_termcap.yo: -------------------------------------------------------------------------------- 1 | COMMENT(!MOD!zsh/termcap 2 | Interface to the termcap database. 3 | !MOD!) 4 | The tt(zsh/termcap) module makes available one builtin command: 5 | 6 | startitem() 7 | findex(echotc) 8 | cindex(termcap value, printing) 9 | item(tt(echotc) var(cap) [ var(arg) ... ])( 10 | Output the termcap value corresponding to the capability 11 | var(cap), with optional arguments. 12 | ) 13 | enditem() 14 | 15 | The tt(zsh/termcap) module makes available one parameter: 16 | 17 | startitem() 18 | vindex(termcap) 19 | item(tt(termcap))( 20 | An associative array that maps termcap capability codes to 21 | their values. 22 | ) 23 | enditem() 24 | -------------------------------------------------------------------------------- /Doc/Zsh/mod_terminfo.yo: -------------------------------------------------------------------------------- 1 | COMMENT(!MOD!zsh/terminfo 2 | Interface to the terminfo database. 3 | !MOD!) 4 | The tt(zsh/terminfo) module makes available one builtin command: 5 | 6 | startitem() 7 | findex(echoti) 8 | cindex(terminfo value, printing) 9 | item(tt(echoti) var(cap) [ var(arg) ])( 10 | Output the terminfo value corresponding to the capability 11 | var(cap), instantiated with var(arg) if applicable. 12 | ) 13 | enditem() 14 | 15 | The tt(zsh/terminfo) module makes available one parameter: 16 | 17 | startitem() 18 | vindex(terminfo) 19 | item(tt(terminfo))( 20 | An associative array that maps terminfo capability names to 21 | their values. 22 | ) 23 | enditem() 24 | -------------------------------------------------------------------------------- /Doc/Zsh/mod_zle.yo: -------------------------------------------------------------------------------- 1 | COMMENT(!MOD!zsh/zle 2 | The Zsh Line Editor, including the tt(bindkey) and tt(vared) builtins. 3 | !MOD!) 4 | The tt(zsh/zle) module contains the Zsh Line Editor. See 5 | ifzman(zmanref(zshzle))\ 6 | ifnzman(noderef(Zsh Line Editor))\ 7 | . 8 | -------------------------------------------------------------------------------- /Doc/Zsh/modules.yo: -------------------------------------------------------------------------------- 1 | texinode(Zsh Modules)(Calendar Function System)(Completion Using compctl)(Top) 2 | chapter(Zsh Modules) 3 | cindex(modules) 4 | sect(Description) 5 | Some optional parts of zsh are in modules, separate from the core 6 | of the shell. Each of these modules may be linked in to the 7 | shell at build time, 8 | or can be dynamically linked while the shell is running 9 | if the installation supports this feature. 10 | Modules are linked at runtime with the tt(zmodload) command, 11 | see ifzman(zmanref(zshbuiltins))\ 12 | ifnzman(noderef(Shell Builtin Commands)). 13 | 14 | The modules that are bundled with the zsh distribution are: 15 | 16 | includefile(Zsh/modlist.yo) 17 | -------------------------------------------------------------------------------- /Doc/help/.cvsignore: -------------------------------------------------------------------------------- 1 | [_a-zA-Z0-9]* 2 | -------------------------------------------------------------------------------- /Doc/help/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | [_a-zA-Z0-9]* 3 | ' 4 | -------------------------------------------------------------------------------- /Doc/zshbuiltins.yo: -------------------------------------------------------------------------------- 1 | manpage(ZSHBUILTINS)(1)(date())(zsh version()) 2 | manpagename(zshbuiltins)(zsh built-in commands) 3 | includefile(Zsh/builtins.yo) 4 | -------------------------------------------------------------------------------- /Doc/zshcalsys.yo: -------------------------------------------------------------------------------- 1 | manpage(ZSHCALSYS)(1)(date())(zsh version()) 2 | manpagename(zshcalsys)(zsh calendar system) 3 | includefile(Zsh/calsys.yo) 4 | -------------------------------------------------------------------------------- /Doc/zshcompctl.yo: -------------------------------------------------------------------------------- 1 | manpage(ZSHCOMPCTL)(1)(date())(zsh version()) 2 | manpagename(zshcompctl)(zsh programmable completion) 3 | includefile(Zsh/compctl.yo) 4 | -------------------------------------------------------------------------------- /Doc/zshcompsys.yo: -------------------------------------------------------------------------------- 1 | manpage(ZSHCOMPSYS)(1)(date())(zsh version()) 2 | manpagename(zshcompsys)(zsh completion system) 3 | includefile(Zsh/compsys.yo) 4 | -------------------------------------------------------------------------------- /Doc/zshcompwid.yo: -------------------------------------------------------------------------------- 1 | manpage(ZSHCOMPWID)(1)(date())(zsh version()) 2 | manpagename(zshcompwid)(zsh completion widgets) 3 | includefile(Zsh/compwid.yo) 4 | -------------------------------------------------------------------------------- /Doc/zshcontrib.yo: -------------------------------------------------------------------------------- 1 | manpage(ZSHCONTRIB)(1)(date())(zsh version()) 2 | manpagename(zshcontrib)(user contributions to zsh) 3 | includefile(Zsh/contrib.yo) 4 | -------------------------------------------------------------------------------- /Doc/zshexpn.yo: -------------------------------------------------------------------------------- 1 | manpage(ZSHEXPN)(1)(date())(zsh version()) 2 | manpagename(zshexpn)(zsh expansion and substitution) 3 | includefile(Zsh/expn.yo) 4 | -------------------------------------------------------------------------------- /Doc/zshmisc.yo: -------------------------------------------------------------------------------- 1 | manpage(ZSHMISC)(1)(date())(zsh version()) 2 | manpagename(zshmisc)(everything and then some) 3 | includefile(Zsh/grammar.yo) 4 | includefile(Zsh/redirect.yo) 5 | includefile(Zsh/exec.yo) 6 | includefile(Zsh/func.yo) 7 | includefile(Zsh/jobs.yo) 8 | includefile(Zsh/arith.yo) 9 | includefile(Zsh/cond.yo) 10 | includefile(Zsh/prompt.yo) 11 | -------------------------------------------------------------------------------- /Doc/zshmodules.yo: -------------------------------------------------------------------------------- 1 | manpage(ZSHMODULES)(1)(date())(zsh version()) 2 | manpagename(zshmodules)(zsh loadable modules) 3 | includefile(Zsh/modules.yo) 4 | -------------------------------------------------------------------------------- /Doc/zshoptions.yo: -------------------------------------------------------------------------------- 1 | manpage(ZSHOPTIONS)(1)(date())(zsh version()) 2 | manpagename(zshoptions)(zsh options) 3 | includefile(Zsh/options.yo) 4 | -------------------------------------------------------------------------------- /Doc/zshparam.yo: -------------------------------------------------------------------------------- 1 | manpage(ZSHPARAM)(1)(date())(zsh version()) 2 | manpagename(zshparam)(zsh parameters) 3 | includefile(Zsh/params.yo) 4 | -------------------------------------------------------------------------------- /Doc/zshroadmap.yo: -------------------------------------------------------------------------------- 1 | manpage(ZSHROADMAP)(1)(date())(zsh version()) 2 | manpagename(zshroadmap)(informal introduction to the zsh manual) 3 | includefile(Zsh/roadmap.yo) 4 | -------------------------------------------------------------------------------- /Doc/zshtcpsys.yo: -------------------------------------------------------------------------------- 1 | manpage(ZSHTCPSYS)(1)(date())(zsh version()) 2 | manpagename(zshtcpsys)(zsh tcp system) 3 | includefile(Zsh/tcpsys.yo) 4 | -------------------------------------------------------------------------------- /Doc/zshzftpsys.yo: -------------------------------------------------------------------------------- 1 | manpage(ZSHZFTPSYS)(1)(date())(zsh version()) 2 | manpagename(zshzftpsys)(zftp function front-end) 3 | includefile(Zsh/zftpsys.yo) 4 | -------------------------------------------------------------------------------- /Doc/zshzle.yo: -------------------------------------------------------------------------------- 1 | manpage(ZSHZLE)(1)(date())(zsh version()) 2 | manpagename(zshzle)(zsh command line editor) 3 | includefile(Zsh/zle.yo) 4 | -------------------------------------------------------------------------------- /Etc/.cvsignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | FAQ 3 | FAQ.html 4 | *.swp 5 | -------------------------------------------------------------------------------- /Etc/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | FAQ 3 | ' 4 | 5 | DISTFILES_DOC=' 6 | FAQ*.html 7 | ' 8 | -------------------------------------------------------------------------------- /Etc/.gitignore: -------------------------------------------------------------------------------- 1 | FAQ*.html 2 | -------------------------------------------------------------------------------- /Etc/TODO: -------------------------------------------------------------------------------- 1 | This file describes features to be implemented in the future. 2 | 3 | * support for multibyte characters, including UTF-8 4 | 5 | * programmable spell-correction 6 | -------------------------------------------------------------------------------- /Etc/relnote_4.3.10.txt: -------------------------------------------------------------------------------- 1 | Versions 4.3.10 largely contains bugfixes with a few minor additions. 2 | 3 | See the NEWS file for more detailed information. 4 | 5 | -------------------------------------------------------------------------------- /Etc/relnote_4.3.12.txt: -------------------------------------------------------------------------------- 1 | Versions 4.3.12 largely contains bugfixes with a few minor additions. 2 | 3 | See the NEWS file for more detailed information. 4 | -------------------------------------------------------------------------------- /Etc/relnote_4.3.7.txt: -------------------------------------------------------------------------------- 1 | Version 4.3.7 was not widely released owing to a bug. See 2 | the release notes for 4.3.9. 3 | -------------------------------------------------------------------------------- /Etc/relnote_4.3.8.txt: -------------------------------------------------------------------------------- 1 | Version 4.3.8 was not widely released owing to a bug. See 2 | the release notes for 4.3.9. 3 | -------------------------------------------------------------------------------- /Etc/relnote_5.0.0.txt: -------------------------------------------------------------------------------- 1 | Version 5.0.0 of zsh is the new stable release. There are many changes 2 | since the last stable release series, 4.2, of which the most important 3 | is handling of multibyte characters. The file NEWS in the distribution 4 | gives more information. The file README details some incompatibilities 5 | with previous versions, mostly minor. 6 | 7 | Users of the development release series will not see major changes since 8 | the previous release, 4.3.17. 9 | -------------------------------------------------------------------------------- /Functions/.cvsignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | *.swp 3 | -------------------------------------------------------------------------------- /Functions/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Functions/Calendar/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Functions/Chpwd/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Functions/Chpwd/chpwd_recent_add: -------------------------------------------------------------------------------- 1 | # Helper for chpwd_recent_dirs. 2 | # Add a directory to the reply array unless we're skipping it. 3 | # If skipping, return non-zero status. 4 | 5 | local pat 6 | local add=$1 7 | local -a prune patterns 8 | 9 | zstyle -a ':chpwd:' recent-dirs-prune prune 10 | if (( ${#prune} )); then 11 | patterns=(${${prune:#^pattern:*}##pattern:}) 12 | fi 13 | 14 | for pat in $patterns; do 15 | if [[ $add =~ ${~pat} ]]; then 16 | return 1 17 | fi 18 | done 19 | 20 | if [[ ${prune[(I)parent]} -ne 0 && $add = $reply[1]/* ]]; then 21 | # replace 22 | reply=($reply[2,-1]) 23 | fi 24 | reply=($add $reply) 25 | -------------------------------------------------------------------------------- /Functions/Chpwd/zsh_directory_name_cdr: -------------------------------------------------------------------------------- 1 | if [[ $1 = n ]]; then 2 | if [[ $2 = <-> ]]; then 3 | # Recent directory 4 | autoload -Uz cdr 5 | cdr -r 6 | if [[ -n ${reply[$2]} ]]; then 7 | typeset -ga reply=(${reply[$2]}) 8 | return 0 9 | else 10 | typeset -ga reply=() 11 | return 1 12 | fi 13 | fi 14 | elif [[ $1 = c ]]; then 15 | if [[ $PREFIX = <-> || -z $PREFIX ]]; then 16 | typeset -a keys values 17 | values=(${${(f)"$(cdr -l)"}/ ##/:}) 18 | keys=(${values%%:*}) 19 | local addsuffix 20 | [[ $ISUFFIX = *\]* ]] || addsuffix='-S]' 21 | _describe -t dir-index 'recent directory index' \ 22 | values -V unsorted $addsuffix 23 | return 24 | fi 25 | fi 26 | return 1 27 | -------------------------------------------------------------------------------- /Functions/Compctl/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Functions/Compctl/cdmatch2: -------------------------------------------------------------------------------- 1 | # This function should be called from compctl to complete the 2 | # second argument of cd and pushd. 3 | 4 | emulate -R zsh # Requires zsh 3.0-pre4 or later 5 | setopt localoptions extendedglob 6 | local from 7 | 8 | read -Ac from 9 | from="${from[2]}" 10 | 11 | eval "reply=( \${PWD:s@$from@$1*$2@}~$PWD(ND-/:) )" 12 | reply=( "${${reply[@]#${PWD%%$from*}}%${PWD#*$from}}" ) 13 | [[ ${#reply[(r),-1]} != 0 ]] && reply[(r)]="''" 14 | 15 | return 16 | -------------------------------------------------------------------------------- /Functions/Example/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Functions/Example/acx: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # zsh shell function to make its arguments 755 4 | # also works as an sh script 5 | # 6 | chmod 755 $* 7 | -------------------------------------------------------------------------------- /Functions/Example/cat: -------------------------------------------------------------------------------- 1 | #!/bin/zsh -f 2 | 3 | local file 4 | 5 | if ((! ARGC)) then 6 | set -- - 7 | fi 8 | 9 | for file 10 | do 11 | if [[ "$file" == - ]] then 12 | while read -u0ek 4096; do ; done 13 | else 14 | while read -u0ek 4096; do ; done < "$file" 15 | fi 16 | done 17 | -------------------------------------------------------------------------------- /Functions/Example/cx: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # 3 | # zsh shell function to make its arguments executable 4 | # also works as a sh script 5 | # 6 | chmod +x $* 7 | -------------------------------------------------------------------------------- /Functions/Example/proto: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | # generate prototypes, if your style is the same as mine 3 | for i 4 | do 5 | rm $i:r.pro 2>/dev/null 6 | grep -v '[{};:#]' $i | grep '^[A-Za-z]' | 7 | grep -v static | sed 's/$/;/' >! $i:r.pro 8 | done 9 | -------------------------------------------------------------------------------- /Functions/Example/pushd: -------------------------------------------------------------------------------- 1 | # pushd function to emulate the old zsh behaviour. With this function 2 | # pushd +/-n just lifts the selected element to the top of the stack 3 | # instead of just cycling the stack. 4 | 5 | local puid 6 | [[ -o pushdignoredups ]] && puid=1 7 | 8 | emulate -R zsh 9 | setopt localoptions 10 | 11 | if [[ ARGC -eq 1 && "$1" == [+-]<-> ]] then 12 | setopt pushdignoredups 13 | builtin pushd ~$1 14 | else 15 | [[ -n $puid ]] && setopt pushdignoredups 16 | builtin pushd "$@" 17 | fi 18 | -------------------------------------------------------------------------------- /Functions/Example/randline: -------------------------------------------------------------------------------- 1 | # get a random line from a file 2 | integer z="$(wc -l <$1)" 3 | sed -n $[RANDOM%z+1]p $1 4 | -------------------------------------------------------------------------------- /Functions/Example/yp: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | ypmatch $1 passwd 3 | -------------------------------------------------------------------------------- /Functions/Example/yu: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | ypmatch $1 passwd.byuid 3 | -------------------------------------------------------------------------------- /Functions/Example/zpgrep: -------------------------------------------------------------------------------- 1 | # Usage: zpgrep ... 2 | # 3 | 4 | zpgrep() { 5 | local file pattern ret 6 | 7 | pattern=$1 8 | shift 9 | ret=1 10 | 11 | if ((! ARGC)) then 12 | set -- - 13 | fi 14 | 15 | zmodload zsh/pcre || return 16 | pcre_compile -- "$pattern" 17 | pcre_study 18 | 19 | for file 20 | do 21 | if [[ "$file" == - ]] then 22 | while IFS= read -ru0 buf; do 23 | pcre_match -- "$buf" && ret=0 && print -r -- "$buf" 24 | done 25 | else 26 | while IFS= read -ru0 buf; do 27 | pcre_match -- "$buf" && ret=0 && print -r -- "$buf" 28 | done < "$file" 29 | fi 30 | done 31 | return "$ret" 32 | } 33 | -------------------------------------------------------------------------------- /Functions/Exceptions/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Functions/MIME/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Functions/MIME/zsh-mime-contexts: -------------------------------------------------------------------------------- 1 | # Helper for zsh-mime-handler. 2 | # 3 | # Pass in a zstyle option, a suffix, which might include multiple parts 4 | # (e.g. pdf.gz), plus remaining zstyle arguments plus arguments to zstyle. 5 | # Try to match the style starting with the longest possible suffix. 6 | 7 | local context suffix option 8 | 9 | option=$1 10 | shift 11 | suffix=$1 12 | shift 13 | 14 | while true; do 15 | context=":mime:.${suffix}:" 16 | zstyle $option $context "$@" && return 0 17 | if [[ $suffix = *.* ]]; then 18 | suffix=${suffix#*.} 19 | else 20 | break 21 | fi 22 | done 23 | 24 | return 1 25 | -------------------------------------------------------------------------------- /Functions/Math/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Functions/Misc/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Functions/Misc/harden: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # harden a link (convert it to a singly linked file) 3 | cp $1 $1.foo 4 | rm $1 5 | mv $1.foo $1 6 | 7 | -------------------------------------------------------------------------------- /Functions/Misc/mkshadow: -------------------------------------------------------------------------------- 1 | #autoload 2 | # Front-end to the completion helper _shadow for use outside completion. 3 | # This just forces proper autoload of _shadow/_unshadow and calls them. 4 | 5 | autoload _shadow 6 | mkshadow() { unset REPLY; _shadow "$@" } 7 | rmshadow() { unset REPLY; _unshadow } 8 | 9 | # Bootstrap because of autoload special case 10 | unset REPLY 11 | _shadow "$@" 12 | -------------------------------------------------------------------------------- /Functions/Misc/run-help-docker: -------------------------------------------------------------------------------- 1 | if [[ $# == 0 ]] 2 | then 3 | man docker 4 | elif [[ $# > 1 && $1 == (builder|checkpoint|config|container|context|image|manifest|network|node|plugin|secret|service|stack|swarm|system|trust|volume) ]] 5 | then 6 | man docker-$1-$2 7 | else 8 | man docker-$1 9 | fi 10 | -------------------------------------------------------------------------------- /Functions/Misc/run-help-git: -------------------------------------------------------------------------------- 1 | git help ${1:-git} 2 | -------------------------------------------------------------------------------- /Functions/Misc/run-help-openssl: -------------------------------------------------------------------------------- 1 | man openssl${1:+-$1} || man ${1:-openssl} 2 | -------------------------------------------------------------------------------- /Functions/Misc/run-help-p4: -------------------------------------------------------------------------------- 1 | if (( ! $# )); then 2 | p4 help commands 3 | else 4 | p4 help $1 5 | fi | ${=PAGER:-more} 6 | -------------------------------------------------------------------------------- /Functions/Misc/run-help-perf: -------------------------------------------------------------------------------- 1 | man perf${1:+-$1} 2 | -------------------------------------------------------------------------------- /Functions/Misc/run-help-podman: -------------------------------------------------------------------------------- 1 | if [[ $# == 0 ]] 2 | then 3 | man podman 4 | elif [[ $# > 1 && $1 == (container|generate|healthcheck|image|kube|machine|manifest|network|pod|secret|system|volume) ]] 5 | then 6 | man podman-$1-$2 7 | else 8 | man podman-$1 9 | fi 10 | -------------------------------------------------------------------------------- /Functions/Misc/run-help-ssh: -------------------------------------------------------------------------------- 1 | if [[ $# < 2 ]] 2 | then 3 | man ssh 4 | else 5 | run-help $2 6 | fi 7 | -------------------------------------------------------------------------------- /Functions/Misc/run-help-sudo: -------------------------------------------------------------------------------- 1 | 2 | if [ $# -eq 0 ]; then 3 | man sudo 4 | else 5 | run-help $1 6 | fi 7 | 8 | -------------------------------------------------------------------------------- /Functions/Misc/run-help-svn: -------------------------------------------------------------------------------- 1 | svn help $1 | ${=PAGER:-more} 2 | -------------------------------------------------------------------------------- /Functions/Misc/run-help-svnadmin: -------------------------------------------------------------------------------- 1 | svnadmin help $1 | ${=PAGER:-more} 2 | -------------------------------------------------------------------------------- /Functions/Newuser/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Functions/Prompts/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Functions/Prompts/prompt_default_setup: -------------------------------------------------------------------------------- 1 | PS1='%m%# ' 2 | PS2='%_> ' 3 | PS3='?# ' 4 | PS4='+%N:%i> ' 5 | unset RPS1 RPS2 RPROMPT RPROMPT2 6 | 7 | prompt_opts=( cr percent sp ) 8 | -------------------------------------------------------------------------------- /Functions/Prompts/prompt_off_setup: -------------------------------------------------------------------------------- 1 | # Very simple prompt 2 | 3 | prompt_default_setup 2>/dev/null 4 | 5 | PS1="%# " 6 | PS2="> " 7 | PS3='?# ' 8 | PS4='+> ' 9 | 10 | prompt_opts=( cr percent sp ) 11 | -------------------------------------------------------------------------------- /Functions/Prompts/prompt_redhat_setup: -------------------------------------------------------------------------------- 1 | # Converted to zsh prompt theme by bash2zshprompt, written by 2 | # Red Hat Default Prompt 3 | # Styled like the default prompt in Red Hat 5.1 4 | # 5 | prompt_redhat_setup () { 6 | PS1='[%n@%m %1~]%(#.#.$) ' 7 | PS2="> " 8 | 9 | prompt_opts=( cr percent ) 10 | } 11 | 12 | prompt_redhat_setup "$@" 13 | -------------------------------------------------------------------------------- /Functions/Prompts/prompt_restore_setup: -------------------------------------------------------------------------------- 1 | prompt_restore_setup () { 2 | # Damn that was easy 3 | zstyle -t :prompt-theme cleanup 4 | zstyle -t :prompt-theme restore 5 | } 6 | 7 | prompt_restore_preview () { 8 | echo "The prompt command 'restore' is not a theme and cannot be previewed." 9 | } 10 | 11 | prompt_restore_setup "$@" 12 | -------------------------------------------------------------------------------- /Functions/Prompts/prompt_suse_setup: -------------------------------------------------------------------------------- 1 | # Converted to zsh prompt theme by bash2zshprompt, written by 2 | # SuSE Default Prompt 3 | # Styled like the default prompt in SuSE 5.2 4 | # 5 | prompt_suse_setup () { 6 | PS1="%n@%m:%~/ > " 7 | PS2="> " 8 | 9 | prompt_opts=( cr percent ) 10 | } 11 | 12 | prompt_suse_setup "$@" 13 | -------------------------------------------------------------------------------- /Functions/Prompts/prompt_walters_setup: -------------------------------------------------------------------------------- 1 | prompt_walters_help () { 2 | cat <<'EOF' 3 | This prompt is color-scheme-able. You can invoke it thus: 4 | 5 | prompt walters [] 6 | 7 | where the color is for the right-hand prompt. 8 | 9 | This prompt was stolen from Colin Walters , 10 | who gives credit to Michel Daenzer . 11 | EOF 12 | } 13 | 14 | prompt_walters_setup () { 15 | 16 | if [[ "$TERM" != "dumb" ]]; then 17 | PS1='%B%(?..[%?] )%b%n@%U%m%u> ' 18 | RPS1="%F{${1:-green}}%~%f" 19 | else 20 | PS1="%(?..[%?] )%n@%m:%~> " 21 | fi 22 | 23 | prompt_opts=(cr percent) 24 | } 25 | 26 | prompt_walters_setup "$@" 27 | -------------------------------------------------------------------------------- /Functions/Prompts/prompt_zefram_setup: -------------------------------------------------------------------------------- 1 | function prompt_zefram_precmd { 2 | local exitstatus=$? 3 | setopt localoptions noxtrace noksharrays 4 | psvar=(SIG) 5 | [[ $exitstatus -gt 128 ]] && psvar[1]=SIG$signals[$exitstatus-127] 6 | [[ $psvar[1] = SIG ]] && psvar[1]=$exitstatus 7 | jobs % >/dev/null 2>&1 && psvar[2]= 8 | } 9 | 10 | function prompt_zefram_setup { 11 | PS1='[%(2L.%L/.)'$ZSH_VERSION']%(?..%B{%v}%b)%n%(2v.%B@%b.@)%m:%B%~%b%(!.#.>) ' 12 | PS2='%(4_:... :)%3_> ' 13 | 14 | prompt_opts=( cr subst percent ) 15 | 16 | add-zsh-hook precmd prompt_zefram_precmd 17 | } 18 | 19 | prompt_zefram_setup "$@" 20 | -------------------------------------------------------------------------------- /Functions/README.zftp: -------------------------------------------------------------------------------- 1 | The Zftp directory contains a set of functions acting as a front end to the 2 | zftp command, provided as an add-on module. They allow you to perform FTP 3 | tasks from within the shell using as many of the shell's own facilities 4 | as possible. For more information, see the zshzftpsys manual page. 5 | -------------------------------------------------------------------------------- /Functions/TCP/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Functions/TCP/tcp_command: -------------------------------------------------------------------------------- 1 | tcp_send $* || return 1 2 | tcp_read -d -t ${TCP_TIMEOUT:=0.3} 3 | return 0 4 | -------------------------------------------------------------------------------- /Functions/TCP/tcp_point: -------------------------------------------------------------------------------- 1 | emulate -L zsh 2 | setopt extendedglob cbases 3 | 4 | 5 | if [[ $# -ne 1 ]]; then 6 | print "Usage: $0 port 7 | Listen on the given port; send anything that arrives to standard output." >&2 8 | return 1 9 | fi 10 | 11 | local REPLY lfd afd 12 | if ! ztcp -l $1; then 13 | print "Failed to listen on port $1" >&2 14 | return 1 15 | fi 16 | 17 | lfd=$REPLY 18 | 19 | if ! ztcp -a $lfd; then 20 | print "Failed to accept on fd $lfd" >&2 21 | ztcp -c $lfd 22 | fi 23 | 24 | afd=$REPLY 25 | 26 | cat <&$afd 27 | 28 | ztcp -c $lfd 29 | ztcp -c $afd 30 | -------------------------------------------------------------------------------- /Functions/TCP/tcp_shoot: -------------------------------------------------------------------------------- 1 | emulate -L zsh 2 | setopt extendedglob 3 | 4 | local REPLY tfd 5 | 6 | if [[ $# -ne 2 ]]; then 7 | print "Usage: $0 host port 8 | Connect to the given host and port; send standard input." >&2 9 | return 1 10 | fi 11 | 12 | if ! ztcp $1 $2; then 13 | print "Failed to open connection to host $1 port $2" >&2 14 | return 1 15 | fi 16 | 17 | tfd=$REPLY 18 | 19 | cat >&$tfd 20 | 21 | ztcp -c $tfd 22 | -------------------------------------------------------------------------------- /Functions/TCP/tcp_wait: -------------------------------------------------------------------------------- 1 | # Wait for given number of seconds, reading any data from 2 | # all TCP connections while doing so. 3 | 4 | if [[ ${(t)SECONDS} != float* ]]; then 5 | # If called from tcp_expect, don't override 6 | typeset -F TCP_SECONDS_START=$SECONDS 7 | # Get extra accuracy by making SECONDS floating point locally 8 | typeset -F SECONDS 9 | fi 10 | 11 | typeset to end 12 | 13 | (( to = $1, end = SECONDS + to )) 14 | while (( SECONDS < end )); do 15 | tcp_read -a -T $to 16 | (( to = end - SECONDS )) 17 | done 18 | return 19 | -------------------------------------------------------------------------------- /Functions/VCS_Info/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Functions/VCS_Info/Backends/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Functions/VCS_Info/Backends/VCS_INFO_detect_bzr: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## bazaar support by: Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions NO_shwordsplit 6 | 7 | [[ $1 == '--flavours' ]] && return 1 8 | 9 | VCS_INFO_check_com bzr || return 1 10 | vcs_comm[detect_need_file]=branch/format 11 | VCS_INFO_bydir_detect '.bzr' 12 | return $? 13 | -------------------------------------------------------------------------------- /Functions/VCS_Info/Backends/VCS_INFO_detect_cdv: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## codeville support by: Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions NO_shwordsplit 6 | 7 | [[ $1 == '--flavours' ]] && return 1 8 | 9 | VCS_INFO_check_com ${vcs_comm[cmd]} || return 1 10 | vcs_comm[detect_need_file]=format 11 | VCS_INFO_bydir_detect '.cdv' 12 | return $? 13 | -------------------------------------------------------------------------------- /Functions/VCS_Info/Backends/VCS_INFO_detect_cvs: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## cvs support by: Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions NO_shwordsplit 6 | 7 | [[ $1 == '--flavours' ]] && return 1 8 | 9 | VCS_INFO_check_com ${vcs_comm[cmd]} || return 1 10 | if ! [[ -d "./CVS" ]] || ! [[ -r "./CVS/Repository" ]] ; then 11 | return 1 12 | fi 13 | 14 | # Look for the most distant parent that still has a CVS subdirectory. 15 | local cvsbase="." 16 | cvsbase=${cvsbase:P} 17 | while [[ -d "${cvsbase:h}/CVS" ]]; do 18 | cvsbase="${cvsbase:h}" 19 | if [[ $cvsbase == '/' ]]; then 20 | break 21 | fi 22 | done 23 | 24 | vcs_comm[basedir]="${cvsbase}" 25 | -------------------------------------------------------------------------------- /Functions/VCS_Info/Backends/VCS_INFO_detect_darcs: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## darcs support by: Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions NO_shwordsplit 6 | 7 | [[ $1 == '--flavours' ]] && return 1 8 | 9 | VCS_INFO_check_com ${vcs_comm[cmd]} || return 1 10 | vcs_comm[detect_need_file]=format 11 | VCS_INFO_bydir_detect '_darcs' 12 | return $? 13 | -------------------------------------------------------------------------------- /Functions/VCS_Info/Backends/VCS_INFO_detect_fossil: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## fossil support by: Mike Meyer 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions NO_shwordsplit 6 | 7 | [[ $1 == '--flavours' ]] && return 1 8 | 9 | VCS_INFO_check_com ${vcs_comm[cmd]} || return 1 10 | vcs_comm[detect_need_file]="_FOSSIL_ .fslckout" 11 | VCS_INFO_bydir_detect . || return 1 12 | 13 | return 0 14 | -------------------------------------------------------------------------------- /Functions/VCS_Info/Backends/VCS_INFO_detect_git: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## git support by: Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions NO_shwordsplit 6 | 7 | [[ $1 == '--flavours' ]] && { print -l git-p4 git-svn; return 0 } 8 | 9 | if VCS_INFO_check_com ${vcs_comm[cmd]} && vcs_comm[gitdir]="$(${vcs_comm[cmd]} rev-parse --git-dir 2> /dev/null)" ; then 10 | vcs_comm[basedir]="$( ${vcs_comm[cmd]} rev-parse --show-toplevel 2> /dev/null )" 11 | if [[ -d ${vcs_comm[gitdir]}/svn ]] ; then vcs_comm[overwrite_name]='git-svn' 12 | elif [[ -d ${vcs_comm[gitdir]}/refs/remotes/p4 ]] ; then vcs_comm[overwrite_name]='git-p4' ; fi 13 | return 0 14 | fi 15 | return 1 16 | -------------------------------------------------------------------------------- /Functions/VCS_Info/Backends/VCS_INFO_detect_mtn: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## monotone support by: Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions NO_shwordsplit 6 | 7 | [[ $1 == '--flavours' ]] && return 1 8 | 9 | VCS_INFO_check_com ${vcs_comm[cmd]} || return 1 10 | vcs_comm[detect_need_file]=revision 11 | VCS_INFO_bydir_detect '_MTN' 12 | return $? 13 | -------------------------------------------------------------------------------- /Functions/VCS_Info/Backends/VCS_INFO_detect_svn: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## subversion support by: Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions NO_shwordsplit 6 | 7 | [[ $1 == '--flavours' ]] && return 1 8 | 9 | VCS_INFO_check_com ${vcs_comm[cmd]} || return 1 10 | vcs_comm[detect_need_file]="entries format wc.db" 11 | VCS_INFO_bydir_detect '.svn' || return 1 12 | -------------------------------------------------------------------------------- /Functions/VCS_Info/Backends/VCS_INFO_detect_tla: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## gnu arch support by: Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions NO_shwordsplit 6 | 7 | [[ $1 == '--flavours' ]] && return 1 8 | 9 | VCS_INFO_check_com ${vcs_comm[cmd]} || return 1 10 | vcs_comm[basedir]="$(${vcs_comm[cmd]} tree-root 2> /dev/null)" && return 0 11 | return 1 12 | -------------------------------------------------------------------------------- /Functions/VCS_Info/Backends/VCS_INFO_get_data_cdv: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## codeville support by: Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions NO_shwordsplit 6 | local cdvbase 7 | 8 | cdvbase=${vcs_comm[basedir]} 9 | rrn=${cdvbase:t} 10 | VCS_INFO_formats '' "${cdvbase:t}" "${cdvbase}" '' '' '' '' 11 | return 0 12 | -------------------------------------------------------------------------------- /Functions/VCS_Info/Backends/VCS_INFO_get_data_cvs: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## cvs support by: Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions NO_shwordsplit 6 | local cvsbranch cvsbase 7 | 8 | cvsbase="${vcs_comm[basedir]}" 9 | # VCS_INFO_detect_cvs ensured that ./CVS/Repository exists. 10 | cvsbranch=$(< ./CVS/Repository) 11 | rrn=${cvsbase:t} 12 | cvsbranch=${cvsbranch##${rrn}/} 13 | [[ -z ${cvsbranch} ]] && cvsbranch=${rrn} 14 | VCS_INFO_formats '' "${cvsbranch}" "${cvsbase}" '' '' '' '' 15 | return 0 16 | -------------------------------------------------------------------------------- /Functions/VCS_Info/Backends/VCS_INFO_get_data_darcs: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## darcs support by: Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions NO_shwordsplit 6 | local darcsbase 7 | 8 | darcsbase=${vcs_comm[basedir]} 9 | rrn=${darcsbase:t} 10 | VCS_INFO_formats '' "${darcsbase:t}" "${darcsbase}" '' '' '' '' 11 | return 0 12 | -------------------------------------------------------------------------------- /Functions/VCS_Info/Backends/VCS_INFO_get_data_mtn: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## monotone support by: Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions extendedglob NO_shwordsplit 6 | local mtnbranch mtnbase 7 | 8 | mtnbase=${vcs_comm[basedir]} 9 | rrn=${mtnbase:t} 10 | mtnbranch=${${(M)${(f)"$( ${vcs_comm[cmd]} status )"}:#(#s)Current branch:*}/*: /} 11 | VCS_INFO_formats '' "${mtnbranch}" "${mtnbase}" '' '' '' '' 12 | return 0 13 | -------------------------------------------------------------------------------- /Functions/VCS_Info/Backends/VCS_INFO_get_data_svk: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## svk support by: Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions NO_shwordsplit 6 | local svkbranch svkbase 7 | local -A hook_com 8 | 9 | svkbase=${vcs_comm[basedir]} 10 | rrn=${svkbase:t} 11 | VCS_INFO_set-branch-format "${vcs_comm[branch]}" "${vcs_comm[revision]}" && 12 | svkbranch="${REPLY}" 13 | VCS_INFO_formats '' "${svkbranch}" "${svkbase}" '' '' "${vcs_comm[revision]}" '' 14 | return 0 15 | -------------------------------------------------------------------------------- /Functions/VCS_Info/Backends/VCS_INFO_get_data_tla: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## gnu arch support by: Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions extendedglob NO_shwordsplit 6 | local tlabase tlabranch 7 | 8 | tlabase=${vcs_comm[basedir]:P} 9 | rrn=${tlabase:t} 10 | # tree-id gives us something like 'foo@example.com/demo--1.0--patch-4', so: 11 | tlabranch=${${"$( ${vcs_comm[cmd]} tree-id )"}/*\//} 12 | VCS_INFO_formats '' "${tlabranch}" "${tlabase}" '' '' '' '' 13 | return 0 14 | -------------------------------------------------------------------------------- /Functions/VCS_Info/VCS_INFO_adjust: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## Written by Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions NO_shwordsplit 6 | 7 | [[ -n ${vcs_comm[overwrite_name]} ]] && vcs=${vcs_comm[overwrite_name]} 8 | return 0 9 | -------------------------------------------------------------------------------- /Functions/VCS_Info/VCS_INFO_check_com: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## Written by Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions NO_shwordsplit 6 | 7 | case $1 in 8 | (/*) 9 | [[ -x $1 ]] && return 0 10 | ;; 11 | (*) 12 | (( ${+commands[$1]} )) && return 0 13 | esac 14 | 15 | return 1 16 | -------------------------------------------------------------------------------- /Functions/VCS_Info/VCS_INFO_get_cmd: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | # find out if the user wants us to use a special binary. 3 | # the default command name is the same as the backend name. 4 | local cmd 5 | zstyle -s ":vcs_info:${vcs}:${usercontext}:${rrn}" "command" cmd 6 | vcs_comm[cmd]=${cmd:-$vcs} 7 | -------------------------------------------------------------------------------- /Functions/VCS_Info/VCS_INFO_hexdump: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | 3 | # VCS_INFO_hexdump FILENAME BYTECOUNT 4 | # 5 | # Return in $REPLY a hexadecimal representation (lowercase, no whitespace) 6 | # of the first BYTECOUNT bytes of FILENAME. 7 | 8 | if [[ -r $1 ]]; then 9 | setopt localoptions nomultibyte extendedglob 10 | local val 11 | read -k $2 -u 0 val <$1 12 | REPLY=${(Lj::)${(l:2::0:)${(@s//)val}//(#m)*/$(( [##16] ##$MATCH ))}} 13 | else 14 | return 1 15 | fi 16 | 17 | -------------------------------------------------------------------------------- /Functions/VCS_Info/VCS_INFO_maxexports: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## Written by Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions NO_shwordsplit unset 6 | 7 | zstyle -s ":vcs_info:${vcs}:${usercontext}:${rrn}" "max-exports" maxexports || maxexports=2 8 | if [[ ${maxexports} != <-> ]] || (( maxexports < 1 )); then 9 | printf 'vcs_info(): expecting numeric arg >= 1 for max-exports (got %s).\n' ${maxexports} 10 | printf 'Defaulting to 2.\n' 11 | maxexports=2 12 | fi 13 | return 0 14 | -------------------------------------------------------------------------------- /Functions/VCS_Info/VCS_INFO_nvcsformats: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## Written by Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions noksharrays NO_shwordsplit 6 | local c v rr 7 | 8 | if [[ $1 == '-preinit-' ]] ; then 9 | c='default' 10 | v='-preinit-' 11 | rr='-all-' 12 | fi 13 | zstyle -a ":vcs_info:${v:-$vcs}:${c:-$usercontext}:${rrn:-$rr}" nvcsformats msgs 14 | (( ${#msgs} > maxexports )) && msgs[${maxexports},-1]=() 15 | return 0 16 | -------------------------------------------------------------------------------- /Functions/VCS_Info/VCS_INFO_reposub: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## Written by Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | setopt localoptions extendedglob NO_shwordsplit 6 | local base=${1%%/##} tmp 7 | 8 | tmp="$(pwd -P)" 9 | [[ $tmp == ${base}/* ]] || { 10 | printf '.' 11 | return 1 12 | } 13 | printf '%s' ${tmp#$base/} 14 | return 0 15 | -------------------------------------------------------------------------------- /Functions/VCS_Info/VCS_INFO_set-branch-format: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | # 3 | # A function for calling the branch-format hook 4 | # 5 | # Return the value to use in REPLY 6 | # 7 | # Parameters: 8 | readonly branch=$1 9 | readonly revision=$2 10 | # 11 | 12 | [[ -n $rrn ]] || return 1 13 | local -A hook_com 14 | local branchformat 15 | 16 | zstyle -s ":vcs_info:${vcs}:${usercontext}:${rrn}" branchformat branchformat || branchformat="%b:%r" 17 | hook_com=( branch "${branch}" revision "${revision}" ) 18 | if VCS_INFO_hook 'set-branch-format' "${branchformat}"; then 19 | zformat -f REPLY "${branchformat}" "b:${hook_com[branch]}" "r:${hook_com[revision]}" 20 | else 21 | REPLY=${hook_com[branch-replace]} 22 | fi 23 | hook_com=() 24 | return 0 25 | -------------------------------------------------------------------------------- /Functions/VCS_Info/test-repo-git-rebase-merge: -------------------------------------------------------------------------------- 1 | test-repo-git-rebase-apply -------------------------------------------------------------------------------- /Functions/VCS_Info/vcs_info_hookadd: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## Written by Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | emulate -L zsh 6 | setopt extendedglob 7 | 8 | if (( ${#argv} < 2 )); then 9 | print 'usage: vcs_info_hookadd ' 10 | return 1 11 | fi 12 | 13 | local hook func context 14 | local -a old 15 | 16 | hook=$1 17 | shift 18 | context=":vcs_info-static_hooks:${hook}" 19 | 20 | zstyle -a "${context}" hooks old 21 | zstyle "${context}" hooks "${old[@]}" "$@" 22 | return $? 23 | -------------------------------------------------------------------------------- /Functions/VCS_Info/vcs_info_lastmsg: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## Written by Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | emulate -L zsh 6 | 7 | local -i i 8 | local -i maxexports 9 | 10 | VCS_INFO_maxexports 11 | for i in {0..$((maxexports - 1))} ; do 12 | printf -- '$vcs_info_msg_%d_: "' $i 13 | if zstyle -T ':vcs_info:formats:command:-all-' use-prompt-escapes ; then 14 | print -nP -- ${(P)${:-vcs_info_msg_${i}_}} 15 | else 16 | print -n -- ${(P)${:-vcs_info_msg_${i}_}} 17 | fi 18 | printf '"\n' 19 | done 20 | -------------------------------------------------------------------------------- /Functions/VCS_Info/vcs_info_setsys: -------------------------------------------------------------------------------- 1 | ## vim:ft=zsh 2 | ## Written by Frank Terbeck 3 | ## Distributed under the same BSD-ish license as zsh itself. 4 | 5 | emulate -L zsh 6 | setopt extendedglob typeset_silent 7 | 8 | local sys 9 | typeset -ga VCS_INFO_backends 10 | local -a match mbegin mend 11 | 12 | VCS_INFO_backends=() 13 | 14 | for file in ${^fpath}/VCS_INFO_get_data_*~*(\~|.zwc)(N) ; do 15 | file=${file:t} 16 | : ${file:#(#b)VCS_INFO_get_data_(*)} 17 | sys=${match[1]} 18 | 19 | [[ -n ${(M)VCS_INFO_backends:#${sys}} ]] && continue 20 | VCS_INFO_backends+=(${sys}) 21 | autoload -Uz VCS_INFO_detect_${sys} 22 | autoload -Uz VCS_INFO_get_data_${sys} 23 | done 24 | 25 | return 0 26 | -------------------------------------------------------------------------------- /Functions/Zftp/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Functions/Zftp/zfclose: -------------------------------------------------------------------------------- 1 | # function zfclose { 2 | [[ $curcontext = :zf* ]] || local curcontext=:zfclose 3 | zftp close 4 | # } 5 | -------------------------------------------------------------------------------- /Functions/Zftp/zfhere: -------------------------------------------------------------------------------- 1 | # function zfhere { 2 | # Change to the directory corresponding to $PWD on the server. 3 | # See zfcd for how this works. 4 | [[ $curcontext = :zf* ]] || local curcontext=:zfhere 5 | zfcd $PWD 6 | # } 7 | -------------------------------------------------------------------------------- /Functions/Zftp/zfls: -------------------------------------------------------------------------------- 1 | # function zfls { 2 | 3 | emulate -L zsh 4 | [[ $curcontext = :zf* ]] || local curcontext=:zfls 5 | 6 | # directory hack, see zfcd 7 | if [[ $1 = $HOME || $1 = $HOME/* ]]; then 8 | 1="~${1#$HOME}" 9 | fi 10 | 11 | zfautocheck -d 12 | 13 | zftp ls $* 14 | # } 15 | -------------------------------------------------------------------------------- /Functions/Zftp/zftype: -------------------------------------------------------------------------------- 1 | # function zftype { 2 | local type 3 | [[ $curcontext = :zf* ]] || local curcontext=:zftype 4 | 5 | zfautocheck -d 6 | 7 | if (( $# == 0 )); then 8 | type=$(zftp type) 9 | if [[ $type = I ]]; then 10 | print "Current type is image (binary)" 11 | return 0 12 | elif [[ $type = A ]]; then 13 | print "Current type is ASCII" 14 | return 0 15 | else 16 | return 1 17 | fi 18 | else 19 | if [[ $1 == (#i)a(sc(ii|)|) ]]; then 20 | type=A 21 | elif [[ $1 == (#i)i(m(age|)|) || $1 == (#i)b(in(ary|)|) ]]; then 22 | type=I 23 | else 24 | print "Type not recognised: $1" 2>&1 25 | return 1 26 | fi 27 | zftp type $type 28 | fi 29 | # } 30 | -------------------------------------------------------------------------------- /Functions/Zle/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Functions/Zle/backward-word-match: -------------------------------------------------------------------------------- 1 | emulate -L zsh 2 | setopt extendedglob 3 | 4 | autoload match-words-by-style 5 | 6 | local curcontext=":zle:$WIDGET" word 7 | local -a matched_words 8 | integer count=${NUMERIC:-1} 9 | 10 | if (( count < 0 )); then 11 | (( NUMERIC = - count )) 12 | zle ${WIDGET/backward/forward} 13 | return 14 | fi 15 | 16 | while (( count-- )); do 17 | 18 | match-words-by-style 19 | 20 | word=$matched_words[2]$matched_words[3] 21 | 22 | if [[ -n $word ]]; then 23 | (( CURSOR -= ${#word} )) 24 | else 25 | return 1 26 | fi 27 | done 28 | 29 | return 0 30 | -------------------------------------------------------------------------------- /Functions/Zle/capitalize-word-match: -------------------------------------------------------------------------------- 1 | emulate -L zsh 2 | setopt extendedglob 3 | 4 | autoload match-words-by-style 5 | 6 | local curcontext=":zle:$WIDGET" word 7 | local -a matched_words 8 | integer count=${NUMERIC:-1} 9 | 10 | while (( count-- > 0 )); do 11 | match-words-by-style 12 | 13 | word=${(j..)matched_words[4,5]} 14 | 15 | if [[ -n $word ]]; then 16 | LBUFFER+=${(C)word} 17 | RBUFFER=${(j..)matched_words[6,7]} 18 | else 19 | return 1 20 | fi 21 | done 22 | 23 | return 0 24 | -------------------------------------------------------------------------------- /Functions/Zle/cycle-completion-positions: -------------------------------------------------------------------------------- 1 | # This may be called after a completion that inserted the unambiguous 2 | # (i.e. non-menu- and non-single-match-) string into the command line. 3 | # If there are multiple positions in the string with missing or differing 4 | # characters, repeatedly calling this widget cycles between all these 5 | # positions. 6 | 7 | emulate -L zsh 8 | setopt extendedglob 9 | 10 | local p="$_lastcomp[insert_positions]" 11 | 12 | if [[ $p = ((#s)|*:)${CURSOR}:* ]]; then 13 | CURSOR=${${p#(|*:)${CURSOR}:}%%:*} 14 | elif [[ -n $p ]]; then 15 | CURSOR=${p%%:*} 16 | fi 17 | -------------------------------------------------------------------------------- /Functions/Zle/down-case-word-match: -------------------------------------------------------------------------------- 1 | emulate -L zsh 2 | setopt extendedglob 3 | 4 | autoload -Uz match-words-by-style 5 | 6 | local curcontext=":zle:$WIDGET" word 7 | local -a matched_words 8 | integer count=${NUMERIC:-1} 9 | 10 | while (( count-- > 0 )); do 11 | match-words-by-style 12 | 13 | word=${(j..)matched_words[4,5]} 14 | 15 | if [[ -n word ]]; then 16 | LBUFFER+=${(L)word} 17 | RBUFFER=${(j..)matched_words[6,7]} 18 | else 19 | return 1 20 | fi 21 | done 22 | 23 | return 0 24 | -------------------------------------------------------------------------------- /Functions/Zle/down-line-or-beginning-search: -------------------------------------------------------------------------------- 1 | # Like down-line-or-search, but uses the whole line prefix up to the 2 | # cursor position for searching forwards. 3 | 4 | emulate -L zsh 5 | 6 | typeset -g __searching __savecursor 7 | 8 | if [[ ${+NUMERIC} -eq 0 && 9 | ( $LASTWIDGET = $__searching || $RBUFFER != *$'\n'* ) ]] 10 | then 11 | [[ $LASTWIDGET = $__searching ]] && CURSOR=$__savecursor 12 | __searching=$WIDGET 13 | __savecursor=$CURSOR 14 | if zle .history-beginning-search-forward; then 15 | [[ $RBUFFER = *$'\n'* ]] || 16 | zstyle -T ':zle:down-line-or-beginning-search' leave-cursor && 17 | zle .end-of-line 18 | return 19 | fi 20 | [[ $RBUFFER = *$'\n'* ]] || return 21 | fi 22 | __searching='' 23 | zle .down-line-or-history 24 | -------------------------------------------------------------------------------- /Functions/Zle/expand-absolute-path: -------------------------------------------------------------------------------- 1 | # expand-absolute-path 2 | # This is a ZLE widget to expand the absolute path to a file, 3 | # using directory naming to shorten the path where possible. 4 | 5 | emulate -L zsh 6 | setopt extendedglob cbases 7 | 8 | autoload -Uz modify-current-argument 9 | 10 | if (( ! ${+functions[glob-expand-absolute-path]} )); then 11 | glob-expand-absolute-path() { 12 | local -a files 13 | files=(${~1}(N:P)) 14 | (( ${#files} )) || return 15 | REPLY=${(D)files[1]} 16 | } 17 | fi 18 | 19 | modify-current-argument glob-expand-absolute-path 20 | -------------------------------------------------------------------------------- /Functions/Zle/move-line-in-buffer: -------------------------------------------------------------------------------- 1 | #autoload 2 | 3 | # Line motions that do not leave the current history entry, 4 | # for editing in multi-line buffers. 5 | 6 | # To use: 7 | # autoload -Uz move-line-in-buffer 8 | # zle -N up-line-in-buffer move-line-in-buffer 9 | # zle -N down-line-in-buffer move-line-in-buffer 10 | # 11 | # then bindkey as you prefer 12 | 13 | local hno=$HISTNO curs=$CURSOR 14 | zle .${WIDGET:s/in-buffer/or-history} "$@" && 15 | (( HISTNO != hno && (HISTNO=hno, CURSOR=curs) )) 16 | return 0 17 | -------------------------------------------------------------------------------- /Functions/Zle/narrow-to-region-invisible: -------------------------------------------------------------------------------- 1 | # As narrow-to-region, but replaces the text outside the editable region 2 | # with `...' if it was non-empty. Can be used directly as a widget. 3 | 4 | autoload -Uz narrow-to-region 5 | narrow-to-region -p '...' -P '...' -n 6 | -------------------------------------------------------------------------------- /Functions/Zle/up-case-word-match: -------------------------------------------------------------------------------- 1 | emulate -L zsh 2 | setopt extendedglob 3 | 4 | autoload -Uz match-words-by-style 5 | 6 | local curcontext=":zle:$WIDGET" word 7 | local -a matched_words 8 | integer count=${NUMERIC:-1} 9 | 10 | while (( count-- > 0 )); do 11 | match-words-by-style 12 | 13 | word=${(j..)matched_words[4,5]} 14 | 15 | if [[ -n $word ]]; then 16 | LBUFFER+=${(U)word} 17 | RBUFFER=${(j..)matched_words[6,7]} 18 | else 19 | return 1 20 | fi 21 | done 22 | 23 | return 0 24 | -------------------------------------------------------------------------------- /Functions/Zle/up-line-or-beginning-search: -------------------------------------------------------------------------------- 1 | # Like up-line-or-search, but uses the whole line prefix up to the 2 | # cursor position for searching backwards. 3 | 4 | emulate -L zsh 5 | 6 | typeset -g __searching __savecursor 7 | 8 | if [[ $LBUFFER == *$'\n'* ]]; then 9 | zle .up-line-or-history 10 | __searching='' 11 | elif [[ -n $PREBUFFER ]] && 12 | zstyle -t ':zle:up-line-or-beginning-search' edit-buffer 13 | then 14 | zle .push-line-or-edit 15 | else 16 | [[ $LASTWIDGET = $__searching ]] && CURSOR=$__savecursor 17 | __savecursor=$CURSOR 18 | __searching=$WIDGET 19 | zle .history-beginning-search-backward 20 | zstyle -T ':zle:up-line-or-beginning-search' leave-cursor && 21 | zle .end-of-line 22 | fi 23 | -------------------------------------------------------------------------------- /Functions/Zle/zcalc-auto-insert: -------------------------------------------------------------------------------- 1 | # Bind to a binary operator keystroke for use with zcalc 2 | # Not useful in RPN mode. 3 | 4 | if [[ -n $ZCALC_ACTIVE && $ZCALC_ACTIVE != rpn ]]; then 5 | if [[ $CURSOR -eq 0 || $LBUFFER[-1] = "(" ]]; then 6 | LBUFFER+=${ZCALC_AUTO_INSERT_PREFIX:-"ans "} 7 | fi 8 | fi 9 | zle .self-insert 10 | -------------------------------------------------------------------------------- /MACHINES: -------------------------------------------------------------------------------- 1 | ----------------------------- 2 | ZSH ON SPECIFIC ARCHITECTURES 3 | ----------------------------- 4 | 5 | This file is to record difficulties in compiling and installing zsh on 6 | specific architectures. 7 | 8 | The information in this list may be out of date, as the developers do 9 | not have access to all machines. In general, GNU/Linux distributions 10 | and BSD derivatives including MacOS are reasonably well covered. 11 | 12 | At the time of writing (2018/05/30, version 5.5.1) zsh is believed to 13 | compile on all up-to-date Unix-like operating systems. Please let us 14 | know of any exceptions. 15 | 16 | The intended format of entries is thus: 17 | 18 | Vendor: OS & version (hardware type) [zsh version tried] 19 | information 20 | -------------------------------------------------------------------------------- /Misc/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Scripts/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Scripts/newuser: -------------------------------------------------------------------------------- 1 | # zsh script sourced at startup when a user is found to have 2 | # no startup files. See the documentation for the zsh/newuser 3 | # module in zshmodules(1). 4 | 5 | if functions zsh-newuser-install >/dev/null 2>&1 || 6 | autoload -U +X zsh-newuser-install; then 7 | zsh-newuser-install 8 | fi 9 | -------------------------------------------------------------------------------- /Src/.cvsignore: -------------------------------------------------------------------------------- 1 | *.dll 2 | *.epro 3 | *.export 4 | *.mdh 5 | *.mdh.tmp 6 | *.mdhi 7 | *.mdhs 8 | *.o 9 | *.o.c 10 | *.so 11 | *.swp 12 | *.syms 13 | Makefile 14 | Makemod.in Makemod 15 | [_a-zA-Z0-9]*.pro 16 | ansi2knr 17 | bltinmods.list 18 | cscope.out 19 | libzsh.so* 20 | modules-bltin 21 | modules.index 22 | modules.index.tmp 23 | modules.stamp 24 | patchlevel.h 25 | sigcount.h 26 | signames.c signames2.c 27 | stamp-modobjs 28 | stamp-modobjs.tmp 29 | tags TAGS 30 | version.h 31 | zsh 32 | zshcurses.h 33 | zshpaths.h 34 | zshterm.h 35 | zshxmods.h 36 | -------------------------------------------------------------------------------- /Src/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Src/.exrc: -------------------------------------------------------------------------------- 1 | set ai 2 | set sw=4 3 | -------------------------------------------------------------------------------- /Src/Builtins/.cvsignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | Makefile.in 3 | *.export 4 | so_locations 5 | *.pro 6 | *.epro 7 | *.syms 8 | *.o 9 | *.o.c 10 | *.so 11 | *.mdh 12 | *.mdhi 13 | *.mdhs 14 | *.mdh.tmp 15 | rlimits.h 16 | *.swp 17 | *.dll 18 | -------------------------------------------------------------------------------- /Src/Builtins/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Src/Builtins/.exrc: -------------------------------------------------------------------------------- 1 | set ai 2 | set sw=4 3 | -------------------------------------------------------------------------------- /Src/Builtins/rlimits.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/rlimits 2 | link=either 3 | load=yes 4 | 5 | autofeatures="b:limit b:ulimit b:unlimit" 6 | autofeatures_emu="b:ulimit" 7 | 8 | objects="rlimits.o" 9 | -------------------------------------------------------------------------------- /Src/Builtins/sched.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/sched 2 | link=either 3 | load=yes 4 | 5 | autofeatures="b:sched p:zsh_scheduled_events" 6 | 7 | objects="sched.o" 8 | -------------------------------------------------------------------------------- /Src/Modules/.cvsignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | Makefile.in 3 | *.export 4 | so_locations 5 | *.pro 6 | *.epro 7 | *.syms 8 | *.o 9 | *.o.c 10 | *.so 11 | *.mdh 12 | *.mdhi 13 | *.mdhs 14 | *.mdh.tmp 15 | *.swp 16 | errnames.c errcount.h 17 | *.dll 18 | curses_keys.h 19 | -------------------------------------------------------------------------------- /Src/Modules/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Src/Modules/.exrc: -------------------------------------------------------------------------------- 1 | set ai 2 | set sw=4 3 | -------------------------------------------------------------------------------- /Src/Modules/attr.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/attr 2 | link='if test "x$zsh_cv_use_xattr" = xyes; then 3 | echo dynamic 4 | else 5 | echo no 6 | fi 7 | ' 8 | load=no 9 | 10 | autofeatures="b:zgetattr b:zsetattr b:zdelattr" 11 | 12 | objects="attr.o" 13 | -------------------------------------------------------------------------------- /Src/Modules/cap.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/cap 2 | link=dynamic 3 | load=no 4 | 5 | autofeatures="b:cap b:getcap b:setcap" 6 | 7 | objects="cap.o" 8 | -------------------------------------------------------------------------------- /Src/Modules/clone.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/clone 2 | link=dynamic 3 | load=no 4 | 5 | autofeatures="b:clone" 6 | 7 | objects="clone.o" 8 | -------------------------------------------------------------------------------- /Src/Modules/curses.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/curses 2 | link='if test "x$ac_cv_func_initscr" = xyes && test "x$zsh_cv_path_curses_header" != x; then echo dynamic; else echo no; fi' 3 | load=no 4 | 5 | autofeatures="b:zcurses" 6 | 7 | objects="curses.o" 8 | 9 | :<<\Make 10 | curses.o curses..o: curses_keys.h 11 | 12 | curses_keys.h: curses_keys.awk @CURSES_KEYS_H@ 13 | $(AWK) -f $(sdir)/curses_keys.awk @CURSES_KEYS_H@ /dev/null >curses_keys.h 14 | Make 15 | -------------------------------------------------------------------------------- /Src/Modules/datetime.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/datetime 2 | 3 | link=either 4 | load=no 5 | 6 | functions='Functions/Calendar/*' 7 | autofeatures="b:strftime p:EPOCHSECONDS p:EPOCHREALTIME p:epochtime" 8 | 9 | objects="datetime.o" 10 | -------------------------------------------------------------------------------- /Src/Modules/db_gdbm.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/db/gdbm 2 | link='if test "x$ac_cv_lib_gdbm_gdbm_open" = xyes && test "x$ac_cv_header_gdbm_h" = xyes; then 3 | echo dynamic 4 | else 5 | echo no 6 | fi 7 | ' 8 | load=no 9 | 10 | autofeatures="b:ztie b:zuntie b:zgdbmpath p:zgdbm_tied" 11 | 12 | objects="db_gdbm.o" 13 | -------------------------------------------------------------------------------- /Src/Modules/example.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/example 2 | link=dynamic 3 | load=no 4 | 5 | autofeatures="b:example C:ex c:len p:exint p:exstr p:exarr f:sum f:length" 6 | 7 | objects="example.o" 8 | -------------------------------------------------------------------------------- /Src/Modules/files.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/files 2 | link=dynamic 3 | load=no 4 | 5 | autofeatures="b:chgrp b:chown b:ln b:mkdir b:mv b:rm b:rmdir b:sync b:zf_chgrp b:zf_chown b:zf_ln b:zf_mkdir b:zf_mv b:zf_rm b:zf_rmdir b:zf_sync" 6 | 7 | objects="files.o" 8 | -------------------------------------------------------------------------------- /Src/Modules/hlgroup.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/hlgroup 2 | link=either 3 | load=yes 4 | 5 | autofeatures="p:.zle.esc p:.zle.sgr" 6 | 7 | objects="hlgroup.o" 8 | -------------------------------------------------------------------------------- /Src/Modules/ksh93.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/ksh93 2 | link=either 3 | load=yes 4 | 5 | autofeatures="b:nameref" 6 | autofeatures_emu="b:nameref p:.sh.command p:.sh.edcol p:.sh.edtext p:.sh.file p:.sh.lineno p:.sh.match p:.sh.subshell p:.sh.version" 7 | 8 | moddeps="zsh/zle" 9 | 10 | objects="ksh93.o" 11 | -------------------------------------------------------------------------------- /Src/Modules/langinfo.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/langinfo 2 | 3 | link=`if test x$ac_cv_func_nl_langinfo; then echo either; else echo no; fi` 4 | load=no 5 | 6 | autofeatures="p:langinfo" 7 | 8 | objects="langinfo.o" 9 | -------------------------------------------------------------------------------- /Src/Modules/mapfile.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/mapfile 2 | link=dynamic 3 | load=no 4 | 5 | autofeatures="p:mapfile" 6 | 7 | objects="mapfile.o" 8 | -------------------------------------------------------------------------------- /Src/Modules/mathfunc.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/mathfunc 2 | link=dynamic 3 | load=no 4 | 5 | objects="mathfunc.o" 6 | -------------------------------------------------------------------------------- /Src/Modules/nearcolor.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/nearcolor 2 | link=dynamic 3 | load=no 4 | 5 | objects="nearcolor.o" 6 | -------------------------------------------------------------------------------- /Src/Modules/newuser.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/newuser 2 | link=dynamic 3 | # We will always try to load newuser, but there should 4 | # be no error if it fails, so don't use the standard mechanism. 5 | load=no 6 | functions='Scripts/newuser Functions/Newuser/*' 7 | 8 | objects="newuser.o" 9 | 10 | :<<\Make 11 | newuser.o: ../zshpaths.h 12 | 13 | Make 14 | -------------------------------------------------------------------------------- /Src/Modules/param_private.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/param/private 2 | link=dynamic 3 | load=yes 4 | 5 | autofeatures="b:private" 6 | 7 | objects="param_private.o" 8 | -------------------------------------------------------------------------------- /Src/Modules/parameter.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/parameter 2 | link=either 3 | load=yes 4 | 5 | autofeatures="p:parameters p:commands p:functions p:dis_functions p:functions_source p:dis_functions_source p:funcfiletrace p:funcsourcetrace p:funcstack p:functrace p:builtins p:dis_builtins p:reswords p:dis_reswords p:patchars p:dis_patchars p:options p:modules p:dirstack p:history p:historywords p:jobtexts p:jobdirs p:jobstates p:nameddirs p:userdirs p:usergroups p:aliases p:dis_aliases p:galiases p:dis_galiases p:saliases p:dis_saliases" 6 | 7 | objects="parameter.o" 8 | -------------------------------------------------------------------------------- /Src/Modules/pcre.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/pcre 2 | link=`if test x$enable_pcre = xyes; then echo dynamic; else echo no; fi` 3 | load=no 4 | 5 | autofeatures="b:pcre_compile b:pcre_study b:pcre_match" 6 | 7 | objects="pcre.o" 8 | -------------------------------------------------------------------------------- /Src/Modules/random.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/random 2 | link=either 3 | load=yes 4 | 5 | autofeatures="p:SRANDOM f:zrand_float f:zrand_int" 6 | 7 | objects="random.o random_real.o" 8 | -------------------------------------------------------------------------------- /Src/Modules/regex.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/regex 2 | link=`if test x$ac_cv_func_regcomp = xyes && \ 3 | test x$ac_cv_func_regexec = xyes && \ 4 | test x$ac_cv_func_regerror = xyes && \ 5 | test x$ac_cv_func_regfree = xyes; then echo dynamic; else echo no; fi` 6 | load=no 7 | 8 | objects="regex.o" 9 | -------------------------------------------------------------------------------- /Src/Modules/socket.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/net/socket 2 | link=dynamic 3 | load=no 4 | 5 | objects="socket.o" 6 | autofeatures="b:zsocket" 7 | -------------------------------------------------------------------------------- /Src/Modules/stat.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/stat 2 | link=dynamic 3 | load=no 4 | 5 | autofeatures="b:stat b:zstat" 6 | 7 | objects="stat.o" 8 | -------------------------------------------------------------------------------- /Src/Modules/tcp.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/net/tcp 2 | link=dynamic 3 | load=no 4 | functions='Functions/TCP/*' 5 | 6 | objects="tcp.o" 7 | autofeatures="b:ztcp" 8 | -------------------------------------------------------------------------------- /Src/Modules/termcap.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/termcap 2 | 3 | link='if test "x$ac_cv_func_tgetent" = xyes; then 4 | if test "x$zsh_cv_shared_tgetent" = xyes; then 5 | echo either 6 | else 7 | echo static 8 | fi 9 | else 10 | echo either; 11 | fi 12 | ' 13 | load=yes 14 | 15 | autofeatures="b:echotc p:termcap" 16 | 17 | objects="termcap.o" 18 | -------------------------------------------------------------------------------- /Src/Modules/terminfo.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/terminfo 2 | 3 | link='if test "x$ac_cv_func_tigetflag" = xyes -a x$zsh_cv_path_curses_header != xnone; then 4 | if test "x$zsh_cv_shared_tigetstr" = xyes; then 5 | echo either 6 | else 7 | echo static 8 | fi 9 | else 10 | echo no; 11 | fi 12 | ' 13 | load=yes 14 | 15 | autofeatures="b:echoti p:terminfo" 16 | 17 | objects="terminfo.o" 18 | -------------------------------------------------------------------------------- /Src/Modules/watch.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/watch 2 | link=dynamic 3 | load=yes 4 | 5 | autofeatures="b:log p:WATCH p:watch" 6 | 7 | objects="watch.o" 8 | -------------------------------------------------------------------------------- /Src/Modules/zftp.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/zftp 2 | link=dynamic 3 | load=no 4 | functions='Functions/Zftp/*' 5 | 6 | autofeatures="b:zftp" 7 | 8 | moddeps="zsh/net/tcp" 9 | 10 | objects="zftp.o" 11 | -------------------------------------------------------------------------------- /Src/Modules/zprof.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/zprof 2 | link=dynamic 3 | load=no 4 | 5 | autofeatures="b:zprof" 6 | 7 | objects="zprof.o" 8 | -------------------------------------------------------------------------------- /Src/Modules/zpty.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/zpty 2 | link=dynamic 3 | load=no 4 | 5 | autofeatures="b:zpty" 6 | 7 | objects="zpty.o" 8 | -------------------------------------------------------------------------------- /Src/Modules/zselect.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/zselect 2 | link=dynamic 3 | load=no 4 | 5 | objects="zselect.o" 6 | autofeatures="b:zselect" 7 | -------------------------------------------------------------------------------- /Src/Modules/zutil.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/zutil 2 | link=either 3 | load=yes 4 | 5 | moddeps="zsh/complete" 6 | 7 | objects="zutil.o" 8 | 9 | autofeatures="b:zformat b:zstyle b:zregexparse b:zparseopts" 10 | -------------------------------------------------------------------------------- /Src/Zle/.cvsignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | Makefile.in 3 | *.export 4 | so_locations 5 | *.pro 6 | *.epro 7 | *.syms 8 | *.o 9 | *.o.c 10 | *.so 11 | *.mdh 12 | *.mdhi 13 | *.mdhs 14 | *.mdh.tmp 15 | thingies.list 16 | widgets.list 17 | zle_things.h 18 | zle_widget.h 19 | *.swp 20 | *.dll 21 | -------------------------------------------------------------------------------- /Src/Zle/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Src/Zle/.exrc: -------------------------------------------------------------------------------- 1 | set ai 2 | set sw=4 3 | -------------------------------------------------------------------------------- /Src/Zle/compctl.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/compctl 2 | link=either 3 | load=yes 4 | 5 | moddeps="zsh/complete zsh/zle" 6 | 7 | autofeatures="b:compctl b:compcall" 8 | 9 | headers="compctl.h" 10 | objects="compctl.o" 11 | -------------------------------------------------------------------------------- /Src/Zle/complete.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/complete 2 | link=either 3 | load=yes 4 | functions='Completion/*comp* Completion/AIX/*/* Completion/BSD/*/* Completion/Base/*/* Completion/Cygwin/*/* Completion/Darwin/*/* Completion/Debian/*/* Completion/Linux/*/* Completion/Mandriva/*/* Completion/Redhat/*/* Completion/Solaris/*/* Completion/openSUSE/*/* Completion/Unix/*/* Completion/X/*/* Completion/Zsh/*/*' 5 | 6 | moddeps="zsh/zle" 7 | 8 | autofeatures="b:compadd b:compset c:prefix c:suffix c:between c:after" 9 | 10 | headers="comp.h" 11 | 12 | objects="complete.o compcore.o compmatch.o compresult.o" 13 | -------------------------------------------------------------------------------- /Src/Zle/complist.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/complist 2 | link=either 3 | load=yes 4 | 5 | moddeps="zsh/complete zsh/zle" 6 | 7 | objects="complist.o" 8 | -------------------------------------------------------------------------------- /Src/Zle/computil.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/computil 2 | link=either 3 | load=yes 4 | 5 | moddeps="zsh/complete zsh/zle" 6 | 7 | objects="computil.o" 8 | 9 | autofeatures="b:compdescribe b:comparguments b:compvalues b:compquote b:comptags b:comptry b:compfiles b:compgroups" 10 | -------------------------------------------------------------------------------- /Src/Zle/deltochar.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/deltochar 2 | link=dynamic 3 | load=no 4 | 5 | moddeps="zsh/zle" 6 | 7 | objects="deltochar.o" 8 | -------------------------------------------------------------------------------- /Src/Zle/zle_things.sed: -------------------------------------------------------------------------------- 1 | /^ *T("/{ 2 | s/^[^"]*"/ z_/ 3 | s/".*$/,/ 4 | s/-//g 5 | s/\./D/g 6 | P 7 | s/ z_\(.*\),/#define t_\1 (\&thingies[z_\1])/ 8 | P 9 | } 10 | -------------------------------------------------------------------------------- /Src/Zle/zle_widget.sed: -------------------------------------------------------------------------------- 1 | /^ *W(/{ 2 | s/[^,]*, *t_/ wi_/ 3 | s/ *,.*/,/ 4 | P 5 | s/ wi_\(.*\),/#define w_\1 (\&widgets[wi_\1])/ 6 | P 7 | } 8 | -------------------------------------------------------------------------------- /Src/Zle/zleparameter.mdd: -------------------------------------------------------------------------------- 1 | name=zsh/zleparameter 2 | link=either 3 | load=yes 4 | 5 | moddeps="zsh/zle" 6 | 7 | autofeatures="p:widgets p:keymaps" 8 | 9 | objects="zleparameter.o" 10 | -------------------------------------------------------------------------------- /Src/zsh.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-users/zsh/96beb5ced9f3763dba142c15614476e043af3b43/Src/zsh.ico -------------------------------------------------------------------------------- /Src/zsh.rc: -------------------------------------------------------------------------------- 1 | // Use this file as follows 2 | // 3 | // myapp.exe : myapp.o myapp.res 4 | // gcc -mwindows myapp.o myapp.res -o $@ 5 | // 6 | // myapp.res : myapp.rc resource.h 7 | // windres $< -O coff -o $@ 8 | IDR_MAINFRAME ICON DISCARDABLE "zsh.ico" 9 | -------------------------------------------------------------------------------- /StartupFiles/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /StartupFiles/zlogin: -------------------------------------------------------------------------------- 1 | # 2 | # Generic .zlogin file for zsh 2.7 3 | # 4 | # .zlogin is sourced in login shells. It should 5 | # contain commands that should be executed only in 6 | # login shells. It should be used to set the terminal 7 | # type and run a series of external commands (fortune, 8 | # msgs, from, etc). 9 | # 10 | 11 | # THIS FILE IS NOT INTENDED TO BE USED AS /etc/zlogin, NOR WITHOUT EDITING 12 | return 0 # Remove this line after editing this file as appropriate 13 | 14 | clear 15 | stty dec new cr0 -tabs 16 | ttyctl -f # freeze the terminal modes... can't change without a ttyctl -u 17 | mesg y 18 | uptime 19 | fortune 20 | log 21 | from 2>/dev/null 22 | cat notes 23 | msgs -fp 24 | -------------------------------------------------------------------------------- /Test/.cvsignore: -------------------------------------------------------------------------------- 1 | Makefile 2 | *.tmp 3 | *.swp 4 | -------------------------------------------------------------------------------- /Test/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | -------------------------------------------------------------------------------- /Test/A05execution.ztst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-users/zsh/96beb5ced9f3763dba142c15614476e043af3b43/Test/A05execution.ztst -------------------------------------------------------------------------------- /Test/B05eval.ztst: -------------------------------------------------------------------------------- 1 | # Tests for the eval builtin. 2 | # This is quite short; eval is widely tested throughout the test suite 3 | # and its basic behaviour is fairly straightforward. 4 | 5 | %prep 6 | 7 | cmd='print $?' 8 | 9 | %test 10 | 11 | false 12 | eval $cmd 13 | 0:eval retains value of $? 14 | >1 15 | 16 | # no point getting worked up over what the error message is... 17 | ./command_not_found 2>/dev/null 18 | eval $cmd 19 | 0:eval after command not found 20 | >127 21 | 22 | # trick the test system 23 | sp= 24 | false 25 | eval " 26 | $sp 27 | $sp 28 | $sp 29 | " 30 | 0:eval with empty command resets the status 31 | 32 | false 33 | eval 34 | 0:eval with empty command resets the status 35 | -------------------------------------------------------------------------------- /Test/D02glob.ztst: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zsh-users/zsh/96beb5ced9f3763dba142c15614476e043af3b43/Test/D02glob.ztst -------------------------------------------------------------------------------- /Test/list-XFails: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # This script lists tests that are currently expected to fail. (I.e., tests 3 | # for bugs that haven't been fixed yet.) 4 | 5 | grep --color -E -n '^[-0-9.dDqf]*f[-0-9.dDqf]*:' -- "$(dirname -- "$0")"/*.ztst 6 | -------------------------------------------------------------------------------- /Util/.distfiles: -------------------------------------------------------------------------------- 1 | DISTFILES_SRC=' 2 | ' 3 | DISTFILES_NOT=' 4 | difflog.pl 5 | ' 6 | -------------------------------------------------------------------------------- /Util/preconfig: -------------------------------------------------------------------------------- 1 | #! /bin/sh 2 | 3 | find . -name .git -prune -o -name '?*.*' -prune -o -name .preconfig -print | ( 4 | while read pre; do 5 | cmd=`echo $pre | sed 's,^,cd ,;s,/\([^/]*\)$, \&\& ./\1,'` 6 | echo >&2 "$cmd" 7 | if ( eval "$cmd" ); then :; else 8 | echo "$0: $pre failed (status $?)" 9 | exit 1 10 | fi 11 | done 12 | ) 13 | 14 | exit 0 15 | -------------------------------------------------------------------------------- /aclocal.m4: -------------------------------------------------------------------------------- 1 | # Local additions to Autoconf macros. 2 | # Copyright (C) 1992, 1994 Free Software Foundation, Inc. 3 | # Francois Pinard , 1992. 4 | 5 | AC_DEFUN(AC_PROG_LN, 6 | [AC_MSG_CHECKING(whether ln works) 7 | AC_CACHE_VAL(ac_cv_prog_LN, 8 | [rm -f conftestdata conftestlink 9 | echo > conftestdata 10 | if ln conftestdata conftestlink 2>/dev/null 11 | then 12 | rm -f conftestdata conftestlink 13 | ac_cv_prog_LN="ln" 14 | else 15 | rm -f conftestdata 16 | ac_cv_prog_LN="cp" 17 | fi])dnl 18 | LN="$ac_cv_prog_LN" 19 | if test "$ac_cv_prog_LN" = "ln"; then 20 | AC_MSG_RESULT(yes) 21 | else 22 | AC_MSG_RESULT(no) 23 | fi 24 | AC_SUBST(LN)dnl 25 | ]) 26 | 27 | builtin(include, aczsh.m4) 28 | --------------------------------------------------------------------------------