Server IP : 51.89.169.208 / Your IP : 216.73.216.126 Web Server : Apache System : Linux ns3209505.ip-198-244-202.eu 4.18.0-553.27.1.el8_10.x86_64 #1 SMP Tue Nov 5 04:50:16 EST 2024 x86_64 User : yellowleaf ( 1019) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/zsh/5.5.1/functions/ |
Upload File : |
#compdef hexdump hd local -a args fmts optpar fmts=( {--one-byte-octal,-b}'[one-byte octal display]' {--one-byte-char,-c}'[one-byte character display]' {--two-bytes-decimal,-d}'[two-byte decimal display]' {--two-bytes-octal,-o}'[two-byte octal display]' {--two-bytes-hex,-x}'[two-byte hexadecimal display]' {--format=,-e+}'[specify format string to be used for displaying data]:format' {--format-file=,-f+}'[specify file that contains format strings]:file:_files' ) args=( '(H -n --length)'{--length=,-n+}'[interpret only specified amount of input]:length (bytes)' '(H -s --skip)'{--skip=,-s+}'[skip specified bytes at the beginning]:offset (bytes)' '(H -v --no-squeezing)'{--no-squeezing,-v}'[output identical lines]' ) [[ $service = hexdump ]] && fmts+=( {--canonical,-C}'[canonical hex+ASCII display]' ) if [[ $OSTYPE = linux* ]]; then args+=( '(-L --color)'{-L+,--color=}'[interpret color formatting specifiers colors are enabled by default]:mode' + H '(- *)'{-h,--help}'[display usage information]' '(- *)'{-V,--version}'[display version information]' ) else # strip long options by taking every second element print -v fmts -f '%2$s' -- "$fmts[@]" print -v args -f '%2$s' -- "$args[@]" optpar=( -A "-*" ) fi _arguments -s -S $optpar '*:file:_files' $args + '(formats)' '(H)'$^fmts