commit 34199d1baa12b438ef0ddd62e11f37c8f1031f6e parent 98698d2a55570af4e1826fb764b4d26c931a4ef2 Author: pyratebeard <root@pyratebeard.net> Date: Fri, 17 May 2024 12:28:30 +0100 XDG changes to zsh Diffstat:
42 files changed, 2369 insertions(+), 443 deletions(-)
diff --git a/zsh/.config/zsh/.zcompdump b/zsh/.config/zsh/.zcompdump @@ -0,0 +1,1889 @@ +#files: 848 version: 5.9 + +_comps=( +'-' '_precommand' +'-array-value-' '_value' +'-assign-parameter-' '_assign' +'-brace-parameter-' '_brace_parameter' +'-command-' '_autocd' +'-command-line-' '_normal' +'-condition-' '_condition' +'-default-' '_default' +'-equal-' '_equal' +'-first-' '_first' +'-math-' '_math' +'-parameter-' '_parameter' +'-redirect-' '_redirect' +'-redirect-,-default-,-default-' '_files' +'-redirect-,<,bunzip2' '_bzip2' +'-redirect-,<,bzip2' '_bzip2' +'-redirect-,<,compress' '_compress' +'-redirect-,<,gunzip' '_gzip' +'-redirect-,<,gzip' '_gzip' +'-redirect-,<,uncompress' '_compress' +'-redirect-,<,unxz' '_xz' +'-redirect-,<,xz' '_xz' +'-redirect-,>,bzip2' '_bzip2' +'-redirect-,>,compress' '_compress' +'-redirect-,>,gzip' '_gzip' +'-redirect-,>,xz' '_xz' +'-subscript-' '_subscript' +'-tilde-' '_tilde' +'-value-' '_value' +'-value-,-default-,-command-' '_zargs' +'-value-,-default-,-default-' '_value' +'-value-,ADB_TRACE,-default-' '_adb' +'-value-,ANDROID_LOG_TAGS,-default-' '_adb' +'-value-,ANDROID_SERIAL,-default-' '_adb' +'-value-,ANSIBLE_INVENTORY_ENABLED,-default-' '_ansible' +'-value-,ANSIBLE_STDOUT_CALLBACK,-default-' '_ansible' +'-value-,ANT_ARGS,-default-' '_ant' +'-value-,CFLAGS,-default-' '_gcc' +'-value-,CPPFLAGS,-default-' '_gcc' +'-value-,CXXFLAGS,-default-' '_gcc' +'-value-,DISPLAY,-default-' '_x_display' +'-value-,GREP_OPTIONS,-default-' '_grep' +'-value-,GZIP,-default-' '_gzip' +'-value-,LANG,-default-' '_locales' +'-value-,LANGUAGE,-default-' '_locales' +'-value-,LDFLAGS,-default-' '_gcc' +'-value-,LD_DEBUG,-default-' '_ld_debug' +'-value-,LESS,-default-' '_less' +'-value-,LESSCHARSET,-default-' '_less' +'-value-,LOOPDEV_DEBUG,-default-' '_losetup' +'-value-,LPDEST,-default-' '_printers' +'-value-,MPD_HOST,-default' '_mpc' +'-value-,P4CLIENT,-default-' '_perforce' +'-value-,P4MERGE,-default-' '_perforce' +'-value-,P4PORT,-default-' '_perforce' +'-value-,P4USER,-default-' '_perforce' +'-value-,PERLDOC,-default-' '_perldoc' +'-value-,PRINTER,-default-' '_printers' +'-value-,PROMPT,-default-' '_ps1234' +'-value-,PROMPT2,-default-' '_ps1234' +'-value-,PROMPT3,-default-' '_ps1234' +'-value-,PROMPT4,-default-' '_ps1234' +'-value-,PS1,-default-' '_ps1234' +'-value-,PS2,-default-' '_ps1234' +'-value-,PS3,-default-' '_ps1234' +'-value-,PS4,-default-' '_ps1234' +'-value-,RPROMPT,-default-' '_ps1234' +'-value-,RPROMPT2,-default-' '_ps1234' +'-value-,RPS1,-default-' '_ps1234' +'-value-,RPS2,-default-' '_ps1234' +'-value-,SPROMPT,-default-' '_ps1234' +'-value-,TERM,-default-' '_terminals' +'-value-,TERMINFO_DIRS,-default-' '_dir_list' +'-value-,TZ,-default-' '_time_zone' +'-value-,VALGRIND_OPTS,-default-' '_valgrind' +'-value-,WWW_HOME,-default-' '_urls' +'-value-,XML_CATALOG_FILES,-default-' '_xmlsoft' +'-value-,XZ_DEFAULTS,-default-' '_xz' +'-value-,XZ_OPT,-default-' '_xz' +'-vared-' '_in_vared' +'-zcalc-line-' '_zcalc_line' +'.' '_source' +'5g' '_go' +'5l' '_go' +'6g' '_go' +'6l' '_go' +'8g' '_go' +'8l' '_go' +'Mail' '_mail' +'Mosaic' '_webbrowser' +'_arguments' '__arguments' +'a2ps' '_a2ps' +'aaaa' '_hosts' +'aap' '_aap' +'abcde' '_abcde' +'ack' '_ack' +'ack-grep' '_ack' +'ack-standalone' '_ack' +'ack2' '_ack' +'acpi' '_acpi' +'acpitool' '_acpitool' +'acroread' '_acroread' +'adb' '_adb' +'add-zle-hook-widget' '_add-zle-hook-widget' +'add-zsh-hook' '_add-zsh-hook' +'admin' '_sccs' +'ag' '_the_silver_searcher' +'ali' '_mh' +'alias' '_alias' +'amaya' '_webbrowser' +'analyseplugin' '_analyseplugin' +'animate' '_imagemagick' +'anno' '_mh' +'ansible' '_ansible' +'ansible-config' '_ansible' +'ansible-console' '_ansible' +'ansible-doc' '_ansible' +'ansible-galaxy' '_ansible' +'ansible-inventory' '_ansible' +'ansible-playbook' '_ansible' +'ansible-pull' '_ansible' +'ansible-vault' '_ansible' +'ant' '_ant' +'antiword' '_antiword' +'aodh' '_openstack' +'aoss' '_precommand' +'apache2ctl' '_apachectl' +'apachectl' '_apachectl' +'aplay' '_alsa-utils' +'apm' '_apm' +'appletviewer' '_java' +'apropos' '_man' +'apvlv' '_pdf' +'arduino-ctags' '_ctags' +'arecord' '_alsa-utils' +'arena' '_webbrowser' +'arp' '_arp' +'arping' '_arping' +'asciidoctor' '_asciidoctor' +'asciinema' '_asciinema' +'ash' '_sh' +'at' '_at' +'atq' '_at' +'atrm' '_at' +'attr' '_attr' +'augtool' '_augeas' +'autoload' '_typeset' +'avahi-browse' '_avahi' +'avahi-browse-domains' '_avahi' +'avahi-resolve' '_avahi' +'avahi-resolve-address' '_avahi' +'avahi-resolve-host-name' '_avahi' +'awk' '_awk' +'b2sum' '_md5sum' +'barbican' '_openstack' +'base32' '_base64' +'base64' '_base64' +'basename' '_basename' +'basenc' '_basenc' +'bash' '_bash' +'batch' '_at' +'baz' '_baz' +'beep' '_beep' +'bg' '_jobs_bg' +'bibtex' '_bibtex' +'bindkey' '_bindkey' +'bison' '_bison' +'bluetoothctl' '_bluetoothctl' +'bmake' '_make' +'bogofilter' '_bogofilter' +'bogotune' '_bogofilter' +'bogoutil' '_bogofilter' +'bootctl' '_bootctl' +'borg' '_borg' +'borgfs' '_borg' +'bpython' '_bpython' +'bpython-gtk' '_bpython' +'bpython-urwid' '_bpython' +'bpython2' '_bpython' +'bpython2-gtk' '_bpython' +'bpython2-urwid' '_bpython' +'bpython3' '_bpython' +'bpython3-gtk' '_bpython' +'bpython3-urwid' '_bpython' +'brctl' '_brctl' +'bsdgrep' '_grep' +'bsdtar' '_tar' +'btdownloadcurses' '_bittorrent' +'btdownloadgui' '_bittorrent' +'btdownloadheadless' '_bittorrent' +'btlaunchmany' '_bittorrent' +'btlaunchmanycurses' '_bittorrent' +'btm' '_btm' +'btmakemetafile' '_bittorrent' +'btreannounce' '_bittorrent' +'btrename' '_bittorrent' +'btrfs' '_btrfs' +'btshowmetainfo' '_bittorrent' +'bttrack' '_bittorrent' +'buildhash' '_ispell' +'builtin' '_builtin' +'buku' '_buku' +'bunzip2' '_bzip2' +'burst' '_mh' +'busctl' '_busctl' +'bwrap' '_bwrap' +'bzcat' '_bzip2' +'bzegrep' '_grep' +'bzfgrep' '_grep' +'bzgrep' '_grep' +'bzip2' '_bzip2' +'bzip2recover' '_bzip2' +'bzr' '_bzr' +'c++' '_gcc' +'cabal' '_cabal' +'cal' '_cal' +'calendar' '_calendar' +'calibre' '_calibre' +'calibre-debug' '_calibre' +'calibre-server' '_calibre' +'calibre-smtp' '_calibre' +'calibredb' '_calibre' +'cargo' '_cargo' +'cat' '_cat' +'catchsegv' '_precommand' +'cc' '_gcc' +'ccal' '_ccal' +'cd' '_cd' +'cdc' '_sccs' +'cdcd' '_cdcd' +'cdr' '_cdr' +'cdrdao' '_cdrdao' +'cdrecord' '_cdrecord' +'ceilometer' '_openstack' +'certtool' '_gnutls' +'cftp' '_twisted' +'chage' '_users' +'chattr' '_chattr' +'chcon' '_chcon' +'chdir' '_cd' +'checkupdates' '_checkupdates' +'chfn' '_users' +'chg' '_hg' +'chgrp' '_chown' +'chimera' '_webbrowser' +'chkconfig' '_chkconfig' +'chkstow' '_stow' +'chmod' '_chmod' +'choom' '_choom' +'chown' '_chown' +'chpass' '_chsh' +'chroot' '_chroot' +'chrt' '_chrt' +'chsh' '_chsh' +'ci' '_rcs' +'cifsiostat' '_sysstat' +'cinder' '_openstack' +'ckeygen' '_twisted' +'cksum' '_cksum' +'clang' '_gcc' +'clang++' '_gcc' +'clay' '_clay' +'clear' '_nothing' +'cloudkitty' '_openstack' +'clusterdb' '_postgresql' +'cmp' '_cmp' +'cmus' '_cmus' +'cmus-remote' '_cmus' +'co' '_rcs' +'code' '_code' +'column' '_column' +'comb' '_sccs' +'combine' '_imagemagick' +'combinediff' '_patchutils' +'comm' '_comm' +'command' '_command' +'comp' '_mh' +'compadd' '_compadd' +'compdef' '_compdef' +'composer' '_composer' +'composer.phar' '_composer' +'composite' '_imagemagick' +'compress' '_compress' +'conch' '_twisted' +'config.status' '_configure' +'configure' '_configure' +'convert' '_imagemagick' +'coredumpctl' '_coredumpctl' +'cowsay' '_cowsay' +'cowthink' '_cowsay' +'cp' '_cp' +'cpio' '_cpio' +'cplay' '_cplay' +'cpupower' '_cpupower' +'createdb' '_postgresql' +'createuser' '_postgresql' +'crontab' '_crontab' +'crsh' '_cssh' +'cryptsetup' '_cryptsetup' +'cscope' '_cscope' +'csh' '_sh' +'csplit' '_csplit' +'cssh' '_cssh' +'ctags' '_ctags' +'ctags-exuberant' '_ctags' +'ctags-universal' '_ctags' +'curl' '_curl' +'cut' '_cut' +'cvs' '_cvs' +'darcs' '_darcs' +'dash' '_sh' +'date' '_date' +'dbus-launch' '_dbus' +'dbus-monitor' '_dbus' +'dbus-send' '_dbus' +'dconf' '_dconf' +'dcop' '_dcop' +'dcopclient' '_dcop' +'dcopfind' '_dcop' +'dcopobject' '_dcop' +'dcopref' '_dcop' +'dcopstart' '_dcop' +'dd' '_dd' +'declare' '_typeset' +'delta' '_sccs' +'designate' '_openstack' +'devtodo' '_devtodo' +'df' '_df' +'dhclient' '_dhclient' +'dhclient3' '_dhclient' +'dict' '_dict' +'diff' '_diff' +'diff3' '_diff3' +'diffstat' '_diffstat' +'dig' '_dig' +'dillo' '_webbrowser' +'dircmp' '_directories' +'dirs' '_dirs' +'disable' '_disable' +'disown' '_jobs_fg' +'display' '_imagemagick' +'dist' '_mh' +'django-admin' '_django' +'django-admin.py' '_django' +'dkms' '_dkms' +'dmake' '_make' +'dmesg' '_dmesg' +'dmidecode' '_dmidecode' +'doas' '_doas' +'docker' '_docker' +'docker-machine' '_docker-machine' +'domainname' '_yp' +'dos2unix' '_dos2unix' +'drill' '_drill' +'dropbox' '_dropbox' +'dropdb' '_postgresql' +'dropuser' '_postgresql' +'dsh' '_dsh' +'dtruss' '_dtruss' +'du' '_du' +'dvibook' '_dvi' +'dviconcat' '_dvi' +'dvicopy' '_dvi' +'dvidvi' '_dvi' +'dvipdf' '_dvi' +'dvips' '_dvi' +'dviselect' '_dvi' +'dvitodvi' '_dvi' +'dvitype' '_dvi' +'dwb' '_webbrowser' +'e2label' '_e2label' +'eatmydata' '_precommand' +'ebook-convert' '_calibre' +'ebook-edit' '_calibre' +'ebook-meta' '_calibre' +'ebook-polish' '_calibre' +'ebook-viewer' '_calibre' +'ecasound' '_ecasound' +'echotc' '_echotc' +'echoti' '_echoti' +'ed' '_ed' +'egrep' '_grep' +'elfdump' '_elfdump' +'elinks' '_elinks' +'emulate' '_emulate' +'enable' '_enable' +'enscript' '_enscript' +'entr' '_entr' +'env' '_env' +'eog' '_eog' +'epdfview' '_pdf' +'epsffit' '_psutils' +'erb' '_ruby' +'espeak' '_espeak' +'etags' '_etags' +'ethtool' '_ethtool' +'eu-nm' '_nm' +'eu-objdump' '_objdump' +'eu-readelf' '_readelf' +'eu-strings' '_strings' +'eval' '_precommand' +'eview' '_vim' +'evim' '_vim' +'evince' '_evince' +'ex' '_vi' +'exec' '_exec' +'expand' '_unexpand' +'export' '_typeset' +'express' '_webbrowser' +'extcheck' '_java' +'extractres' '_psutils' +'fakeroot' '_fakeroot' +'false' '_nothing' +'fc' '_fc' +'fc-list' '_xft_fonts' +'fc-match' '_xft_fonts' +'feh' '_feh' +'fetch-ebook-metadata' '_calibre' +'fetchmail' '_fetchmail' +'ffmpeg' '_ffmpeg' +'fg' '_jobs_fg' +'fgrep' '_grep' +'figlet' '_figlet' +'filterdiff' '_patchutils' +'find' '_find' +'findaffix' '_ispell' +'findmnt' '_findmnt' +'finger' '_finger' +'firefox' '_mozilla' +'fixdlsrps' '_psutils' +'fixfmps' '_psutils' +'fixmacps' '_psutils' +'fixpsditps' '_psutils' +'fixpspps' '_psutils' +'fixscribeps' '_psutils' +'fixtpps' '_psutils' +'fixwfwps' '_psutils' +'fixwpps' '_psutils' +'fixwwps' '_psutils' +'flac' '_flac' +'flatpak' '_flatpak' +'flex' '_flex' +'flex++' '_flex' +'flipdiff' '_patchutils' +'flist' '_mh' +'flists' '_mh' +'float' '_typeset' +'fmt' '_fmt' +'fmttest' '_mh' +'fned' '_zed' +'fnext' '_mh' +'fold' '_fold' +'folder' '_mh' +'folders' '_mh' +'fortune' '_fortune' +'forw' '_mh' +'fprev' '_mh' +'free' '_free' +'freebsd-make' '_make' +'freezer' '_openstack' +'fsh' '_fsh' +'ftp' '_hosts' +'functions' '_typeset' +'fuser' '_fuser' +'fusermount' '_fusermount' +'fwhois' '_whois' +'g++' '_gcc' +'galeon' '_webbrowser' +'gawk' '_awk' +'gb2sum' '_md5sum' +'gbase32' '_base64' +'gbase64' '_base64' +'gbasename' '_basename' +'gcat' '_cat' +'gcc' '_gcc' +'gccgo' '_go' +'gchgrp' '_chown' +'gchmod' '_chmod' +'gchown' '_chown' +'gchroot' '_chroot' +'gcksum' '_cksum' +'gcmp' '_cmp' +'gcomm' '_comm' +'gcore' '_gcore' +'gcp' '_cp' +'gcut' '_cut' +'gdate' '_date' +'gdb' '_gdb' +'gdd' '_dd' +'gdf' '_df' +'gdiff' '_diff' +'gdu' '_du' +'geany' '_geany' +'gegrep' '_grep' +'gem' '_gem' +'genisoimage' '_genisoimage' +'genv' '_env' +'get' '_sccs' +'getafm' '_psutils' +'getconf' '_getconf' +'getent' '_getent' +'getfacl' '_getfacl' +'getfacl.exe' '_getfacl' +'getfattr' '_attr' +'getmail' '_getmail' +'getopt' '_getopt' +'getopts' '_vars' +'gex' '_vim' +'gexpand' '_unexpand' +'gfgrep' '_grep' +'gfind' '_find' +'gfmt' '_fmt' +'gfold' '_fold' +'ggetopt' '_getopt' +'ggrep' '_grep' +'ggv' '_gnome-gv' +'ghead' '_head' +'ghostscript' '_ghostscript' +'ghostview' '_pspdf' +'gid' '_id' +'ginstall' '_install' +'git' '_git' +'git-cvsserver' '_git' +'git-receive-pack' '_git' +'git-shell' '_git' +'git-upload-archive' '_git' +'git-upload-pack' '_git' +'gitk' '_git' +'gjoin' '_join' +'glance' '_openstack' +'gln' '_ln' +'global' '_global' +'glocate' '_locate' +'gls' '_ls' +'gm' '_graphicsmagick' +'gmake' '_make' +'gmd5sum' '_md5sum' +'gmkdir' '_mkdir' +'gmkfifo' '_mkfifo' +'gmknod' '_mknod' +'gmktemp' '_mktemp' +'gmplayer' '_mplayer' +'gmv' '_mv' +'gnl' '_nl' +'gnocchi' '_openstack' +'gnome-gv' '_gnome-gv' +'gnumfmt' '_numfmt' +'gnupod_INIT' '_gnupod' +'gnupod_INIT.pl' '_gnupod' +'gnupod_addsong' '_gnupod' +'gnupod_addsong.pl' '_gnupod' +'gnupod_check' '_gnupod' +'gnupod_check.pl' '_gnupod' +'gnupod_search' '_gnupod' +'gnupod_search.pl' '_gnupod' +'gnutls-cli' '_gnutls' +'gnutls-cli-debug' '_gnutls' +'gnutls-serv' '_gnutls' +'god' '_od' +'gofmt' '_go' +'gpasswd' '_gpasswd' +'gpaste' '_paste' +'gpatch' '_patch' +'gpg' '_gpg' +'gpg-zip' '_gpg' +'gpg2' '_gpg' +'gpgv' '_gpg' +'gphoto2' '_gphoto2' +'gprintenv' '_printenv' +'gprof' '_gprof' +'gqview' '_gqview' +'gradle' '_gradle' +'gradlew' '_gradle' +'grail' '_webbrowser' +'greadlink' '_readlink' +'grep' '_grep' +'grepdiff' '_patchutils' +'grm' '_rm' +'grmdir' '_rmdir' +'groff' '_groff' +'groupadd' '_user_admin' +'groupdel' '_groups' +'groupmod' '_user_admin' +'groups' '_users' +'growisofs' '_growisofs' +'gs' '_ghostscript' +'gsbj' '_pspdf' +'gsdj' '_pspdf' +'gsdj500' '_pspdf' +'gsed' '_sed' +'gseq' '_seq' +'gsettings' '_gsettings' +'gsha1sum' '_md5sum' +'gsha224sum' '_md5sum' +'gsha256sum' '_md5sum' +'gsha384sum' '_md5sum' +'gsha512sum' '_md5sum' +'gshred' '_shred' +'gshuf' '_shuf' +'gslj' '_pspdf' +'gslp' '_pspdf' +'gsnd' '_pspdf' +'gsort' '_sort' +'gsplit' '_split' +'gstat' '_stat' +'gstdbuf' '_stdbuf' +'gstrings' '_strings' +'gstty' '_stty' +'gsum' '_cksum' +'gtac' '_tac' +'gtail' '_tail' +'gtar' '_tar' +'gtee' '_tee' +'gtimeout' '_timeout' +'gtouch' '_touch' +'gtr' '_tr' +'gtty' '_tty' +'guilt' '_guilt' +'guilt-add' '_guilt' +'guilt-applied' '_guilt' +'guilt-delete' '_guilt' +'guilt-files' '_guilt' +'guilt-fold' '_guilt' +'guilt-fork' '_guilt' +'guilt-header' '_guilt' +'guilt-help' '_guilt' +'guilt-import' '_guilt' +'guilt-import-commit' '_guilt' +'guilt-init' '_guilt' +'guilt-new' '_guilt' +'guilt-next' '_guilt' +'guilt-patchbomb' '_guilt' +'guilt-pop' '_guilt' +'guilt-prev' '_guilt' +'guilt-push' '_guilt' +'guilt-rebase' '_guilt' +'guilt-refresh' '_guilt' +'guilt-rm' '_guilt' +'guilt-series' '_guilt' +'guilt-status' '_guilt' +'guilt-top' '_guilt' +'guilt-unapplied' '_guilt' +'guname' '_uname' +'gunexpand' '_unexpand' +'guniq' '_uniq' +'gunzip' '_gzip' +'guptime' '_uptime' +'gv' '_gv' +'gview' '_vim' +'gvim' '_vim' +'gvimdiff' '_vim' +'gwc' '_wc' +'gwho' '_who' +'gxargs' '_xargs' +'gzcat' '_gzip' +'gzegrep' '_grep' +'gzfgrep' '_grep' +'gzgrep' '_grep' +'gzilla' '_webbrowser' +'gzip' '_gzip' +'hash' '_hash' +'hd' '_hexdump' +'head' '_head' +'heat' '_openstack' +'helm' '_helm' +'help' '_sccs' +'herbstclient' '_herbstclient' +'hexdump' '_hexdump' +'hg' '_hg' +'hilite' '_precommand' +'histed' '_zed' +'history' '_fc' +'host' '_host' +'hostname' '_hostname' +'hostnamectl' '_hostnamectl' +'hotjava' '_webbrowser' +'htop' '_htop' +'hub' '_hub' +'hugo' '_hugo' +'iceweasel' '_mozilla' +'icombine' '_ispell' +'iconv' '_iconv' +'iconvconfig' '_iconvconfig' +'id' '_id' +'identify' '_imagemagick' +'ifconfig' '_ifconfig' +'ifdown' '_net_interfaces' +'iftop' '_iftop' +'ifup' '_net_interfaces' +'ijoin' '_ispell' +'import' '_imagemagick' +'inc' '_mh' +'includeres' '_psutils' +'info' '_texinfo' +'infocmp' '_terminals' +'initctl' '_initctl' +'initdb' '_postgresql' +'insmod' '_modutils' +'install' '_install' +'install-info' '_texinfo' +'integer' '_typeset' +'interdiff' '_patchutils' +'ionice' '_ionice' +'iostat' '_iostat' +'ip' '_ip' +'ip6tables' '_iptables' +'ip6tables-restore' '_iptables' +'ip6tables-save' '_iptables' +'ipkg' '_opkg' +'ipsec' '_ipsec' +'ipset' '_ipset' +'iptables' '_iptables' +'iptables-restore' '_iptables' +'iptables-save' '_iptables' +'irb' '_ruby' +'ironic' '_openstack' +'irssi' '_irssi' +'isag' '_sysstat' +'ispell' '_ispell' +'iwconfig' '_iwconfig' +'jadetex' '_tex' +'jar' '_java' +'jarsigner' '_java' +'java' '_java' +'javac' '_java' +'javadoc' '_java' +'javah' '_java' +'javap' '_java' +'jdb' '_java' +'jobs' '_jobs_builtin' +'joe' '_joe' +'join' '_join' +'journalctl' '_journalctl' +'jq' '_jq' +'kdeconnect-cli' '_kdeconnect' +'kernel-install' '_kernel-install' +'keystone' '_openstack' +'keytool' '_java' +'kfmclient' '_kfmclient' +'kill' '_kill' +'killall' '_killall' +'killall5' '_killall' +'kioclient' '_kfmclient' +'knock' '_knock' +'konqueror' '_webbrowser' +'kpartx' '_kpartx' +'kpdf' '_pdf' +'ksh' '_sh' +'ksh88' '_sh' +'ksh93' '_sh' +'kubectl' '_kubectl' +'kvno' '_kvno' +'last' '_last' +'lastb' '_last' +'latex' '_tex' +'latexmk' '_tex' +'ldconfig' '_ldconfig' +'ldconfig.real' '_ldconfig' +'ldd' '_ldd' +'less' '_less' +'let' '_math' +'lftp' '_ncftp' +'lha' '_lha' +'libinput' '_libinput' +'light' '_webbrowser' +'limit' '_limit' +'links' '_links' +'links2' '_links' +'linux' '_uml' +'lldb' '_lldb' +'llvm-g++' '_gcc' +'llvm-gcc' '_gcc' +'llvm-objdump' '_objdump' +'ln' '_ln' +'loadkeys' '_loadkeys' +'local' '_typeset' +'locale' '_locale' +'localectl' '_localectl' +'localedef' '_localedef' +'locate' '_locate' +'log' '_nothing' +'logger' '_logger' +'loginctl' '_loginctl' +'logname' '_nothing' +'look' '_look' +'losetup' '_losetup' +'lp' '_lp' +'lpadmin' '_lp' +'lpinfo' '_lp' +'lpoptions' '_lp' +'lpq' '_lp' +'lpr' '_lp' +'lprm' '_lp' +'lpstat' '_lp' +'lrf2lrs' '_calibre' +'lrfviewer' '_calibre' +'ls' '_ls' +'lsattr' '_lsattr' +'lsblk' '_lsblk' +'lsdiff' '_patchutils' +'lsinitcpio' '_mkinitcpio' +'lsmod' '_modutils' +'lsns' '_lsns' +'lsof' '_lsof' +'lsusb' '_lsusb' +'ltrace' '_ltrace' +'lua' '_lua' +'luarocks' '_luarocks' +'lynx' '_lynx' +'lz4' '_lz4' +'lz4c' '_lz4' +'lz4c32' '_lz4' +'lz4cat' '_lz4' +'lzcat' '_xz' +'lzma' '_xz' +'lzop' '_lzop' +'mac2unix' '_dos2unix' +'machinectl' '_machinectl' +'magnum' '_openstack' +'mail' '_mail' +'mailx' '_mail' +'make' '_make' +'makeinfo' '_texinfo' +'makepkg' '_pacman' +'man' '_man' +'manage.py' '_django' +'manila' '_openstack' +'mark' '_mh' +'mat' '_mat' +'mat2' '_mat2' +'matlab' '_matlab' +'mattrib' '_mtools' +'mcd' '_mtools' +'mcopy' '_mtools' +'md2' '_cksum' +'md4' '_cksum' +'md5' '_cksum' +'md5sum' '_md5sum' +'mdadm' '_mdadm' +'mdel' '_mtools' +'mdeltree' '_mtools' +'mdir' '_mtools' +'mdu' '_mtools' +'mencal' '_mencal' +'mere' '_mere' +'merge' '_rcs' +'metaflac' '_flac' +'mformat' '_mtools' +'mgv' '_pspdf' +'mhfixmsg' '_mh' +'mhlist' '_mh' +'mhmail' '_mh' +'mhn' '_mh' +'mhparam' '_mh' +'mhpath' '_mh' +'mhshow' '_mh' +'mhstore' '_mh' +'mii-tool' '_mii-tool' +'mistral' '_openstack' +'mkdir' '_mkdir' +'mkfifo' '_mkfifo' +'mkinitcpio' '_mkinitcpio' +'mkisofs' '_growisofs' +'mknod' '_mknod' +'mksh' '_sh' +'mktemp' '_mktemp' +'mktunes' '_gnupod' +'mktunes.pl' '_gnupod' +'mlabel' '_mtools' +'mlocate' '_locate' +'mmd' '_mtools' +'mmm' '_webbrowser' +'mmount' '_mtools' +'mmove' '_mtools' +'modinfo' '_modutils' +'modprobe' '_modutils' +'module' '_module' +'mogrify' '_imagemagick' +'monasca' '_openstack' +'mondoarchive' '_mondo' +'montage' '_imagemagick' +'moosic' '_moosic' +'mosh' '_mosh' +'mount' '_mount' +'mozilla' '_mozilla' +'mozilla-firefox' '_mozilla' +'mozilla-xremote-client' '_mozilla' +'mpc' '_mpc' +'mplayer' '_mplayer' +'mpstat' '_sysstat' +'mpv' '_mpv' +'mr' '_myrepos' +'mrd' '_mtools' +'mread' '_mtools' +'mren' '_mtools' +'msgchk' '_mh' +'mt' '_mt' +'mtn' '_monotone' +'mtoolstest' '_mtools' +'mtr' '_mtr' +'mtype' '_mtools' +'munchlist' '_ispell' +'mupdf' '_mupdf' +'murano' '_openstack' +'mush' '_mail' +'mutt' '_mutt' +'mv' '_mv' +'mvim' '_vim' +'mx' '_hosts' +'mysql' '_mysql_utils' +'mysqladmin' '_mysql_utils' +'mysqldiff' '_mysqldiff' +'mysqldump' '_mysql_utils' +'mysqlimport' '_mysql_utils' +'mysqlshow' '_mysql_utils' +'nail' '_mail' +'native2ascii' '_java' +'nautilus' '_nautilus' +'nawk' '_awk' +'nc' '_netcat' +'ncal' '_cal' +'ncftp' '_ncftp' +'ncl' '_nedit' +'nedit' '_nedit' +'nedit-nc' '_nedit' +'netcat' '_netcat' +'netctl' '_netctl' +'netctl-auto' '_netctl' +'netrik' '_webbrowser' +'netscape' '_netscape' +'netstat' '_netstat' +'networkctl' '_networkctl' +'neutron' '_openstack' +'new' '_mh' +'newgrp' '_groups' +'next' '_mh' +'nginx' '_nginx' +'ngrep' '_ngrep' +'nice' '_nice' +'nkf' '_nkf' +'nl' '_nl' +'nm' '_nm' +'nmap' '_nmap' +'nmblookup' '_samba' +'nmcli' '_networkmanager' +'nocorrect' '_precommand' +'noglob' '_precommand' +'nohup' '_precommand' +'nova' '_openstack' +'npm' '_npm' +'ns' '_hosts' +'nsenter' '_nsenter' +'nslookup' '_nslookup' +'ntalk' '_other_accounts' +'numfmt' '_numfmt' +'nvim' '_vim' +'objdump' '_objdump' +'od' '_od' +'ogg123' '_vorbis' +'oggdec' '_vorbis' +'oggenc' '_vorbis' +'ogginfo' '_vorbis' +'oksh' '_sh' +'okular' '_okular' +'oomctl' '_oomctl' +'openstack' '_openstack' +'opera' '_webbrowser' +'opera-next' '_webbrowser' +'opkg' '_opkg' +'opusdec' '_opustools' +'opusenc' '_opustools' +'opusinfo' '_opustools' +'p4' '_perforce' +'p4d' '_perforce' +'pacat' '_pulseaudio' +'paccache' '_paccache' +'pacdiff' '_pacdiff' +'pack' '_pack' +'packf' '_mh' +'paclist' '_paclist' +'paclog-pkglist' '_paclog-pkglist' +'pacman' '_pacman' +'pacman-conf' '_pacman' +'pacman-key' '_pacman' +'pacman.static' '_pacman' +'pacmd' '_pulseaudio' +'pacscripts' '_pacscripts' +'pacsearch' '_pacsearch' +'pacsort' '_pacsort' +'pactl' '_pulseaudio' +'pactree' '_pactree' +'padsp' '_pulseaudio' +'pandoc' '_pandoc' +'paplay' '_pulseaudio' +'parec' '_pulseaudio' +'parecord' '_pulseaudio' +'pass' '_pass' +'passwd' '_users' +'paste' '_paste' +'pasuspender' '_pulseaudio' +'patch' '_patch' +'pax' '_pax' +'pcat' '_pack' +'pcp-htop' '_htop' +'pcred' '_pids' +'pdf2dsc' '_pdf' +'pdf2ps' '_pdf' +'pdffonts' '_pdf' +'pdfimages' '_pdf' +'pdfinfo' '_pdf' +'pdfjadetex' '_tex' +'pdflatex' '_tex' +'pdfopt' '_pdf' +'pdftex' '_tex' +'pdftexi2dvi' '_texinfo' +'pdftk' '_pdftk' +'pdftopbm' '_pdf' +'pdftops' '_pdf' +'pdftotext' '_pdf' +'pdksh' '_sh' +'perf' '_perf' +'perl' '_perl' +'perldoc' '_perldoc' +'pfiles' '_pids' +'pflags' '_pids' +'pg_config' '_postgresql' +'pg_ctl' '_postgresql' +'pg_dump' '_postgresql' +'pg_dumpall' '_postgresql' +'pg_isready' '_postgresql' +'pg_restore' '_postgresql' +'pg_upgrade' '_postgresql' +'pgrep' '_pgrep' +'php' '_php' +'pick' '_mh' +'picocom' '_picocom' +'pidof' '_pidof' +'pidstat' '_sysstat' +'pigz' '_gzip' +'pine' '_pine' +'pinef' '_pine' +'pinfo' '_texinfo' +'ping' '_ping' +'ping6' '_ping' +'pkg-config' '_pkg-config' +'pkgadd' '_pkgadd' +'pkgfile' '_pkgfile' +'pkginfo' '_pkginfo' +'pkgrm' '_pkgrm' +'pkill' '_pgrep' +'pldd' '_pids' +'pmake' '_make' +'pman' '_perl_modules' +'pmap' '_pmap' +'pmcat' '_perl_modules' +'pmdesc' '_perl_modules' +'pmeth' '_perl_modules' +'pmexp' '_perl_modules' +'pmfunc' '_perl_modules' +'pmload' '_perl_modules' +'pmls' '_perl_modules' +'pmpath' '_perl_modules' +'pmvers' '_perl_modules' +'podgrep' '_perl_modules' +'podpath' '_perl_modules' +'podtoc' '_perl_modules' +'poff' '_pon' +'policytool' '_java' +'pon' '_pon' +'popd' '_directory_stack' +'postconf' '_postfix' +'postgres' '_postgresql' +'postmaster' '_postgresql' +'postqueue' '_postfix' +'postsuper' '_postfix' +'pr' '_pr' +'prev' '_mh' +'print' '_print' +'printenv' '_printenv' +'printf' '_print' +'prompt' '_prompt' +'prove' '_prove' +'prs' '_sccs' +'prt' '_sccs' +'prun' '_pids' +'ps' '_ps' +'ps2ascii' '_pspdf' +'ps2epsi' '_postscript' +'ps2pdf' '_postscript' +'ps2pdf12' '_postscript' +'ps2pdf13' '_postscript' +'ps2pdf14' '_postscript' +'ps2pdfwr' '_postscript' +'ps2ps' '_postscript' +'psbook' '_psutils' +'psed' '_sed' +'psig' '_pids' +'psmerge' '_psutils' +'psmulti' '_postscript' +'psnup' '_psutils' +'psql' '_postgresql' +'psresize' '_psutils' +'psselect' '_psutils' +'pstack' '_pids' +'pstoedit' '_pspdf' +'pstop' '_pids' +'pstops' '_psutils' +'pstotgif' '_pspdf' +'pswrap' '_postscript' +'ptx' '_ptx' +'pulseaudio' '_pulseaudio' +'pump' '_pump' +'pushd' '_cd' +'pv' '_pv' +'pwait' '_pids' +'pwdx' '_pids' +'pwgen' '_pwgen' +'pyhtmlizer' '_twisted' +'qdbus' '_qdbus' +'qiv' '_qiv' +'qpdf' '_qpdf' +'quilt' '_quilt' +'r' '_fc' +'r2' '_r2' +'rabin2' '_rabin2' +'radiff2' '_radiff2' +'rafind2' '_rafind2' +'ragg2' '_ragg2' +'rahash2' '_rahash2' +'rake' '_rake' +'rankmirrors' '_rankmirrors' +'ranlib' '_ranlib' +'rar' '_rar' +'rasm2' '_rasm2' +'rax2' '_rax2' +'rc' '_sh' +'rclone' '_rclone' +'rcp' '_rlogin' +'rcs' '_rcs' +'rcsdiff' '_rcs' +'rdesktop' '_rdesktop' +'read' '_read' +'readelf' '_readelf' +'readlink' '_readlink' +'readonly' '_typeset' +'refile' '_mh' +'rehash' '_hash' +'reindexdb' '_postgresql' +'reload' '_initctl' +'remsh' '_rlogin' +'renice' '_renice' +'repl' '_mh' +'resolvectl' '_resolvectl' +'restart' '_initctl' +'restic' '_restic' +'retawq' '_webbrowser' +'rgrep' '_grep' +'rgview' '_vim' +'rgvim' '_vim' +'ri' '_ri' +'rlogin' '_rlogin' +'rm' '_rm' +'rmd160' '_cksum' +'rmdel' '_sccs' +'rmdir' '_rmdir' +'rmf' '_mh' +'rmic' '_java' +'rmid' '_java' +'rmiregistry' '_java' +'rmm' '_mh' +'rmmod' '_modutils' +'route' '_route' +'rrdtool' '_rrdtool' +'rsh' '_rlogin' +'rsync' '_rsync' +'rtin' '_tin' +'rubber' '_rubber' +'rubber-info' '_rubber' +'rubber-pipe' '_rubber' +'ruby' '_ruby' +'ruby-mri' '_ruby' +'run-help' '_run-help' +'rup' '_hosts' +'rusage' '_precommand' +'rview' '_vim' +'rvim' '_vim' +'rwho' '_hosts' +'rxvt' '_urxvt' +'s2p' '_sed' +'sact' '_sccs' +'sadf' '_sysstat' +'sahara' '_openstack' +'sar' '_sysstat' +'scan' '_mh' +'sccs' '_sccs' +'sccsdiff' '_sccs' +'sched' '_sched' +'schedtool' '_schedtool' +'scons' '_scons' +'scp' '_ssh' +'scrcpy' '_scrcpy' +'scrcpy.exe' '_scrcpy' +'screen' '_screen' +'script' '_script' +'scriptreplay' '_script' +'seaf-cli' '_seafile' +'sed' '_sed' +'senlin' '_openstack' +'seq' '_seq' +'serialver' '_java' +'service' '_service' +'set' '_set' +'setfacl' '_setfacl' +'setfacl.exe' '_setfacl' +'setfattr' '_attr' +'setopt' '_setopt' +'setpriv' '_setpriv' +'setsid' '_setsid' +'setxkbmap' '_setxkbmap' +'sftp' '_ssh' +'sh' '_sh' +'sha1' '_cksum' +'sha1sum' '_md5sum' +'sha224sum' '_md5sum' +'sha256' '_cksum' +'sha256sum' '_md5sum' +'sha384' '_cksum' +'sha384sum' '_md5sum' +'sha512' '_cksum' +'sha512sum' '_md5sum' +'sha512t256' '_cksum' +'shasum' '_shasum' +'shift' '_arrays' +'show' '_mh' +'showchar' '_psutils' +'showmount' '_showmount' +'shred' '_shred' +'shuf' '_shuf' +'shutdown' '_shutdown' +'sisu' '_sisu' +'skein1024' '_cksum' +'skein256' '_cksum' +'skein512' '_cksum' +'skipstone' '_webbrowser' +'slabtop' '_slabtop' +'slitex' '_tex' +'slocate' '_locate' +'slogin' '_ssh' +'slrn' '_slrn' +'smartctl' '_smartmontools' +'smbclient' '_samba' +'smbcontrol' '_samba' +'smbstatus' '_samba' +'soa' '_hosts' +'socket' '_socket' +'sort' '_sort' +'sortm' '_mh' +'source' '_source' +'spamassassin' '_spamassassin' +'split' '_split' +'splitdiff' '_patchutils' +'spt' '_spt' +'sqlite' '_sqlite' +'sqlite3' '_sqlite' +'sqsh' '_sqsh' +'sr' '_surfraw' +'srptool' '_gnutls' +'ss' '_ss' +'ssh' '_ssh' +'ssh-add' '_ssh' +'ssh-agent' '_ssh' +'ssh-copy-id' '_ssh' +'ssh-keygen' '_ssh' +'ssh-keyscan' '_ssh' +'sshfs' '_sshfs' +'star' '_tar' +'start' '_initctl' +'stat' '_stat' +'status' '_initctl' +'stdbuf' '_stdbuf' +'stg' '_stgit' +'stop' '_initctl' +'stow' '_stow' +'strace' '_strace' +'strace64' '_strace' +'strftime' '_strftime' +'strings' '_strings' +'strip' '_strip' +'strongswan' '_ipsec' +'stty' '_stty' +'su' '_su' +'subl' '_sublimetext' +'sudo' '_sudo' +'sudoedit' '_sudo' +'sum' '_cksum' +'surfraw' '_surfraw' +'sv' '_runit' +'svn' '_subversion' +'svnadmin' '_subversion' +'svnadmin-static' '_subversion' +'svnlite' '_subversion' +'svnliteadmin' '_subversion' +'swaks' '_swaks' +'swanctl' '_swanctl' +'swift' '_swift' +'swiftc' '_swift' +'sync' '_nothing' +'sysctl' '_sysctl' +'systemctl' '_systemctl' +'systemd-analyze' '_systemd-analyze' +'systemd-ask-password' '_systemd' +'systemd-cat' '_systemd' +'systemd-cgls' '_systemd' +'systemd-cgtop' '_systemd' +'systemd-delta' '_systemd-delta' +'systemd-detect-virt' '_systemd' +'systemd-inhibit' '_systemd-inhibit' +'systemd-machine-id-setup' '_systemd' +'systemd-notify' '_systemd' +'systemd-nspawn' '_systemd-nspawn' +'systemd-path' '_systemd-path' +'systemd-resolve' '_resolvectl' +'systemd-run' '_systemd-run' +'systemd-tmpfiles' '_systemd-tmpfiles' +'systemd-tty-ask-password-agent' '_systemd' +'tac' '_tac' +'tacker' '_openstack' +'tail' '_tail' +'talk' '_other_accounts' +'tar' '_tar' +'tardy' '_tardy' +'tcp_open' '_tcpsys' +'tcpdump' '_tcpdump' +'tcptraceroute' '_tcptraceroute' +'tcsh' '_sh' +'tda' '_devtodo' +'tdd' '_devtodo' +'tde' '_devtodo' +'tdr' '_devtodo' +'tee' '_tee' +'telnet' '_telnet' +'tex' '_tex' +'texi2any' '_texinfo' +'texi2dvi' '_texinfo' +'texi2pdf' '_texinfo' +'texindex' '_texinfo' +'tg' '_topgit' +'tidy' '_tidy' +'tig' '_git' +'time' '_precommand' +'timedatectl' '_timedatectl' +'timeout' '_timeout' +'times' '_nothing' +'tin' '_tin' +'tkconch' '_twisted' +'tkinfo' '_texinfo' +'tla' '_tla' +'tload' '_tload' +'tmux' '_tmux' +'todo' '_devtodo' +'todo.sh' '_todo.sh' +'toilet' '_toilet' +'top' '_top' +'totdconfig' '_totd' +'touch' '_touch' +'tpb' '_tpb' +'tput' '_tput' +'tr' '_tr' +'tracepath' '_tracepath' +'tracepath6' '_tracepath' +'traceroute' '_hosts' +'transmission-remote' '_transmission' +'trap' '_trap' +'tree' '_tree' +'trial' '_twisted' +'trove' '_openstack' +'true' '_nothing' +'truncate' '_truncate' +'truss' '_truss' +'tryaffix' '_ispell' +'tty' '_tty' +'ttyctl' '_ttyctl' +'tunctl' '_uml' +'tune2fs' '_tune2fs' +'tunes2pod' '_gnupod' +'tunes2pod.pl' '_gnupod' +'twidge' '_twidge' +'twist' '_twisted' +'twistd' '_twisted' +'txt' '_hosts' +'type' '_which' +'typeset' '_typeset' +'udevadm' '_udevadm' +'udisksctl' '_udisks2' +'ulimit' '_ulimit' +'uml_mconsole' '_uml' +'uml_moo' '_uml' +'uml_switch' '_uml' +'umount' '_mount' +'unace' '_unace' +'unalias' '_aliases' +'uname' '_uname' +'uncompress' '_compress' +'unexpand' '_unexpand' +'unfunction' '_functions' +'unget' '_sccs' +'unhash' '_unhash' +'uniq' '_uniq' +'unison' '_unison' +'units' '_units' +'unix2dos' '_dos2unix' +'unix2mac' '_dos2unix' +'unlimit' '_limits' +'unlz4' '_lz4' +'unlzma' '_xz' +'unpack' '_pack' +'unpigz' '_gzip' +'unrar' '_rar' +'unset' '_vars' +'unsetopt' '_setopt' +'unshare' '_unshare' +'unwrapdiff' '_patchutils' +'unxz' '_xz' +'unzip' '_zip' +'updpkgsums' '_updpkgsums' +'uptime' '_uptime' +'urxvt' '_urxvt' +'urxvt256c' '_urxvt' +'urxvt256c-ml' '_urxvt' +'urxvt256c-mlc' '_urxvt' +'urxvt256cc' '_urxvt' +'urxvtc' '_urxvt' +'useradd' '_user_admin' +'userdel' '_users' +'usermod' '_user_admin' +'vacuumdb' '_postgresql' +'val' '_sccs' +'valgrind' '_valgrind' +'vared' '_vared' +'vcs_info_hookadd' '_vcs_info' +'vcs_info_hookdel' '_vcs_info' +'vd' '_visidata' +'vi' '_vi' +'view' '_vi' +'vifm' '_vifm' +'vim' '_vim' +'vimdiff' '_vim' +'virsh' '_libvirt' +'virt-admin' '_libvirt' +'virt-host-validate' '_libvirt' +'virt-pki-validate' '_libvirt' +'virt-xml-validate' '_libvirt' +'visidata' '_visidata' +'visudo' '_visudo' +'vitrage' '_openstack' +'vmstat' '_vmstat' +'vncserver' '_vnc' +'vncviewer' '_vnc' +'vorbiscomment' '_vorbis' +'vpnc' '_vpnc' +'vpnc-connect' '_vpnc' +'vserver' '_vserver' +'w' '_w' +'w3m' '_w3m' +'wait' '_wait' +'watch' '_watch' +'watcher' '_openstack' +'wc' '_wc' +'wget' '_wget' +'what' '_sccs' +'whatis' '_man' +'whence' '_which' +'where' '_which' +'whereis' '_whereis' +'which' '_which' +'who' '_who' +'whoami' '_nothing' +'whois' '_whois' +'whom' '_mh' +'wifi-menu' '_netctl' +'wiggle' '_wiggle' +'wipefs' '_wipefs' +'wodim' '_cdrecord' +'wpa_cli' '_wpa_cli' +'write' '_users_on' +'www' '_webbrowser' +'xargs' '_xargs' +'xattr' '_attr' +'xauth' '_xauth' +'xautolock' '_xautolock' +'xclip' '_xclip' +'xdpyinfo' '_x_utils' +'xdvi' '_xdvi' +'xelatex' '_tex' +'xetex' '_tex' +'xev' '_x_utils' +'xfd' '_x_utils' +'xfig' '_xfig' +'xfontsel' '_x_utils' +'xfreerdp' '_rdesktop' +'xhost' '_x_utils' +'xinput' '_xinput' +'xkill' '_x_utils' +'xli' '_xloadimage' +'xloadimage' '_xloadimage' +'xlsatoms' '_x_utils' +'xlsclients' '_x_utils' +'xml' '_xmlstarlet' +'xmllint' '_xmlsoft' +'xmlstarlet' '_xmlstarlet' +'xmms2' '_xmms2' +'xmodmap' '_xmodmap' +'xmosaic' '_webbrowser' +'xon' '_x_utils' +'xournal' '_xournal' +'xpdf' '_xpdf' +'xping' '_hosts' +'xprop' '_x_utils' +'xrandr' '_xrandr' +'xrdb' '_x_utils' +'xscreensaver-command' '_xscreensaver' +'xset' '_xset' +'xsetbg' '_xloadimage' +'xsetroot' '_x_utils' +'xsltproc' '_xmlsoft' +'xterm' '_xterm' +'xtightvncviewer' '_vnc' +'xtp' '_imagemagick' +'xv' '_xv' +'xview' '_xloadimage' +'xvnc4viewer' '_vnc' +'xvncviewer' '_vnc' +'xwd' '_x_utils' +'xwininfo' '_x_utils' +'xwit' '_xwit' +'xwud' '_x_utils' +'xxd' '_xxd' +'xz' '_xz' +'xzcat' '_xz' +'yafc' '_yafc' +'yash' '_sh' +'ypbind' '_yp' +'ypcat' '_yp' +'ypmatch' '_yp' +'yppasswd' '_yp' +'yppoll' '_yp' +'yppush' '_yp' +'ypserv' '_yp' +'ypset' '_yp' +'ypwhich' '_yp' +'ypxfr' '_yp' +'ytalk' '_other_accounts' +'zargs' '_zargs' +'zathura' '_zathura' +'zcalc' '_zcalc' +'zcat' '_zcat' +'zcompile' '_zcompile' +'zcp' '_zmv' +'zdb' '_zfs' +'zdelattr' '_zattr' +'zdump' '_zdump' +'zeal' '_zeal' +'zed' '_zed' +'zegrep' '_grep' +'zen' '_webbrowser' +'zf_chgrp' '_chown' +'zf_chmod' '_chmod' +'zf_chown' '_chown' +'zf_ln' '_ln' +'zf_mkdir' '_mkdir' +'zf_mv' '_mv' +'zf_rm' '_rm' +'zf_rmdir' '_rmdir' +'zfgrep' '_grep' +'zfs' '_zfs' +'zgetattr' '_zattr' +'zgrep' '_grep' +'zip' '_zip' +'zipinfo' '_zip' +'zle' '_zle' +'zlistattr' '_zattr' +'zln' '_zmv' +'zmail' '_mail' +'zmodload' '_zmodload' +'zmv' '_zmv' +'zone' '_hosts' +'zparseopts' '_zparseopts' +'zpool' '_zfs' +'zpty' '_zpty' +'zsetattr' '_zattr' +'zsh' '_zsh' +'zsh-mime-handler' '_zsh-mime-handler' +'zsocket' '_zsocket' +'zstat' '_stat' +'zstyle' '_zstyle' +'ztodo' '_ztodo' +'zun' '_openstack' +'zxpdf' '_xpdf' +) + +_services=( +'-redirect-,<,bunzip2' 'bunzip2' +'-redirect-,<,bzip2' 'bzip2' +'-redirect-,<,compress' 'compress' +'-redirect-,<,gunzip' 'gunzip' +'-redirect-,<,gzip' 'gzip' +'-redirect-,<,uncompress' 'uncompress' +'-redirect-,<,unxz' 'unxz' +'-redirect-,<,xz' 'xz' +'-redirect-,>,bzip2' 'bunzip2' +'-redirect-,>,compress' 'uncompress' +'-redirect-,>,gzip' 'gunzip' +'-redirect-,>,xz' 'unxz' +'Mail' 'mail' +'bzcat' 'bunzip2' +'gchgrp' 'chgrp' +'gchown' 'chown' +'gnupod_INIT.pl' 'gnupod_INIT' +'gnupod_addsong.pl' 'gnupod_addsong' +'gnupod_check.pl' 'gnupod_check' +'gnupod_search.pl' 'gnupod_search' +'gpg2' 'gpg' +'gzcat' 'gunzip' +'iceweasel' 'firefox' +'lzcat' 'unxz' +'lzma' 'xz' +'mailx' 'mail' +'mktunes.pl' 'mktunes' +'nail' 'mail' +'ncl' 'nc' +'nedit-nc' 'nc' +'pacman.static' 'pacman' +'pcat' 'unpack' +'remsh' 'rsh' +'slogin' 'ssh' +'svnadmin-static' 'svnadmin' +'svnlite' 'svn' +'svnliteadmin' 'svnadmin' +'tunes2pod.pl' 'tunes2pod' +'unlzma' 'unxz' +'xelatex' 'latex' +'xetex' 'tex' +'xzcat' 'unxz' +'zf_chgrp' 'chgrp' +'zf_chown' 'chown' +) + +_patcomps=( +'*/(init|rc[0-9S]#).d/*' '_init_d' +) + +_postpatcomps=( +'(p[bgpn]m*|*top[bgpn]m)' '_pbm' +'(ruby|[ei]rb)[0-9.]#' '_ruby' +'(texi(2*|ndex))' '_texi' +'(tiff*|*2tiff|pal2rgb)' '_tiff' +'*/X11(|R<4->)/*' '_x_arguments' +'-value-,(ftp|http(|s))_proxy,-default-' '_urls' +'-value-,*PATH,-default-' '_dir_list' +'-value-,*path,-default-' '_directories' +'-value-,BORG_*,-default-' '_borg' +'-value-,LC_*,-default-' '_locales' +'-value-,RUBY(LIB|OPT|PATH),-default-' '_ruby' +'_*' '_compadd' +'c++-*' '_gcc' +'g++-*' '_gcc' +'gcc-*' '_gcc' +'gem[0-9.]#' '_gem' +'lua[0-9.-]##' '_lua' +'php[0-9.-]' '_php' +'pydoc[0-9.]#' '_pydoc' +'python[0-9.]#' '_python' +'qemu(|-system-*)' '_qemu' +'shasum(|5).*' '_shasum' +'yodl(|2*)' '_yodl' +'zf*' '_zftp' +) + +_compautos=( +'_call_program' '+X' +) + +zle -C _bash_complete-word .complete-word _bash_completions +zle -C _bash_list-choices .list-choices _bash_completions +zle -C _complete_debug .complete-word _complete_debug +zle -C _complete_help .complete-word _complete_help +zle -C _complete_tag .complete-word _complete_tag +zle -C _correct_filename .complete-word _correct_filename +zle -C _correct_word .complete-word _correct_word +zle -C _expand_alias .complete-word _expand_alias +zle -C _expand_word .complete-word _expand_word +zle -C _history-complete-newer .complete-word _history_complete_word +zle -C _history-complete-older .complete-word _history_complete_word +zle -C _list_expansions .list-choices _expand_word +zle -C _most_recent_file .complete-word _most_recent_file +zle -C _next_tags .list-choices _next_tags +zle -C _read_comp .complete-word _read_comp +bindkey '^X^R' _read_comp +bindkey '^X?' _complete_debug +bindkey '^XC' _correct_filename +bindkey '^Xa' _expand_alias +bindkey '^Xc' _correct_word +bindkey '^Xd' _list_expansions +bindkey '^Xe' _expand_word +bindkey '^Xh' _complete_help +bindkey '^Xm' _most_recent_file +bindkey '^Xn' _next_tags +bindkey '^Xt' _complete_tag +bindkey '^X~' _bash_list-choices +bindkey '^[,' _history-complete-newer +bindkey '^[/' _history-complete-older +bindkey '^[~' _bash_complete-word + +autoload -Uz _bluetoothctl _bootctl _borg _btm _buku \ + _busctl _bwrap _calibre _cargo _checkupdates \ + _cmus _coredumpctl _curl _docker _docker-machine \ + _flatpak _helm _hg _hostnamectl _hub \ + _hugo _journalctl _kernel-install _kubectl _libinput \ + _localectl _loginctl _machinectl _mkinitcpio _mpv \ + _netctl _networkctl _oomctl _paccache _pacdiff \ + _paclist _paclog-pkglist _pacman _pacscripts _pacsearch \ + _pacsort _pactree _pass _pkgfile _pulseaudio \ + _qpdf _r2 _rabin2 _radiff2 _rafind2 \ + _ragg2 _rahash2 _rankmirrors _rasm2 _rax2 \ + _rclone _resolvectl _restic _scrcpy _sd_hosts_or_user_at_host \ + _sd_machines _sd_outputmodes _sd_unit_files _spt _systemctl \ + _systemd _systemd-analyze _systemd-delta _systemd-inhibit _systemd-nspawn \ + _systemd-path _systemd-run _systemd-tmpfiles _the_silver_searcher _timedatectl \ + _udevadm _udisks2 _updpkgsums _vifm _visidata \ + _zathura _cdr _all_labels _all_matches _alternative \ + _approximate _arg_compile _arguments _bash_completions _cache_invalid \ + _call_function _combination _comp_locale _complete _complete_debug \ + _complete_help _complete_help_generic _complete_tag _correct _correct_filename \ + _correct_word _describe _description _dispatch _expand \ + _expand_alias _expand_word _extensions _external_pwds _generic \ + _guard _history _history_complete_word _ignored _list \ + _main_complete _match _menu _message _most_recent_file \ + _multi_parts _next_label _next_tags _normal _nothing \ + _numbers _oldlist _pick_variant _prefix _read_comp \ + _regex_arguments _regex_words _requested _retrieve_cache _sep_parts \ + _sequence _set_command _setup _store_cache _sub_commands \ + _tags _user_expand _values _wanted _acpi \ + _acpitool _alsa-utils _analyseplugin _basenc _brctl \ + _btrfs _capabilities _chattr _chcon _choom \ + _chrt _cpupower _cryptsetup _dkms _e2label \ + _ethtool _findmnt _free _fuse_arguments _fuse_values \ + _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 _pmap _qdbus _schedtool _selinux_contexts \ + _selinux_roles _selinux_types _selinux_users _setpriv _setsid \ + _slabtop _ss _sshfs _strace _sysstat \ + _tload _tpb _tracepath _tune2fs _uml \ + _unshare _valgrind _vserver _wakeup_capable_devices _wipefs \ + _wpa_cli _a2ps _aap _abcde _absolute_command_paths \ + _ack _adb _ansible _ant _antiword \ + _apachectl _apm _arch_archives _arch_namespace _arp \ + _arping _asciidoctor _asciinema _at _attr \ + _augeas _avahi _awk _base64 _basename \ + _bash _baudrates _baz _beep _bibtex \ + _bind_addresses _bison _bittorrent _bogofilter _bpf_filters \ + _bpython _bzip2 _bzr _cabal _cal \ + _calendar _canonical_paths _cat _ccal _cdcd \ + _cdrdao _cdrecord _chkconfig _chmod _chown \ + _chroot _chsh _cksum _clay _cmdambivalent \ + _cmdstring _cmp _column _comm _composer \ + _compress _configure _cowsay _cp _cpio \ + _cplay _crontab _cscope _csplit _cssh \ + _ctags _ctags_tags _curl _cut _cvs \ + _darcs _date _date_formats _dates _dbus \ + _dconf _dd _devtodo _df _dhclient \ + _dict _dict_words _diff _diff3 _diff_options \ + _diffstat _dig _dir_list _directories _django \ + _dmesg _dmidecode _dns_types _doas _domains \ + _dos2unix _drill _dropbox _dsh _dtruss \ + _du _dvi _ecasound _ed _elfdump \ + _elinks _email_addresses _enscript _entr _env \ + _espeak _etags _fakeroot _feh _fetchmail \ + _ffmpeg _figlet _file_modes _file_systems _files \ + _find _find_net_interfaces _finger _flac _flex \ + _fmt _fold _fortune _fsh _fuser \ + _gcc _gcore _gdb _gem _genisoimage \ + _getconf _getent _getfacl _getmail _getopt \ + _ghostscript _git _global _global_tags _gnu_generic \ + _gnupod _gnutls _go _gpg _gphoto2 \ + _gprof _gradle _graphicsmagick _grep _groff \ + _groups _growisofs _gsettings _guilt _gzip \ + _have_glob_qual _head _hexdump _host _hostname \ + _hosts _iconv _id _ifconfig _iftop \ + _imagemagick _init_d _initctl _install _iostat \ + _ip _ipsec _irssi _ispell _java \ + _java_class _joe _join _jq _killall \ + _knock _kvno _last _ld_debug _ldconfig \ + _ldd _less _lha _libvirt _links \ + _list_files _lldb _ln _loadkeys _locale \ + _localedef _locales _locate _logger _look \ + _lp _ls _lsof _lua _luarocks \ + _lynx _lz4 _lzop _mail _mailboxes \ + _make _man _md5sum _mencal _mh \ + _mime_types _mkdir _mkfifo _mknod _mktemp \ + _module _monotone _moosic _mosh _mount \ + _mpc _mt _mtools _mtr _mutt \ + _mv _my_accounts _myrepos _mysql_utils _mysqldiff \ + _ncftp _net_interfaces _netcat _netstat _newsgroups \ + _nginx _ngrep _nice _nkf _nl \ + _nm _nmap _npm _nslookup _numfmt \ + _objdump _object_files _od _openstack _opustools \ + _other_accounts _pack _pandoc _paste _patch \ + _patchutils _path_commands _path_files _pax _pbm \ + _pdf _perforce _perl _perl_basepods _perl_modules \ + _perldoc _pgids _pgrep _php _picocom \ + _pids _pine _ping _pkg-config _pkg_instance \ + _pkgadd _pkginfo _pkgrm _pon _ports \ + _postfix _postgresql _postscript _pr _printenv \ + _printers _process_names _prove _ps _pspdf \ + _psutils _ptx _pump _pv _pwgen \ + _pydoc _python _python_modules _qemu _quilt \ + _rake _ranlib _rar _rclone _rcs \ + _readelf _readlink _remote_files _renice _ri \ + _rlogin _rm _rmdir _route _rrdtool \ + _rsync _rubber _ruby _runit _samba \ + _sccs _scons _screen _script _seafile \ + _sed _seq _service _services _setfacl \ + _sh _shasum _showmount _shred _shuf \ + _shutdown _signals _sisu _slrn _smartmontools \ + _socket _sort _spamassassin _split _sqlite \ + _sqsh _ssh _ssh_hosts _stat _stdbuf \ + _stgit _stow _strings _strip _stty \ + _su _subversion _sudo _surfraw _swaks \ + _swanctl _swift _sys_calls _sysctl _tac \ + _tail _tar _tar_archive _tardy _tcpdump \ + _tcptraceroute _tee _telnet _terminals _tex \ + _texi _texinfo _tidy _tiff _tilde_files \ + _time_zone _timeout _tin _tla _tmux \ + _todo.sh _toilet _top _topgit _totd \ + _touch _tput _tr _transmission _tree \ + _truncate _truss _tty _ttys _twidge \ + _twisted _umountable _unace _uname _unexpand \ + _uniq _unison _units _uptime _urls \ + _user_admin _user_at_host _users _users_on _vi \ + _vim _visudo _vmstat _vorbis _vpnc \ + _w _w3m _watch _wc _webbrowser \ + _wget _whereis _who _whois _wiggle \ + _xargs _xmlsoft _xmlstarlet _xmms2 _xxd \ + _xz _yafc _yodl _yp _zcat \ + _zdump _zfs _zfs_dataset _zfs_pool _zip \ + _zsh _acroread _code _dcop _eog \ + _evince _geany _gnome-gv _gqview _gv \ + _herbstclient _kdeconnect _kfmclient _matlab _mozilla \ + _mplayer _mupdf _nautilus _nedit _netscape \ + _okular _pdftk _qiv _rdesktop _setxkbmap \ + _sublimetext _urxvt _vnc _x_arguments _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_utils \ + _x_visual _x_window _xauth _xautolock _xclip \ + _xdvi _xfig _xft_fonts _xinput _xloadimage \ + _xmodmap _xournal _xpdf _xrandr _xscreensaver \ + _xset _xt_arguments _xt_session_id _xterm _xv \ + _xwit _zeal __arguments _add-zle-hook-widget _add-zsh-hook \ + _alias _aliases _arrays _assign _autocd \ + _bindkey _brace_parameter _builtin _cd _command \ + _command_names _compadd _compdef _completers _condition \ + _default _delimiters _directory_stack _dirs _disable \ + _dynamic_directory_name _echotc _echoti _emulate _enable \ + _equal _exec _fc _file_descriptors _first \ + _functions _globflags _globqual_delims _globquals _hash \ + _history_modifiers _in_vared _jobs _jobs_bg _jobs_builtin \ + _jobs_fg _kill _limit _limits _math \ + _math_params _mere _module_math_func _options _options_set \ + _options_unset _parameter _parameters _precommand _print \ + _prompt _ps1234 _read _redirect _run-help \ + _sched _set _setopt _source _strftime \ + _subscript _suffix_alias_files _tcpsys _tilde _trap \ + _ttyctl _typeset _ulimit _unhash _user_math_func \ + _value _vared _vars _vcs_info _vcs_info_hooks \ + _wait _which _widgets _zargs _zattr \ + _zcalc _zcalc_line _zcompile _zed _zftp \ + _zle _zmodload _zmv _zparseopts _zpty \ + _zsh-mime-handler _zsocket _zstyle _ztodo +autoload -Uz +X _call_program + +typeset -gUa _comp_assocs +_comp_assocs=( '' ) diff --git a/zsh/.zprofile b/zsh/.config/zsh/.zlogin diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc @@ -0,0 +1,14 @@ +# ░▀▀█░█▀▀░█░█░░ +# ░▄▀░░▀▀█░█▀█░░ +# ░▀▀▀░▀▀▀░▀░▀░░ + +# set hostname +HOSTNAME=$(hostname -s) + +# load configs +for config (~/.config/zsh/*.zsh) source $config +setopt auto_cd + +export PATH=$PATH:/home/pyratebeard/bin:/home/pyratebeard/.local/bin + +source ~/.config/zsh/downtime.zsh diff --git a/zsh/.config/zsh/aliases.zsh b/zsh/.config/zsh/aliases.zsh @@ -0,0 +1,261 @@ +# ██ +# ░██ +# ██████ ██████░██ +# ░░░░██ ██░░░░ ░██████ +# ██ ░░█████ ░██░░░██ +# ██ ░░░░░██░██ ░██ +# ██████ ██████ ░██ ░██ +# ░░░░░░ ░░░░░░ ░░ ░░ +# s h e l l a l i a s e s +# +# author ▓▒ pyratebeard +# code ▓▒ https://git.pyratebeard.net/dotfiles/file/zsh/.zsh/aliases.zsh.html +# colours +red="\e[31m" +green="\e[32m" +reset="\e[0m" + +# ▓▓▒░ root +# check for doas so aliases can be used on different systems +# add whitespace for hack to make aliases woth with {sudo,doas} +command -v doas >/dev/null && \ + alias sudo='doas ' || \ + alias sudo='sudo ' + +# ▓▓▒░ unix +# openbsd's ls(1) doesn't provide the `--color` option. +# i have grown to like this and spent a long time +# trying to find a work around, but none exists tiko. +# so i succumbed to installing coreutils and doing this +command -v gls >/dev/null && \ + alias ls="gls -hF --color=auto" || \ + alias ls="ls -hF --color=auto" + +# i also need dircolors(1) from coreutils for zsh autocompletion +command -v gdircolors >/dev/null && alias dircolors="gdircolors" + +# i make use of some funky shit in my log makefiles +# which isn't possible using the openbsd make(1) +command -v gmake >/dev/null && alias make='gmake' + + +# ▓▓▒░ sys + alias \ + ll="ls -lahF --color=auto" \ + lsl="ls -lhF --color=auto" \ + llrt="ls -lahFrt --color=auto" \ + \ + cp="cp -r" \ + rmrf="rm -rf" \ + scp="scp -r" \ + \ + up="cd ../" \ + mkdir="mkdir -p" \ + \ + xsel="xsel -b" \ + fuck='sudo $(fc -ln -1)' \ + dd="dd status=progress" \ + \ + term="urxvtc -hold -e " \ + \ + reboot="sudo reboot" \ + systemctl="sudo systemctl" + + +# ▓▓▒░ info + alias \ + psef="ps -ef" \ + jobs="jobs -l" \ + \?is="whereis" \ + disks='echo "┌──┄";echo "├┄ m o u n t . p o i n t s"; echo "└──┄┄────┄┄"; lsblk -a; echo ""; echo "┌──┄";echo "├┄ d i s k . u s a g e"; echo "└──┄┄────┄┄"; sudo df -h -x tmpfs -x devtmpfs;' \ + ag="ag --color --color-line-number '0;35' --color-match '46;30' --color-path '4;36'" \ + tree='tree -CAFa -I "CVS|*.*.package|.svn|.git|.hg|node_modules|bower_components" --dirsfirst' + + +# ▓▓▒░ almighty text editor + alias \ + v="vim" \ + vi="vim" \ + emacs="vim" + + +# ▓▓▒░ git + alias \ + g="git" \ + ga="git add" \ + gb="git branch" \ + gc="git commit -S -m" \ + gs="git status -sb" \ + gd="git diff" \ + gf="git fetch && git log --pretty=format:'%C(always,yellow)%h%Creset %s %Cred%d' ..@{u}" \ + gm="git merge" \ + gr="git rebase" \ + gp="git push" \ + gu="git unstage" \ + gg="git log --graph" \ + gco="git checkout" \ + gsm="git status -sbuno" \ + gpr="git request-pull" \ + ggg="git graphgpg" + + gcl() { + git clone "${@}" + test -n "${2}" && _dir=${2} || _dir=${1##*/} + cd ${_dir%.git} + } + + +# ▓▓▒░ pacman + alias \ + pac="sudo pacman" \ + pacman="sudo pacman" \ + update="sudo paccache -r ; pacman -S --noconfirm archlinux-keyring ; pacman -Syu" + + +# ▓▓▒░ net + alias \ + ss="sudo ss" \ + netctl="sudo netctl" \ + openvpn="sudo openvpn" \ + # need ot find a better way to do this + #iip="ip a s $(ip r | grep default | grep -oP '(?<=dev )[^ ]*')" \ + failover="sudo ip link set enp5s0 down" \ + failback="sudo ip link set enp5s0 up" + + +# ▓▓▒░ devops + alias \ + ap="ansible-playbook" \ + \ + lxc-ls="lxc-ls -f" \ + lxls="lxc-ls -f" \ + lxst="lxc-start" \ + lxsp="lxc-stop" \ + lxat="lxc-attach" \ + \ + docker="sudo docker" \ + docker-compose="sudo docker-compose" \ + dtail="docker logs -tf --tail='50'" \ + dps="docker ps" \ + dpsa="docker ps -a" \ + dstart="docker start" \ + dstop="docker stop" \ + drm="docker rm" \ + drmi="docker rmi" \ + dcomp="docker-compose -f ./docker-compose.yml" \ + \ + tf="terraform" \ + tfi="terraform init" \ + tfa="terraform apply --auto-approve" \ + tfp="terraform plan" \ + tfd="terraform destroy" \ + \ + kc="KUBECONFIG=./kubeconfig.yml kubectl" + + +# ▓▓▒░ recording + + alias \ + record="ffmpeg -f x11grab -s 1366x768 -an -r 16 -loglevel quiet -i :0.0 -b:v 5M -y" + + # record the primary screen + screencast() { + test $1 && NAME=$1 || NAME="screencast" + RESOLUTION=$(xrandr | grep "*" | awk '{print $1}' | head -n1) + echo "recording to ${HOME}/lib/videos/recordings/screencasts/$(date +%Y%m%d)-${NAME}.webm" + ffmpeg -f x11grab -s ${RESOLUTION} -an -r 16 -loglevel quiet -i :0.0 -b:v 5M -y ${HOME}/lib/videos/recordings/screencasts/$(date +%Y%m%d)-${NAME}.webm + } + + # take picture with webcam + webcapture() { + NUM=$(ls -l $HOME/tmp/*webcapture*|wc -l) + NUM=$(( NUM + 1 )) + ffmpeg -f video4linux2 -s 640x480 -i /dev/video0 -ss 0:0:2 -frames 1 $HOME/tmp/$(date +%Y%m%d)-webcapture-${NUM}.png + } + + +# ▓▓▒░ suffix + alias -s \ + md=vim \ + {png,jpg,jpeg}=sxiv \ + pdf=zathura \ + mp4=mpv + + +# ▓▓▒░ misc + alias \ + mixer="alsamixer" \ + news="newsboat" \ + gifview="gifview -a" \ + mail="mutt -F ~/.mutt/muttrc-imap" \ + \ + headsetbatt="bluetooth_battery 34:DF:2A:5F:04:2C" \ + headset="echo 'connect 34:DF:2A:5F:04:2C' | bluetoothctl" \ + bton="echo 'power on' | bluetoothctl" \ + btoff="echo 'power off' | bluetoothctl" \ + \ + nodisturb="dunstctl set-paused true" \ + disturb="dunstctl set-paused false" \ + \ + sacc="PAGER=less sacc" \ + gopher="PAGER=less sacc g.nixers.net/1/~pyratebeard/startpage.gph" \ + buku="buku --np" \ + tin="NNTPSERVER=eu.newsdemon.com ~/.local/src/warez/tin/tin-latest/src/tin -r -A"\ + drawterm="drawterm -h 9p.sdf.org -a 9p.sdf.org -u pyratebeard" \ + \ + kb="keybase" \ + irc="mosh irclient -- ksh -c 'dtach -A /tmp/irc irssi'" \ + feh="feh -g 640x480" \ + rum.sh="nc rum.sh 9999" \ + moebius="cd $HOME/.local/src/warez/moebius ; /usr/bin/npm start" \ + cointop="$HOME/.local/src/go/bin/cointop --hide-statusbar" + +# ▓▓▒░ fun(ctions) + + email() { + echo $3 | mutt -s $2 $1 + } + + # connect to tmux on ssh + # host autocomplete - $HOME/.zsh/completion/_ssux + ssux() { + test $# -gt 0 && SYSTEM="$@" || SYSTEM=$(tmux list-windows | awk '/*/{print $2}' | tr -d '*') + TERM=screen ssh -t "${SYSTEM}" 'tmux attach || tmux new' || ssh "${SYSTEM}" + } + + # sets terminal title + # useful for unhide (~/.interrobangrc:39) + title() { + printf "\033]2;${1}\007" + } + + # read markdown files like manpages + md() { + pandoc -s -f markdown -t man "$*" | man -l - + } + + # read webpage as manpage + webman() { + curl -L "$@" | pandoc -s -f html -t man | man -l - + } + + # read anything as manpage + nam() { + pandoc -s -t man "$*" | man -l - + } + + :q!() { + [[ -v SSH_TTY ]] && echo dumpshock || { + ping -q -c1 pigley >/dev/null 2>&1 && { + echo -e "${red}lab still online${reset}" + vared -p 'shutdown? [Y/n]: ' -c sdwn + case ${sdwn} in + y|Y) labdown ;; + n) ;; + *) labdown ;; + esac + } || echo -e "${green}lab offline${reset}" + rm -f /tmp/tmux.lock + sudo halt -p + } + } diff --git a/zsh/.zsh/autocompletion.zsh b/zsh/.config/zsh/autocompletion.zsh diff --git a/zsh/.zsh/colored-man-pages.zsh b/zsh/.config/zsh/colored-man-pages.zsh diff --git a/zsh/.zsh/completion/_bower b/zsh/.config/zsh/completion/_bower diff --git a/zsh/.zsh/completion/_cmake b/zsh/.config/zsh/completion/_cmake diff --git a/zsh/.zsh/completion/_composer b/zsh/.config/zsh/completion/_composer diff --git a/zsh/.zsh/completion/_docker b/zsh/.config/zsh/completion/_docker diff --git a/zsh/.zsh/completion/_hub b/zsh/.config/zsh/completion/_hub diff --git a/zsh/.config/zsh/completion/_lxat b/zsh/.config/zsh/completion/_lxat @@ -0,0 +1,10 @@ +#compdef lxat + +_lxat() { + local -a running + IFS=$'\n' running=($(lxc-ls -f | grep RUNNING | awk '{print $1}')) + _describe -t running 'running containers' running + return 0 +} + +_lxat diff --git a/zsh/.zsh/completion/_node b/zsh/.config/zsh/completion/_node diff --git a/zsh/.zsh/completion/_nvm b/zsh/.config/zsh/completion/_nvm diff --git a/zsh/.zsh/completion/_pb b/zsh/.config/zsh/completion/_pb diff --git a/zsh/.zsh/completion/_ssux b/zsh/.config/zsh/completion/_ssux diff --git a/zsh/.zsh/downtime.zsh b/zsh/.config/zsh/downtime.zsh diff --git a/zsh/.config/zsh/environment.zsh b/zsh/.config/zsh/environment.zsh @@ -0,0 +1,40 @@ +# ENVIRONMENT + +# timestamps +#HIST_STAMPS=mm/dd/yyyy + +export XDG_CONFIG_HOME="$HOME"/.config +export XAPPLRESDIR="$XDG_CONFIG_HOME"/urxvt/ +export GOPATH="$HOME"/.local/lib/go +export XDG_DATA_HOME="$HOME"/.local/share +export XDG_CACHE_HOME="$HOME"/.local/cache +export XDG_STATE_HOME="$HOME"/.local/state +export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:=/tmp}" +#export ZDOTDIR="$HOME"/.config/zsh +export GNUPGHOME="$XDG_DATA_HOME"/gpg + +# paths +export PATH=$PATH:$HOME/.local/bin:/usr/local/bin:$HOME/.gem/ruby/2.6.0/bin:$HOME/.cargo/bin +export GOPATH=$HOME/.local/src/go +export TF_PLUGIN_CACHE_DIR=$XDG_CACHE_HOME/tf_plugin + +# preferred editor for local and remote sessions +export EDITOR=vim +export VISUAL=vim + +# lynx colours +export LYNX_LSS=$HOME/.config/lynx/lynx.lss + +# language +export LC_COLLATE=en_US.UTF-8 +export LC_CTYPE=en_US.UTF-8 +export LC_MESSAGES=en_US.UTF-8 +export LC_MONETARY=en_US.UTF-8 +export LC_NUMERIC=en_US.UTF-8 +export LC_TIME=en_US.UTF-8 +export LC_ALL=en_US.UTF-8 +export LANG=en_US.UTF-8 +export LANGUAGE=en_US.UTF-8 +export LESSCHARSET=utf-8 + +set -o vi diff --git a/zsh/.zsh/functions/chpwd_auto_cd b/zsh/.config/zsh/functions/chpwd_auto_cd diff --git a/zsh/.zsh/functions/chpwd_update_git_vars b/zsh/.config/zsh/functions/chpwd_update_git_vars diff --git a/zsh/.zsh/functions/ddg b/zsh/.config/zsh/functions/ddg diff --git a/zsh/.zsh/functions/mm b/zsh/.config/zsh/functions/mm diff --git a/zsh/.zsh/functions/precmd_update_git_vars b/zsh/.config/zsh/functions/precmd_update_git_vars diff --git a/zsh/.zsh/functions/preexec_update_git_vars b/zsh/.config/zsh/functions/preexec_update_git_vars diff --git a/zsh/.zsh/functions/prompt_git_info b/zsh/.config/zsh/functions/prompt_git_info diff --git a/zsh/.zsh/functions/raise b/zsh/.config/zsh/functions/raise diff --git a/zsh/.config/zsh/functions/screencast b/zsh/.config/zsh/functions/screencast @@ -0,0 +1,5 @@ +#!/usr/bin/zsh +test $1 && NAME=$1 || NAME="screencast" +RESOLUTION=$(xrandr | grep "*" | awk '{print $1}' | head -n1) +echo "recording to ${HOME}/lib/videos/recordings/screencasts/$(date +%Y%m%d)-${NAME}.webm" +ffmpeg -f x11grab -s ${RESOLUTION} -an -r 16 -loglevel quiet -i :0.0 -b:v 5M -y ${HOME}/lib/videos/recordings/screencasts/$(date +%Y%m%d)-${NAME}.webm diff --git a/zsh/.zsh/functions/update_current_git_vars b/zsh/.config/zsh/functions/update_current_git_vars diff --git a/zsh/.zsh/futuremyth.zsh b/zsh/.config/zsh/futuremyth.zsh diff --git a/zsh/.zsh/history.zsh b/zsh/.config/zsh/history.zsh diff --git a/zsh/.zsh/keybindings.zsh b/zsh/.config/zsh/keybindings.zsh diff --git a/zsh/.zsh/keychain.zsh b/zsh/.config/zsh/keychain.zsh diff --git a/zsh/.zsh/nodejs.zsh b/zsh/.config/zsh/nodejs.zsh diff --git a/zsh/.config/zsh/prompt.zsh b/zsh/.config/zsh/prompt.zsh @@ -0,0 +1,116 @@ +# PROMPT + +ICO_DIRTY="⚡" +ICO_AHEAD="▲" +ICO_BEHIND="▼" +ICO_DIVERGED="⥮" +COLOR_ROOT="%F{red}" +COLOR_USER="%F{cyan}" +COLOR_NORMAL="%F{white}" +PROMPT_STYLE="tiny" + +# allow functions in the prompt +setopt PROMPT_SUBST +autoload -Uz colors && colors + +# autoload zsh functions +fpath=(~/.config/zsh/functions $fpath) +autoload -U ~/.config/zsh/functions/*(:t) + +# enable auto-execution of functions +typeset -ga chpwd_functions + +# prepend functions +chpwd_functions+=('chpwd_auto_cd') +mpv_functions+=('mm') + +# colors for permissions +if [[ "$EUID" -ne "0" ]] +then # if user is not root + USER_LEVEL="${COLOR_USER}" +else # root! + USER_LEVEL="${COLOR_ROOT}" +fi + +# git prompt +GIT_PROMPT() { + test=$(git rev-parse --is-inside-work-tree 2> /dev/null) + if [ ! "$test" ] + then + case "$PROMPT_STYLE" in + ascii) + echo "$reset_color%F{cyan}▒░" + ;; + arrows) + echo "$reset_color%F{cyan}" + ;; + esac + return + fi + ref=$(git name-rev --name-only HEAD | sed 's!remotes/!!' 2> /dev/null) + if [[ ${ref} == "tags"* ]] ; then + branch=$(git branch | grep -e "^*" | tr -d "*") + ref="${branch/ /} ${ref}" + fi + dirty="" && [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]] && dirty=$ICO_DIRTY + stat=$(git status | sed -n 2p) + case "$stat" in + *ahead*) + stat=$ICO_AHEAD + ;; + *behind*) + stat=$ICO_BEHIND + ;; + *diverged*) + stat=$ICO_DIVERGED + ;; + *) + stat="" + ;; + esac + case "$PROMPT_STYLE" in + classic) + echo "${COLOR_NORMAL}─["${ref}${dirty}${stat}"]" + ;; + tiny) + echo "%F{241} [%F{244}"${ref}${dirty}${stat}"%F{241}]" + ;; + *) + echo "${USER_LEVEL}─[${COLOR_NORMAL}"${ref}${dirty}${stat}"${USER_LEVEL}]" + ;; + esac +} +case "$PROMPT_STYLE" in +# ascii +ascii) +PROMPT='%{$bg[cyan]%} %F{black}%~ $(GIT_PROMPT)$reset_color +%f' +;; +# dual line +dual) +PROMPT='${USER_LEVEL}┌[${COLOR_NORMAL}%~${USER_LEVEL}]$(GIT_PROMPT) +${USER_LEVEL}└─ - %f' +;; +# mini +mini) +PROMPT='${USER_LEVEL}[${COLOR_NORMAL}%~${USER_LEVEL}]$(GIT_PROMPT)── - %f' +;; +# tiny +tiny) +#PROMPT='%F{3} %%${COLOR_NORMAL} ' +# change prompt colour if started from vim +if [[ -v VIMRUNTIME ]] ; then + PROMPT='%F{9} ──── ─${COLOR_NORMAL} ' +# change prompt to show hostname if over ssh +elif [[ -v SSH_TTY ]] ; then + PROMPT='%F{13} ${HOSTNAME}%F{3}_ ${COLOR_NORMAL}' +else + PROMPT='%F{11} ──── ─${COLOR_NORMAL} ' +fi +RPROMPT='%F{15}%~ $(GIT_PROMPT) ${COLOR_NORMAL}' +;; +# classic +*) +PROMPT='%F{cyan}${USERNAME}@%F{white}[${HOSTNAME}]$(GIT_PROMPT)%F{white} : %~# ' +;; +esac diff --git a/zsh/.zsh/security.zsh b/zsh/.config/zsh/security.zsh diff --git a/zsh/.zsh/venganza.zsh b/zsh/.config/zsh/venganza.zsh diff --git a/zsh/.config/zsh/welcome.zsh b/zsh/.config/zsh/welcome.zsh @@ -0,0 +1,34 @@ +# WELCOME +## don't run this if over ssh (i.e. a server) +if [[ ! -v SSH_TTY ]] ; then + + PTS=$(ps -U $USER | awk '{ print $2 }' | grep "pts/" | uniq | wc -l) + + audio_vol() { + _master="Master" + _usb="Dell USB Audio" + + if amixer | grep "$_master" >/dev/null ; then + amixer sset "$_master" 40% >/dev/null + elif amixer | grep "$_usb" >/dev/null ; then + amixer sset "$_usb" 25% >/dev/null + fi + } + + script() { + audio_vol + sudo mount -a + [[ $(ps -ef | grep xbindkeys | grep -v grep | wc -l) -eq 0 ]] && xbindkeys + [ ! -f /tmp/tmux.lock ] && { + ~src/warez/tmuxp/bin/tmuxp load ~/.config/tmux/main.yaml && \ + touch /tmp/tmux.lock + } + } + + tmux list-sessions >/dev/null 2>&1 || script + # run on first tmux pane + #if [[ $TMUX_PANE == "%0" ]] && [[ ! -v VIMRUNTIME ]]; then + # $HOME/.local/bin/ahoy + #fi + #cat ~/tmp/logo5 +fi diff --git a/zsh/.zsh/aliases.zsh b/zsh/.zsh/aliases.zsh @@ -1,244 +0,0 @@ -# ██ -# ░██ -# ██████ ██████░██ -# ░░░░██ ██░░░░ ░██████ -# ██ ░░█████ ░██░░░██ -# ██ ░░░░░██░██ ░██ -# ██████ ██████ ░██ ░██ -# ░░░░░░ ░░░░░░ ░░ ░░ -# s h e l l a l i a s e s -# -# author ▓▒ pyratebeard -# code ▓▒ https://git.pyratebeard.net/dotfiles/file/zsh/.zsh/aliases.zsh.html - -# ▓▓▒░ root -# check for doas so aliases can be used on different systems -# add whitespace for hack to make aliases woth with {sudo,doas} -command -v doas >/dev/null && \ - alias sudo='doas ' || \ - alias sudo='sudo ' - -# ▓▓▒░ unix -# openbsd's ls(1) doesn't provide the `--color` option. -# i have grown to like this and spent a long time -# trying to find a work around, but none exists tiko. -# so i succumbed to installing coreutils and doing this -command -v gls >/dev/null && \ - alias ls="gls -hF --color=auto" || \ - alias ls="ls -hF --color=auto" - -# i also need dircolors(1) from coreutils for zsh autocompletion -command -v gdircolors >/dev/null && alias dircolors="gdircolors" - -# i make use of some funky shit in my log makefiles -# which isn't possible using the openbsd make(1) -command -v gmake >/dev/null && alias make='gmake' - - -# ▓▓▒░ sys - alias \ - ll="ls -lahF --color=auto" \ - lsl="ls -lhF --color=auto" \ - llrt="ls -lahFrt --color=auto" \ - \ - cp="cp -r" \ - rmrf="rm -rf" \ - scp="scp -r" \ - \ - up="cd ../" \ - mkdir="mkdir -p" \ - \ - xsel="xsel -b" \ - fuck='sudo $(fc -ln -1)' \ - dd="dd status=progress" \ - \ - term="urxvtc -hold -e " \ - \ - reboot="sudo reboot" \ - systemctl="sudo systemctl" - - -# ▓▓▒░ info - alias \ - psef="ps -ef" \ - jobs="jobs -l" \ - \?is="whereis" \ - disks='echo "┌──┄";echo "├┄ m o u n t . p o i n t s"; echo "└──┄┄────┄┄"; lsblk -a; echo ""; echo "┌──┄";echo "├┄ d i s k . u s a g e"; echo "└──┄┄────┄┄"; sudo df -h -x tmpfs -x devtmpfs;' \ - ag="ag --color --color-line-number '0;35' --color-match '46;30' --color-path '4;36'" \ - tree='tree -CAFa -I "CVS|*.*.package|.svn|.git|.hg|node_modules|bower_components" --dirsfirst' - - -# ▓▓▒░ almighty text editor - alias \ - v="vim" \ - vi="vim" \ - emacs="vim" - - -# ▓▓▒░ git - alias \ - g="git" \ - ga="git add" \ - gb="git branch" \ - gc="git commit -S -m" \ - gs="git status -sb" \ - gd="git diff" \ - gf="git fetch" \ - gm="git merge" \ - gr="git rebase" \ - gp="git push" \ - gu="git unstage" \ - gg="git log --graph" \ - gco="git checkout" \ - gsm="git status -sbuno" \ - gpr="git request-pull" \ - ggg="git graphgpg" - - gcl() { - git clone "$1" - cd ${1##*/} - } - - -# ▓▓▒░ pacman - alias \ - pac="sudo pacman" \ - pacman="sudo pacman" \ - update="sudo paccache -r ; pacman -S --noconfirm archlinux-keyring ; pacman -Syu" - - -# ▓▓▒░ net - alias \ - ss="sudo ss" \ - netctl="sudo netctl" \ - openvpn="sudo openvpn" \ - # need ot find a better way to do this - #iip="ip a s $(ip r | grep default | grep -oP '(?<=dev )[^ ]*')" \ - failover="sudo ip link set enp5s0 down" \ - failback="sudo ip link set enp5s0 up" - - -# ▓▓▒░ devops - alias \ - ap="ansible-playbook" \ - \ - lxc-ls="lxc-ls -f" \ - lxls="lxc-ls -f" \ - lxst="lxc-start" \ - lxsp="lxc-stop" \ - lxat="lxc-attach" \ - \ - docker="sudo docker" \ - docker-compose="sudo docker-compose" \ - dtail="docker logs -tf --tail='50'" \ - dps="docker ps" \ - dpsa="docker ps -a" \ - dstart="docker start" \ - dstop="docker stop" \ - drm="docker rm" \ - drmi="docker rmi" \ - dcomp="docker-compose -f ./docker-compose.yml" \ - \ - tf="terraform" \ - tfi="terraform init" \ - tfa="terraform apply --auto-approve" \ - tfp="terraform plan" \ - tfd="terraform destroy" \ - \ - kc="KUBECONFIG=./kubeconfig.yml kubectl" - - -# ▓▓▒░ recording - - alias \ - record="ffmpeg -f x11grab -s 1366x768 -an -r 16 -loglevel quiet -i :0.0 -b:v 5M -y" - - # record the primary screen - screencast() { - test $1 && NAME=$1 || NAME="screencast" - RESOLUTION=$(xrandr | grep "*" | awk '{print $1}' | head -n1) - echo "recording to ${HOME}/lib/videos/recordings/screencasts/$(date +%Y%m%d)-${NAME}.webm" - ffmpeg -f x11grab -s ${RESOLUTION} -an -r 16 -loglevel quiet -i :0.0 -b:v 5M -y ${HOME}/lib/videos/recordings/screencasts/$(date +%Y%m%d)-${NAME}.webm - } - - # take picture with webcam - webcapture() { - NUM=$(ls -l $HOME/tmp/*webcapture*|wc -l) - NUM=$(( NUM + 1 )) - ffmpeg -f video4linux2 -s 640x480 -i /dev/video0 -ss 0:0:2 -frames 1 $HOME/tmp/$(date +%Y%m%d)-webcapture-${NUM}.png - } - - -# ▓▓▒░ suffix - alias -s \ - md=vim \ - {png,jpg,jpeg}=sxiv \ - pdf=zathura \ - mp4=mpv - - -# ▓▓▒░ misc - alias \ - mixer="alsamixer" \ - news="newsboat" \ - gifview="gifview -a" \ - mail="mutt -F ~/.mutt/muttrc-imap" \ - \ - headsetbatt="bluetooth_battery 34:DF:2A:5F:04:2C" \ - headset="echo 'connect 34:DF:2A:5F:04:2C' | bluetoothctl" \ - bton="echo 'power on' | bluetoothctl" \ - btoff="echo 'power off' | bluetoothctl" \ - \ - nodisturb="dunstctl set-paused true" \ - disturb="dunstctl set-paused false" \ - \ - sacc="PAGER=less sacc" \ - gopher="PAGER=less sacc g.nixers.net/1/~pyratebeard/startpage.gph" \ - buku="buku --np" \ - tin="NNTPSERVER=eu.newsdemon.com ~/.local/src/warez/tin/tin-latest/src/tin -r -A"\ - drawterm="drawterm -h 9p.sdf.org -a 9p.sdf.org -u pyratebeard" \ - \ - kb="keybase" \ - irc="mosh irclient -- ksh -c 'dtach -A /tmp/irc irssi'" \ - feh="feh -g 640x480" \ - rum.sh="nc rum.sh 9999" \ - moebius="cd $HOME/.local/src/warez/moebius ; /usr/bin/npm start" \ - cointop="$HOME/.local/src/go/bin/cointop --hide-statusbar" - -# ▓▓▒░ fun(ctions) - - email() { - echo $3 | mutt -s $2 $1 - } - - # connect to tmux on ssh - # host autocomplete - $HOME/.zsh/completion/_ssux - ssux() { - test $# -gt 0 && SYSTEM="$@" || SYSTEM=$(tmux list-windows | awk '/*/{print $2}' | tr -d '*') - TERM=screen ssh -t "${SYSTEM}" 'tmux attach || tmux new' || ssh "${SYSTEM}" - } - - # sets terminal title - # useful for unhide (~/.interrobangrc:39) - title() { - printf "\033]2;${1}\007" - } - - # read markdown files like manpages - md() { - pandoc -s -f markdown -t man "$*" | man -l - - } - - # read webpage as manpage - webman() { - curl -L "$@" | pandoc -s -f html -t man | man -l - - } - - # read anything as manpage - nam() { - pandoc -s -t man "$*" | man -l - - } - - :q!() { - [[ -v SSH_TTY ]] && echo dumpshock || sudo halt -p - } diff --git a/zsh/.zsh/environment.zsh b/zsh/.zsh/environment.zsh @@ -1,39 +0,0 @@ -# ENVIRONMENT - -# timestamps -#HIST_STAMPS=mm/dd/yyyy - -export XDG_CONFIG_HOME="$HOME"/.config/ -export XAPPLRESDIR="$XDG_CONFIG_HOME"/urxvt/ -export GOPATH="$HOME"/.local/lib/go -export XDG_DATA_HOME="$HOME"/.local/share -export XDG_CACHE_HOME="$HOME"/.local/cache -export XDG_STATE_HOME="$HOME"/.local/state -export XDG_RUNTIME_DIR="${XDG_RUNTIME_DIR:=/tmp}" -#export ZDOTDIR="$HOME"/.config/zsh -export GNUPGHOME="$XDG_DATA_HOME"/gpg - -# paths -export PATH=$PATH:$HOME/bin:/usr/local/bin:$HOME/.gem/ruby/2.6.0/bin:$HOME/.cargo/bin -export GOPATH=$HOME/.local/src/go - -# preferred editor for local and remote sessions -export EDITOR=vim -export VISUAL=vim - -# lynx colours -export LYNX_LSS=$HOME/.config/lynx/lynx.lss - -# language -export LC_COLLATE=en_US.UTF-8 -export LC_CTYPE=en_US.UTF-8 -export LC_MESSAGES=en_US.UTF-8 -export LC_MONETARY=en_US.UTF-8 -export LC_NUMERIC=en_US.UTF-8 -export LC_TIME=en_US.UTF-8 -export LC_ALL=en_US.UTF-8 -export LANG=en_US.UTF-8 -export LANGUAGE=en_US.UTF-8 -export LESSCHARSET=utf-8 - -set -o vi diff --git a/zsh/.zsh/prompt.zsh b/zsh/.zsh/prompt.zsh @@ -1,116 +0,0 @@ -# PROMPT - -ICO_DIRTY="⚡" -ICO_AHEAD="▲" -ICO_BEHIND="▼" -ICO_DIVERGED="⥮" -COLOR_ROOT="%F{red}" -COLOR_USER="%F{cyan}" -COLOR_NORMAL="%F{white}" -PROMPT_STYLE="tiny" - -# allow functions in the prompt -setopt PROMPT_SUBST -autoload -Uz colors && colors - -# autoload zsh functions -fpath=(~/.zsh/functions $fpath) -autoload -U ~/.zsh/functions/*(:t) - -# enable auto-execution of functions -typeset -ga chpwd_functions - -# prepend functions -chpwd_functions+=('chpwd_auto_cd') -mpv_functions+=('mm') - -# colors for permissions -if [[ "$EUID" -ne "0" ]] -then # if user is not root - USER_LEVEL="${COLOR_USER}" -else # root! - USER_LEVEL="${COLOR_ROOT}" -fi - -# git prompt -GIT_PROMPT() { - test=$(git rev-parse --is-inside-work-tree 2> /dev/null) - if [ ! "$test" ] - then - case "$PROMPT_STYLE" in - ascii) - echo "$reset_color%F{cyan}▒░" - ;; - arrows) - echo "$reset_color%F{cyan}" - ;; - esac - return - fi - ref=$(git name-rev --name-only HEAD | sed 's!remotes/!!' 2> /dev/null) - if [[ ${ref} == "tags"* ]] ; then - branch=$(git branch | grep -e "^*" | tr -d "*") - ref="${branch/ /} ${ref}" - fi - dirty="" && [[ $(git diff --shortstat 2> /dev/null | tail -n1) != "" ]] && dirty=$ICO_DIRTY - stat=$(git status | sed -n 2p) - case "$stat" in - *ahead*) - stat=$ICO_AHEAD - ;; - *behind*) - stat=$ICO_BEHIND - ;; - *diverged*) - stat=$ICO_DIVERGED - ;; - *) - stat="" - ;; - esac - case "$PROMPT_STYLE" in - classic) - echo "${COLOR_NORMAL}─["${ref}${dirty}${stat}"]" - ;; - tiny) - echo "%F{241} [%F{244}"${ref}${dirty}${stat}"%F{241}]" - ;; - *) - echo "${USER_LEVEL}─[${COLOR_NORMAL}"${ref}${dirty}${stat}"${USER_LEVEL}]" - ;; - esac -} -case "$PROMPT_STYLE" in -# ascii -ascii) -PROMPT='%{$bg[cyan]%} %F{black}%~ $(GIT_PROMPT)$reset_color -%f' -;; -# dual line -dual) -PROMPT='${USER_LEVEL}┌[${COLOR_NORMAL}%~${USER_LEVEL}]$(GIT_PROMPT) -${USER_LEVEL}└─ - %f' -;; -# mini -mini) -PROMPT='${USER_LEVEL}[${COLOR_NORMAL}%~${USER_LEVEL}]$(GIT_PROMPT)── - %f' -;; -# tiny -tiny) -#PROMPT='%F{3} %%${COLOR_NORMAL} ' -# change prompt colour if started from vim -if [[ -v VIMRUNTIME ]] ; then - PROMPT='%F{9} ──── ─${COLOR_NORMAL} ' -# change prompt to show hostname if over ssh -elif [[ -v SSH_TTY ]] ; then - PROMPT='%F{13} ${HOSTNAME}%F{3}_ ${COLOR_NORMAL}' -else - PROMPT='%F{11} ──── ─${COLOR_NORMAL} ' -fi -RPROMPT='%F{15}%~ $(GIT_PROMPT) ${COLOR_NORMAL}' -;; -# classic -*) -PROMPT='%F{cyan}${USERNAME}@%F{white}[${HOSTNAME}]$(GIT_PROMPT)%F{white} : %~# ' -;; -esac diff --git a/zsh/.zsh/welcome.zsh b/zsh/.zsh/welcome.zsh @@ -1,30 +0,0 @@ -# WELCOME -## don't run this if over ssh (i.e. a server) -if [[ ! -v SSH_TTY ]] ; then - - PTS=$(ps -U $USER | awk '{ print $2 }' | grep "pts/" | uniq | wc -l) - - audio_vol() { - _master="Master" - _usb="Dell USB Audio" - - if amixer | grep "$_master" >/dev/null ; then - amixer sset "$_master" 40% >/dev/null - elif amixer | grep "$_usb" >/dev/null ; then - amixer sset "$_usb" 25% >/dev/null - fi - } - - script() { - audio_vol - [[ $(ps -ef | grep xbindkeys | grep -v grep | wc -l) -eq 0 ]] && xbindkeys - tmux new -s main - } - - tmux list-sessions >/dev/null 2>&1 || script - # run on first tmux pane - if [[ $TMUX_PANE == "%0" ]] && [[ ! -v VIMRUNTIME ]]; then - $HOME/.local/bin/ahoy - fi - #cat ~/tmp/logo5 -fi diff --git a/zsh/.zshrc b/zsh/.zshrc @@ -1,14 +0,0 @@ -# ░▀▀█░█▀▀░█░█░░ -# ░▄▀░░▀▀█░█▀█░░ -# ░▀▀▀░▀▀▀░▀░▀░░ - -# set hostname -HOSTNAME=$(hostname -s) - -# load configs -for config (~/.zsh/*.zsh) source $config -setopt auto_cd - -export PATH=$PATH:/home/pyratebeard/bin:/home/pyratebeard/.local/bin - -source ~/.zsh/downtime.zsh