diff --git a/aliases/key_aliases.tmpl b/aliases/key_aliases.tmpl index 58aa47a..b89d120 100644 --- a/aliases/key_aliases.tmpl +++ b/aliases/key_aliases.tmpl @@ -7,14 +7,15 @@ # clear screen c "printf '\033c'" d "cd ~/Downloads && printf '\033c'" +e "echo \$" hst "history" # nft "printf '\033c' && neofetch | lolcat" -nft "printf '\033c' && neofetch" +nfth "printf '\033c' && neofetch" fi "fish" # reload urxvt ru "xrdb ~/.Xresources && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null" -dua "sudo du -h --apparent-size | sort -h" +dua "du -ah --apparent-size | sort -h" # list file sizes in megabytes with depth 1 # duh "sudo du -d 1 -h --apparent-size | sort -h" # dum "sudo du -d 1 -m --apparent-size | sort -h" @@ -22,14 +23,22 @@ duh "du -d 1 -h --apparent-size | sort -h" dum "du -d 1 -m --apparent-size | sort -h" # m "man" td "tldr" +whi "whereis" # ]]] basic # # display [[[ # # nvt "nvidia-settings --assign CurrentMetaMode='DVI-I-1: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, HDMI-0: nvidia-auto-select +3840+0 {ForceCompositionPipeline=On}'" + +{{ if eq .chezmoi.hostname "nzxt" }} +xra "xrandr --auto" +xrs "xrandr --auto && xrandr --output HDMI-0 --right-of DVI-I-1" +xrn "xrandr --output HDMI-0 --rotate normal && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null" +xrr "xrandr --output HDMI-0 --rotate right && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null" +{{ end }} + {{ if eq .chezmoi.hostname "x1-carbon" }} -xr "xrandr" xro "xrandr --output HDMI2 --off" xrl "xrandr --output HDMI2 --auto --left-of eDP1 --scale 1.33x1.33 && xrandr --output eDP1 --panning 2560x1440+2554+0" xrr "xrandr --output HDMI2 --auto --right-of eDP1 --scale 1.33x1.33" @@ -40,21 +49,26 @@ xrs "xrandr -s 0" # ]]] display # ngb "sudo nvim /etc/default/grub" -mkgb "sudo grub-mkconfig -o /boot/grub/grub.cfg" +mgb "sudo grub-mkconfig -o /boot/grub/grub.cfg" # a "bat" -ba "bat" +b "bat" # ba "bat *" awkp "awk -F',' '{print \$0}'" +cpr "cp -r" +fde "fd -e" grep "grep --color=auto -n" grpr "grep -r" -rg "rg -S" +rgc "rg -i" +rge "rg -t" +xa "xargs" # pk "pkill -f" cld "colordiff -wy --suppress-common-lines" mkpk "makepkg -sri" ex "chmod +x" lns "ln -s" +src "source" # systemctl [[[ # ct "sudo systemctl" @@ -79,20 +93,46 @@ ncs "sudo systemctl stop netctl-auto@wlp3s0.service" # ssh [[[ # +# ss "ssh" cpssh "ssh-copy-id -i ~/.ssh/id_rsa.pub" xcssh "bat ~/.ssh/id_rsa.pub | xclip -selection clipboard" -sp "mosh --ssh='ssh -p 8022' 192.168.0.12" +# digital ocean ssd "mosh --ssh='ssh -p 399' kevin@165.22.239.234 tmux a" -sfd "sftp -P 399 kevin@165.22.239.234" sdh "mosh --ssh='ssh -p 399' kevin@165.22.239.234 htop" +scd "scp -P 399 kevin@165.22.239.234" +sfd "sftp -rP 399 kevin@165.22.239.234" +# phone [[[ # + +ssp "mosh --ssh='ssh -p 8022' $PHONE_IP" +scpp "scp -P 8022 $PHONE_IP:" +sfp "sftp -rP 8022 $PHONE_IP" +rsp "rsync --ignore-existing -Ptre 'ssh -p 8022' $PHONE_IP:" + +# ]]] phone # + +# pixel [[[ # + +sspx "mosh --ssh='ssh -p 8022' $PIXEL_IP" +scpx "scp -P 8022 $PIXEL_IP:" +sfpx "sftp -rP 8022 $PIXEL_IP" +rspx "rsync --ignore-existing -Ptre 'ssh -p 8022' $PIXEL_IP:" + +# ]]] pixel # + +# vultr +ssa "mosh atxadmin@45.32.87.10" +ssv "mosh kevin@45.32.87.10" + + # test server sites -svp "firefox git.ataraxy.tk khkm.tk cal.khkm.tk pste.gq smol.gq twem.tk" +# svp "firefox git.ataraxy.tk khkm.tk cal.khkm.tk pste.gq smol.gq twem.tk" # postgres ssh tunnel sdt "ssh kevin@165.22.239.234 -L 5433:localhost:5432" # ]]] ssh # wh "watch" +w60 "watch -n60 '" ct "crontab" cte "crontab -e" @@ -100,21 +140,26 @@ wm "sudo wifi-menu" # mounting [[[ # udm "udisksctl mount -b" +udmi "ifuse /mnt/ipad" udmb "udisksctl mount -b /dev/sdc2" udu "udisksctl unmount -b" udub "udisksctl unmount -b /dev/sdc2" +udui "umount /mnt/ipad" # ]]] mounting # -tch "touch" -vdr "vidir --verbose" +tc "touch" +vd "vidir --verbose" # directory-related [[[ # {{ if not (eq .linux_os "termux") }} l "lsd -F --group-dirs first" la "lsd -AF --group-dirs first" +ld "lsd -F --group-dirs first -d */" ll "lsd -lF --group-dirs first --size short" +lld "lsd -lF --group-dirs first --size short -d */" +llr "lsd -lF --group-dirs first --size short -tr" lla "lsd -AlF --group-dirs first --size short" {{ else }} l "ls" @@ -128,12 +173,13 @@ f "cd" fz "fzf -e" fbg "cd ~/Pictures/Backgrounds && ranger --selectfile (fzf -e --delimiter '/' --with-nth -1)" fnd "find . -type f -name" +# p "pwd" rmr "rm -rf" -rmd "rm ~/Downloads/*" +# rmd "rm ~/Downloads/*" rmw "rm ~/.local/share/nvim/swap/" md "mkdir -p" -rsy "rsync -Pr" +rsy "rsync --ignore-existing -Ptr" # list all (un)mounted drives lhd "sudo fdisk -l" @@ -143,7 +189,9 @@ ds "df -h | head -n 1 && df -h | grep sd" chownw "sudo chown -R kevin:wheel" chwnm "sudo chown -R kevin:wheel /run/media/{{ .chezmoi.username }}" # cd into backup folder and show backup sizes -nbu "cd /run/media/kevin/backup-hd/{{ .chezmoi.hostname }}/tar && lsd -l" +lbu "cd /run/media/kevin/backup-hd/{{ .chezmoi.hostname }}/tar && lsd -l" + +uzl "unzip -l" # ]]] directory-related # @@ -151,12 +199,14 @@ nbu "cd /run/media/kevin/backup-hd/{{ .chezmoi.hostname }}/tar && lsd -l" s "systemctl suspend" sl "i3lock-fancy && systemctl suspend" -x "exit" so "xset dpms force off" +xx "exit" +sof "xset dpms force off" +son "xset s off -dpms" sd "tmux kill-server; systemctl poweroff" -rb "systemctl reboot" -lo "i3-msg exit" -xm "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE" +rb "tmux kill-server; systemctl reboot" +lgo "i3-msg exit" +x "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE" X "xmodmap ~/.Xmodmap && xset r rate $XSET_DELAY $XSET_RATE" {{ if eq .chezmoi.hostname "x1-carbon" }} xl "xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE" @@ -239,12 +289,15 @@ apu "apt upgrade" # python [[[ # -py "python" +p "python" +# py "python" +py2 "python2" # pyt "printf '\033c' && pytest -vvs" -pyt "clear && tmux clear-history && pytest -vvs" +# pyt "clear && tmux clear-history && pytest -vvs" +pyt "clear && tmux clear-history && pytest --cov" pyts "clear && tmux clear-history && pytest -vv" pyu "python -m unittest" -pipi "pip install --user" +pipi "pip install" spipi "sudo pip install" # ]]] python # @@ -279,25 +332,44 @@ mst "sudo rm ~/st/config.h && sudo bear make -C ~/st install" # applications [[[ # # silent="> /dev/null 2>&1& " +13 "rot13" am "antimicro" # task [[[ # a "task" aa "task add" -aa3 "task add proj:sch +324" aal "task add proj:lnx" aap "task add proj:" aas "task add proj:sch" +# aam "task add proj:ms" +aam "task add proj:mny" +aap "task add proj:" +# aacm "task add proj:codm" +aacr "task add proj:crim" +aaj "task add proj:pey +jira []" +aapp "task add proj:pogo" +aas "task add proj:sch" +aay "task add proj:pey" ac "task context" acn "task context none && task" ach "task context home && task" +acm "task context mny && task" aco "task context out && task" +acp "task context pey && task" +acnp "task context not-pey && task" acs "task context sch && task" -acpl "task completed" af "task proj:" -al "task limit:10" +afcm "task proj:codm" +afcr "task proj:crim" +afs "task proj:sch" +afy "task proj:pey" +aj "task +jira" +apl "task completed" +al "task limit:15" +alg "task log" +algy "task log proj:pey" ans "task +next" -ao "taskopen" +ao "taskopen -A" asm "task summary" awt "task waiting" ay "task sync" @@ -306,7 +378,7 @@ ay "task sync" # buku [[[ # # b "buku" -bd "buku -za '" +bd "buku -a '" bdb "sqlitebrowser ~/.local/share/buku/bookmarks.db &" bh "buku -h | bat" bi "buku --immutable 1 -zu" @@ -320,72 +392,113 @@ bsv "bukuserver run --host 127.0.0.1 --port 5001" bt "buku --deep -n5 -t" bu "buku -zu" but "buku -zu --tag" -bw "buku --immutable 1 -zw -1" +bw "buku --immutable 1 -w -1" # ]]] buku # cc "calcurse" ccc "calcurse -D ~/.calcurse/alt-cals/class" +cci "calcurse -i" ccs "calcurse-caldav" chr "google-chrome" -clc "cloc ." +cht "chatterino" +# clc "cloc ." +clc "cloc . --vcs=git" cv "cava" dg "dragon-drag-and-drop -x" -ffx "firefox" +fx "firefox -P" +fxd "firefox -P default" +fxw "firefox -P work" fh "feh" fi "fish" gpd "gpg --decrypt" gpe "gpg --encrypt --recipient" +gtm "gotop -m" hb "habitctl log" # hbe "habitctl edit" # hbeh "habitctl edith" htc "htop -s PERCENT_CPU" htm "htop -s PERCENT_MEM" -i "sxiv" +# i "sxiv" ia "sxiv -a" it "sxiv -t *" -ki "kill -9" +kill "kill -9" ka "killall" kd "killall Discord && killall Discord" -kr "killall electron" +ke "killall electron" +kf "killall firefox" +kag "killall gopls" +kai "killall imwheel && imwheel" kt "killall thunderbird" -# mp "mpv --volume=50" m "mpv" +mp "mpv --volume=50" +# lo "libreoffice" +m "mpv" +mpvv "mpv --volume=50" +mpl "mpv --loop" +msf "mpv --sub-file=" mra "man ranger" # mt "minetest" n "nvim" +nl "nload devices wlp4s0 -u M" +nm "nomacs ." +np "nvim --" ndu "ncdu" p3 "python3" pdft "pdftotext" +pdu "pdfunite" pipes "pipes.sh -t 3" +pcp "pycp" +pmv "pymv" py "python" -qc "qalc '" -qcg "qalculate-gtk" +q "qalc '" +qe "qalc -e '1USD to CAD'" +qg "qalculate-gtk" r "ranger" rbg "ranger --selectfile (grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2)" # rgc "printf '\033c' && rg" # rgc "printf '\033c' && rg" rgc "clear && tmux clear-history && rg -S" rx "redshift -x" +scm "sc-im" sn "sudo nvim" -ss "mosh" +sqlb "sqlitebrowser" +# ss "mosh" stp "termdown" +h "termdown" # sw "swex" -t "tmux"#[[[ -ta "tmux a -t" -tac "tmux a -t config || tmux new -s config" +# t "tmux"#[[[ +# ta "tmux a -t" +tabu "tmux a -t backup || tmux new -s backup" +tacf "tmux a -t config || tmux new -s config" +tacm "tmux a -t codm || tmux new -s codm" +tacr "tmux a -t crimson || tmux new -s crimson" taj "tmux a -t journal || tmux new -s journal" +tarh "tmux a -t red-hat || tmux new -s red-hat" +tar2 "tmux a -t red-hat-2 || tmux new -s red-hat-2" +tas "tmux a -t school || tmux new -s school" +tas2 "tmux a -t school-2 || tmux new -s school-2" tal "tmux a" tc "clear && tmux clear-history" tk "tmux kill-server" +tk "tmux kill-session -t" +tks "tmux kill-server" tl "tmux ls" tn "tmux new -s" tnb "tmux new -s backup" #]]] usn "usernames --num 20" vmd "vimdiff" -# wg "wego" -wg "curl -L wthr.ml" +wg "wego" ytd "youtube-dl" +wcl "wc -l" +wcw "wc -w" +wch "weechat" +# wg "wego" +wg "curl wttr.in" +# wg "curl -L wthr.ml" +wgm "curl -L wthr.ml/m" +wgt "curl -L wthr.ml/t" +yt "youtube-dl" z "zathura --fork" lz "unzip -l" @@ -394,17 +507,18 @@ trx "tar xvzf" # pass [[[ # -ps "pass" -psc "pass -c" -pse "pass edit" -psi "pass insert -m" -psg "pass generate -c" -pss "pass show" +# p "pass" +pc "pass -c" +pe "pass edit" +pi "pass insert -m" +pg "pass generate -c" +ps "pass show" xc "xclip -selection clipboard" +xo "xclip -o >" yh "echo 'kevin.mok@live.ca' | xclip -selection clipboard" yg "xclip -selection clipboard ~/.password-store/social/gmail" -yt "xclip -selection clipboard ~/.password-store/social/trapbot" +ytb "xclip -selection clipboard ~/.password-store/social/trapbot" yu "echo 'kevin.mok@mail.utoronto.ca' | xclip -selection clipboard" # ]]] pass # @@ -416,8 +530,9 @@ w "watson" # start [[[ # wa "watson start" +wacm "watson start fun +cod-mobile" wae "watson start && watson edit" -wad "watson add -f '' -t ''" +wad "watson add" we "watson edit" wre "watson restart" @@ -438,19 +553,38 @@ wt "watson status" # log/report [[[ # wl "watson log -Gcd" -wla "watson log -Gca -p" -wlat "watson log -Gca -T" +wla "watson log -Gcap" +wlat "watson log -GcaT" ww "watson log -Gc" +wwa "watson log -Gc | bat" wr "watson report -Gcd" -wra "watson report -Gca -p" -wram "watson report -Gca | rg -S '^\w.*-\s\d*h' | sort -t' ' -hk3" -wrat "watson report -Gca -T" +wra "watson report -Gcap" +wram "watson report -Gca | rg -S '^\w.*-\s\d*h' | sort -t' ' -hk3 | sed 's/ - /,/' | xsv table" +wrat "watson report -GcaT" +wrf "watson report -Gc --from ''" +wrm "watson report -GcmT" wrw "watson report -Gc" # ]]] log/report # # ]]] watson # +# timetrace [[[ # + +tt "timetrace" +tta "timetrace start" +ttaa "timetrace start a3@300" +tte "timetrace edit record latest" +ttc "timetrace create" +ttp "timetrace create project" +ttlp "timetrace list projects" +ttlr "timetrace list records today" +ttr "timetrace report" +tts "timetrace stop" +ttt "timetrace status" + +# ]]] timetrace # + # ]]] applications # # git [[[ # @@ -468,31 +602,53 @@ gbd "git branch -D" gba "git branch --no-merged && echo '' && git branch --merged" gbu "git branch --no-merged" gbm "git branch --merged" +gbr "git branch -m" +gbu "git branch --set-upstream-to=" +gbv "git branch -vv" -gsm "git submodule add" +gsm "git submodule" +gsma "git submodule add" +gsmi "git submodule init" gsmp "git submodule foreach git pull" - +gsmu "git submodule update --recursive --remote" + gmg "git merge" +gmga "git merge --abort" +gmgs "git merge --squash" +gmgts "git merge -X theirs" gmgt "git mergetool" gr "git remote -v" gra "git remote add origin" -# grag "git remote add gitea git@ataraxy.tk:Kevin-Mok/.git" +grao "git remote add orig" +grag "git remote add gitea ssh://git@git.kevin-mok.com:399/Kevin-Mok/" grr "git remote remove origin" -grs "git remote show origin" -gru "git branch --set-upstream-to=origin/master master" +gru "git branch --set-upstream-to=origin/main main" # ]]] branch # +gt "git tag" +gta "git tag -as" +gtd "git tag -d" + # add/remove [[[ # ga "git add -A && git status -u" gac "git add -A && git commit -S" gaf "git add -f" +gal "git lfs track" # unsigned commt gacu "git add -A && git commit" +glf "git lfs" +# glfi "git lfs install" +# glfp "git lfs pull" +glfp "git lfs install && git lfs pull" +glft "git lfs track *" + +gm "git mv" + grm "git rm" grmf "git rm -f" grmc "git rm --cached" @@ -507,11 +663,20 @@ gd "git diff -w" gdc "git diff --cached -w" gdh "git diff --cached -w HEAD~1" gds "git diff --stat" +gdsc "git diff --stat --cached -w" gdt "git difftool -w --tool=vimdiff" gdtc "git difftool -w --cached --tool=vimdiff" -gl "git log" -glm "git log master" -gsl "git shortlog" +gl "git log -5" +gl1 "git log --oneline" +gl1x "git log --oneline -1 | xclip -selection clipboard" +gla "git log" +glm "git log main" +glr "git log --reverse" +gqs "git-quick-stats -T" +# gsl "git shortlog" +gsh "git show" +gshh "git show HEAD" +gshs "git show --stat" # ]]] diff/log # @@ -519,36 +684,54 @@ gsl "git shortlog" gcl "git clone" gs "git status -u" -gf "git fetch origin" -gfg "git fetch gitea" +gf "git fetch" +gfa "git fetch --all" +gfo "git fetch orig" gch "git checkout" gchn "git checkout -b" -gchm "git checkout master" +gchm "git checkout main" +gchms "git checkout master" gchnw "git checkout -b wip" gchw "git checkout wip" -gchfh "git checkout HEAD --" - -grom "git reset --hard origin/master" -gheadm1 "git reset --hard HEAD~1" +gchh "git checkout HEAD --" + +# grss "git reset --soft HEAD~1" +# grs "git reset --hard" +# grso "git reset --hard origin/main" +# grsh "git reset --hard HEAD" +# grsh1 "git reset --hard HEAD~1" +grs "git reset --soft" +grs1 "git reset --soft HEAD~1" +grs1c "git reset --soft HEAD~1 && git commit --amend --no-edit -S" +grso "git reset --soft orig/main" +grsh "git reset --hard" +grsho "git reset --hard origin/main" +grshh "git reset --hard HEAD" +grshh1 "git reset --hard HEAD~1" # show files in git repo # gls "git ls-tree -r HEAD --name-only" gls "git ls-tree HEAD --name-only" gchp "git cherry-pick" +gchpt "git cherry-pick --strategy=recursive -X theirs" gchpc "git cherry-pick --continue" -gst "git stash" +gst "git stash push -m ''" gstl "git stash list" gstp "git stash pop" gsts "git stash show stash@\{0\} -p" -gclear "git stash clear" +gstcl "git stash clear" gpl "git pull --rebase" +gplo "git fetch origin && git pull --rebase . origin/main" grb "git rebase -i" grba "git rebase --abort" grbc "git rebase --continue" +grl "git reflog" +grlc "git checkout HEAD@{1}" + # ]]] pull # # push [[[ # @@ -561,11 +744,16 @@ gcap "git add -A && git commit --amend --no-edit -S && git push --force" psgi "git add -A && git commit -m 'Update' -S && git push" gps "git push" +gpso "git push origin" +gpsoh "git push -f origin HEAD:" gpsg "git push gitea" +gpsk "git push kevin" +gpsdl "git push origin --delete" # gpsi "git config credential.helper store && git push" -# gpsn "git push --set-upstream origin master" +# gpsn "git push --set-upstream origin main" gpsn "eval (git push 2>&1 | tail -n 2)" gpsf "git push --force" +gpsu "git push --set-upstream origin" # assume file unchanged gunc "git update-index --assume-unchanged" @@ -576,16 +764,28 @@ gunc "git update-index --assume-unchanged" # coding projs [[[ # +# pm "python main.py" +pmn "python main.py" +tld "tldr" # fsl "zathura --fork ~/coding/fastest-languages.pdf" fsl "bat ~/Documents/fastest-languages/fastest-languages.md" rgt "rg TODO" +# django [[[ # + +# pmn "python manage.py" +pm "python manage.py" +pmk "python manage.py makemigrations" +pmg "python manage.py migrate" + +# ]]] django # + # make [[[ # -ma "printf '\033c' && bear make" -mc "bear make clean" -mca "bear make clean && printf '\033c' && bear make" -rmc "rm compile_commands.json" +# ma "printf '\033c' && bear make" +# mc "bear make clean" +# mca "bear make clean && printf '\033c' && bear make" +# rmc "rm compile_commands.json" # ]]] make # @@ -603,7 +803,7 @@ zp "chezmoi -v apply" # spotify-lib-vis [[[ # # start spv server outside dir -ssv "source ../bin/activate.fish && python manage.py runserver" +psv "source ../bin/activate.fish && python manage.py runserver" # open spv db in psql spvdb "psql -d spotifyvis -U django" mig "python manage.py makemigrations && python manage.py migrate --run-syncdb && ssv" @@ -616,7 +816,7 @@ upip "pip list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xa ureq "pip freeze > requirements.txt" # show last history scan -hlg "psql -d spotifyvis -a -f /home/kevin/coding/spotify-lib-vis/src/scripts/history.sql | rg 2019 | tac" +hlg "psql -U postgres -d spotifyvis -a -f /home/kevin/coding/spotify-lib-vis/src/scripts/queries/history.sql | rg 2021 | tac" slg "tail -n 5 $spv_dir/src/api/management/commands/update-history.log" # scan history # hs "$spv_dir/src/update-history.sh && cat $spv_dir/src/api/management/commands/update-history.log | tail -n 1" @@ -643,7 +843,8 @@ wr0 "watson report --all --project=309 --tag=phase2" # server [[[ # -# nd "node" +no "node" +noe "node --experimental-json-modules" ndm "nodemon" knd "killall node" mg "mongo" @@ -651,7 +852,7 @@ mg "mongo" 0ht "cd ~/school/309-proj && python3 -m http.server" mgd "mongod --dbpath mongo-data" # nds "killall node && nodemon server.js" -nds "nodemon server.js" +# nds "nodemon server.js" # ]]] server # @@ -671,11 +872,12 @@ gpsh "git push heroku" # mfs [[[ # -ht "python3 -m http.server" +pyh "python -m http.server" # j "jekyll" # js "jekyll serve" -h "hugo" -he "hugo serve -D --disableFastRender" +hg "hugo" +hgs "hugo serve --disableFastRender" +hgp "hugo server -D --disableFastRender --bind 192.168.0.10 --baseURL 'http://192.168.0.10:1313'" # ]]] mfs # @@ -689,7 +891,8 @@ mm "printf '\033c' && bear make clean move_mouse_with_head && ./move_mouse_with_ med "printf '\033c' && bear make clean eye_detector && ./eye_detector" mft "printf '\033c' && bear make clean face_detector && ./face_detector" rft "~/coding/face-tracker/face_detector > /tmp/move_mouse_with_head.out" -gpsb "git push bitbucket" +# gpsb "git push bitbucket" +gpsb "git push bot" # ]]] ada-mario # @@ -699,25 +902,91 @@ dea "deactivate" whe "watch echo" nst "cp ~/Documents/workout-logs/stretching.md /tmp && nvim /tmp/stretching.md" +# Red Discord bot +rde "pyenv shell red-discord-bot-test" +rbd "redbot --dev --debug" + +lo7 "libreoffice ~/Documents/expenses/2021.ods &" + +nps "npm start" + +# rarity surf [[[ # + +# po "python ~/coding/rarity-sniper/opensea.py | tail -n30" +# po "python ~/coding/rarity-sniper/opensea.py" +# poa "python ~/coding/rarity-sniper/opensea.py" +# pp "python scrape.py" +# pr "python rarity.py" +# pu "python ~/coding/rarity-sniper/opensea.py update" + +po "python manage.py opensea" +pr "python manage.py rarity" +bz "python manage.py rarity -t Bitz -n" +pmp "python manage.py makemigrations project" +srs "source ~/.venv/rarity-sniper/bin/activate.fish" + +yra "yarn add" +yrb "yarn build" +yrbs "yarn build && serve -s build" +yrr "yarn remove" +yrs "yarn start" +sv "serve -s build" + +ssrr "mosh root@161.35.107.30" +ssr "mosh 161.35.107.30" + +# ]]] rarity surf # + + + # ]]] coding projs # # games [[[ # {{ if eq .chezmoi.hostname "nzxt" }} wlm "watson log --all --project=minetest" -wrm "watson report --all --project=minetest" +# wrm "watson report --all --project=minetest" wamv "watson start minetest +video" +# minetest [[[ # + mtg "minetest" -ms "minetestserver" -msc "minetestserver --gameid minetest --worldname Creative --terminal" -# msh "minetestserver --gameid minetest --worldname Hevin --config ~/.minetest/hevin.conf --terminal" -msh "minetestserver --gameid mineclone2 --worldname Hevin-MC --config ~/.minetest/hevin-mc.conf --terminal" -msv "minetestserver --gameid minimal --worldname Test --terminal" +mts "minetestserver" +mtsc "minetestserver --gameid minetest --worldname Creative --terminal" +# mtsh "minetestserver --gameid minetest --worldname Hevin --config ~/.minetest/hevin.conf --terminal" +mtsh "minetestserver --gameid mineclone2 --worldname Hevin-MC --config ~/.minetest/hevin-mc.conf --terminal" +mtsv "minetestserver --gameid minimal --worldname Test --terminal" # mtrsy "rsync -vr .minetest/ /mnt/linux-files/.minetest/" tet "pandoc -f markdown -t html twitch-emote-conversion.md | xclip -selection clipboard" {{ end }} +# ]]] minetest # + +# tet "pandoc -f markdown -t html twitch-emote-conversion.md | xclip -selection clipboard" +shrg "printf '¯\\\\\\\\\\_(ツ)_/¯' | xclip -selection clipboard" + +dcec "mono DiscordChatExporter.Cli.exe" +dcec "mono DiscordChatExporter.Cli.exe export -t $DISCORD_TOKEN -c" + +ifm "sxiv ~/Documents/fortnite/maps/boat-campfire-slurp.png" + +# twitchy [[[ # + +tw "twitchy" +twa "twitchy -a" +twd "twitchy -d" +tws "twitchy -s" +twf "watch -n300 'twitchy-game Fortnite'" +# mp "mpv --video-zoom=1.5" +# ufn "source trn-api-key.fish && curl --request GET --url https://api.fortnitetracker.com/v1/profile/pc/Vole%20on%20Mobile --header 'trn-api-key: 584d8eca-30d9-4119-92d8-5067dd301118' --cookie __cfduid=d4f0daac7eee3687b481bd55dcf00f3581581900091 > stats.json" + +# ]]] twitchy # + +lob "lsd -F --group-dirs first 2020*.mkv" +wob "watch -n60 'lsd -lF --group-dirs first --size short 2020*.mkv'" + +fnp "t timeline FNProgress | sed -n '2p'" +fnu "sxiv ~/Documents/fortnite/pics/maps/upgrade.png &" # ]]] games # @@ -726,12 +995,195 @@ tet "pandoc -f markdown -t html twitch-emote-conversion.md | xclip -selection cl # basic # wlf "watson log --all --tag=final" # wrf "watson report --all --tag=final" +gpa "column -ts',' ~/Documents/gpa.md" ssc "mosh mokkar@teach.cs.utoronto.ca" -rk "clear && tmux clear-history && raco test" -rka "clear && tmux clear-history && raco test hubbub_test_sample.rkt" -rkr "clear && tmux clear-history && racket" -# hk "clear && tmux clear-history && runhaskell TestChups.hs" -hk "clear && tmux clear-history && runhaskell" +# alg course +jc "javac -d out *.java" +jr "java -cp \"$CLASSPATH:out\"" + +# 263 +wl6 "watson log --all --project=263 --tag=a5" +wr6 "watson report --all --project=263 --tag=a5" +z6 "zathura --fork ~/school/263/Introduction-to-Algorithms-CLRs/Introduction\ to\ Algorithms\ -\ 3rd\ Edition.pdf" +pd6 "pdflatex a5" + +spc "source ~/.venv/price-calc/bin/activate.fish" +scv "source ~/.venv/covid-monitor/bin/activate.fish" +fr "flask run" +pmd "python manage.py db" +pmdm "python manage.py db migrate" +pmdu "python manage.py db upgrade" +# pt "pytest --cov" # ]]] school # + +# red-hat [[[ # + +vpu "nmcli con up id '1 - Red Hat Global VPN' --ask" +vpd "nmcli con down id '1 - Red Hat Global VPN'" + +loe "libreoffice ~/Documents/expenses/2021.ods &" +loi "libreoffice ~/Documents/expenses/investments.ods &" + +# laptop +# gcfr "git config user.email 'kmok@redhat.com' && git config user.signingkey 10B001347552F396" +gchk "git checkout KOGITO-" +gchnk "git checkout -b KOGITO-" +gch3 "git checkout KOGITO-1031-diff-3" + +# ssh [[[ # + +ssw "mosh $WORK_LAPTOP_IP tmux a" +ssw2 "mosh $WORK_LAPTOP_IP -- tmux a -t nzxt-2" +ssi "mosh $WORK_LAPTOP_IP -- tmux a -t weechat" +scw "scp $WORK_LAPTOP_IP:" +sfw "sftp $WORK_LAPTOP_IP" + +# ]]] ssh # + +fp "fpaste" +ghr "github-release" + +# oc [[[ # + +o "kubectl" +oa "kubectl apply -f" +ocr "kubectl create" +ocf "kubectl create ns kogito; kubectl config set-context --current --namespace=kogito" +oct "kubectx" +od "kubectl describe" +odd "kubectl describe deployment" +odp "kubectl describe pod" +odi "kubectl describe kogitoinfra" +odr "kubectl describe kogitoruntime" +odl "kubectl delete" +odlf "kubectl delete -f" +odlb "kubectl delete kogitobuild" +odlc "kubectl delete configmap" +odlp "kubectl delete pod" +odlpj "kubectl delete project" +odlr "kubectl delete kogitoruntime" +oex "kubectl exec" +oed "kubectl edit" +og "kubectl get" +oga "kubectl get all" +ogd "kubectl get deployment" +ogp "kubectl get pods" +ogw "watch kubectl get pods" +ogb "kubectl get kogitobuild" +ogc "kubectl get configmap" +ogi "kubectl get imagestream" +ogn "kubectl get" +ogr "kubectl get kogitoruntime" +ogs "kubectl get service" +ogsm "kubectl get servicemonitor" +ol "kubectl logs -f" +oli "kubectl login -u kubeadmin -p" +on "kubectl new-project" +op "kubectl project" +opa "kubectl projects | rg kogito" +opd "kubectl project default" +ot "kubectl status" + +# ]]] oc # + +# jenkins [[[ # + +jk "java -jar ~/java/jenkins-cli.jar -s http://localhost:8090 -auth kevin:$JENKINS_TOKEN" +jkb "java -jar ~/java/jenkins-cli.jar -s http://localhost:8090 -auth kevin:$JENKINS_TOKEN build -s -v" +jkc "java -jar ~/java/jenkins-cli.jar -s http://localhost:8090 -auth kevin:$JENKINS_TOKEN console -f" + +# ]]] jenkins # + +# maven [[[ # + +mvc "mvn clean" +mvci "mvn clean install -Dfull" +mvi "mvn install -Dfull" +# mvps "mvn package -DskipTests" +mvp "mvn clean package -DskipTests" +mvpr "mvn clean package -DskipTests && ./server-control.sh start" +# mvt "mvn test" +# mvct "mvn clean test" + +# ]]] maven # + +# make [[[ # + +mk "make" +mb4 "make before-pr" +mbc "make build-cli && scp build/_output/bin/kogito $WORK_LAPTOP_IP:/home/kmok/go/bin" +mc "make clean" +mct "make clean test" +mi "make install" +ml "make lint" +mr "make run" +mt "make test" +# mvet "make vet" +# mvett "make vet test" +mvt "make vet" +mvtt "make vet test" + +# ]]] make # + +# kg "kogito" + +# minikube [[[ # + +# mb "minikube" +mba "minikube start" +mbd "minikube delete" +mbs "minikube stop" +mbt "minikube status" + +# ]]] minikube # + +# go [[[ # + +gor "go run" +gom "DEBUG=true go run main.go" +got "go test" +gota "go test *" +gotd "go mod tidy" + +# ]]] go # + +# docker [[[ # + +dk "docker" +dkb "docker build" +dki "docker image" +dkp "docker push" +dks "docker images" + +# ]]] docker # + +sb "ansible" +sbp "ansible-playbook" + +# helm [[[ # + +# h "helm" +hd "helm delete" +hi "helm install" +him "helm install --set openshift=false" +ht "helm template" +hu "helm upgrade" + +# ]]] helm # + +# ]]] red-hat # + +# tet "ticker (cat ~/Documents/expenses/etf.md) | xclip -selection clipboard" +tet "ticker (xclip -o) | xclip -selection clipboard" + +# vpn [[[ # + +eip "curl ifconfig.me" +fdb "firefox -P discord-" +sip "curl ifconfig.me" +vpc "nordvpn connect && curl ifconfig.me" +vpd "nordvpn disconnect" + +# ]]] vpn # diff --git a/aliases/key_dirs.tmpl b/aliases/key_dirs.tmpl index 5196de1..a1541c6 100644 --- a/aliases/key_dirs.tmpl +++ b/aliases/key_dirs.tmpl @@ -1,4 +1,4 @@ -# vim: fdm=marker ft=sh.go-template syntax=sh +# vim: fdm=marker ft=sh.go-template syntax=sh # sys [[[ # @@ -6,23 +6,32 @@ bg ~/Pictures/Backgrounds cf ~/linux-config/dot_config cfd ~/.config cff ~/.config/fish +ch ~/Documents/chat +da /mnt/ipad dl ~/Downloads # dw ~/dwm D ~/Documents k ~/ lc ~/linux-config lf /mnt/linux-files +lf2 /mnt/linux-files-2 +lfp /mnt/linux-files/Pictures lfv /mnt/linux-files/Videos +lfv2 /mnt/linux-files-2/Videos +lfy /mnt/linux-files/Videos/yt +me /run/media/kevin o / -p ~/.password-store +pd ~/.password-store +pfp ~/Pictures/profile-pics P ~/Pictures +ssu ~/Pictures/screenshots/desktop/unsorted std ~/st # tm /tmp tm ~/tmp {{ if and (eq .chezmoi.username "root") (eq .linux_os "debian") }} ng /etc/nginx/sites-available -sv /etc/systemd/system +# sv /etc/systemd/system {{ end }} # ]]] sys # @@ -30,16 +39,26 @@ sv /etc/systemd/system # cdn [[[ # ad ~/.task +bm ~/Documents/bookmarks ccd ~/.calcurse cms ~/Documents/codm/site cn ~/coding +drk ~/coding/dark-sky +ffx ~/linux-config/dot_config/fish/functions hbd ~/.habitctl ib ~/linux-config/dot_config/i3blocks/scripts ms ~/coding/my-site +pr ~/coding/pull-requests ra ~/linux-config/dot_config/ranger +rd ~/Documents/red-discord-bot +rda ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure +rdt ~/coding/discord-bots +rdp ~/coding/discord-bots/pinky/cogs/CogManager/cogs/adventure sr ~/linux-config/scripts snp ~/.vim/plugged/vim-snippets/UltiSnips sw ~/.local/share/nvim/swap/ +ttd ~/.timetrace +ttdr ~/.timetrace/records tx ~/linux-config/txt wd ~/.config/watson @@ -48,25 +67,38 @@ b1 ~/coding/mf-site/themes/base16 2d ~/coding/godot-demos/2d-plat ada ~/coding/ada-mario ft ~/coding/face-tracker +hv ~/Documents/hevin +hvs ~/Documents/hevin/shopping j ~/Documents/journal lh ~/Documents/listening-history mmd ~/coding/move-mouse-with-head +mh ~/coding/mf-site/layouts +ms ~/coding/mf-site +msl ~/coding/mf-site/content/letter +# mp ~/coding/mf-site/static/pdf +pk ~/Documents/journal/packing-lists +pn ~/coding/red-discord-bot +rs ~/coding/rarity-surf/backend/rarity_check/project +rsf ~/coding/rarity-surf/frontend +rsc ~/coding/rarity-surf/backend/rarity_check/project/management/commands +rsm ~/coding/rarity-surf/backend/rarity_check/project/migrations sv ~/coding/spotify-lib-vis/src svg ~/coding/spotify-lib-vis/src/graphs/static/graphs/scripts swd ~/coding/swex tb ~/coding/trapbot/src/trapbot -wo ~/Documents/workout-logs +ur ~/coding/uranium-godot +# wo ~/Documents/workout-logs # gaming [[[ # -te ~/Documents/twitch-emotes +te ~/Pictures/twitch-emotes -mt ~/.minetest -mta ~/.minetest/clientmods/custom_aliases -mtc ~/.minetest/games/mineclone2/mods -mtm ~/.minetest/minetest +# mt ~/.minetest +# mta ~/.minetest/clientmods/custom_aliases +# mtc ~/.minetest/games/mineclone2/mods +# mtm ~/.minetest/minetest -pk ~/Downloads/gba/mgba/pokemon/emerald/1 +# pk ~/Downloads/gba/mgba/pokemon/emerald/1 # ]]] gaming # @@ -80,18 +112,154 @@ ads ~/coding/ada-mario/scripts adP ~/Pictures/ada-mario {{ end }} + # ]]] cdn # +# gaming [[[ # + +lfo /mnt/linux-files/Videos/obs +lfo2 /mnt/linux-files-2/Videos/obs +pxv /mnt/linux-files/Videos/pixel + +# codm [[[ # + +cm ~/Documents/codm +cs ~/Documents/codm/site +csi ~/Documents/codm/site/static/images +Css ~/Pictures/screenshots/mobile/codm + +# ]]] codm # + +# fortnite [[[ # + +fn ~/Documents/fortnite +fnc /mnt/linux-files/Videos/yt/fortnite/clips/4 +fni /mnt/ipad/DCIM/100APPLE +fnm ~/Documents/fortnite/pics/maps +fnn ~/Documents/fortnite/notes +fns ~/Documents/fortnite/stats/api +fnv /mnt/linux-files/Videos/personal-fortnite-games/review +tcd /mnt/linux-files/Videos/yt/fortnite/clips/twitch-clip-downloader + +# ]]] fortnite # + +pgv /mnt/linux-files/Videos/pokemon-go +tr ~/.local/share/Terraria + +dc ~/Documents/chat/discord +twt ~/Documents/twitter + +sdv ~/Documents/stardew-valley-aha + +wo ~/Documents/workout-logs/3 + +# ]]] gaming # + # sch [[[ # sc ~/school lt ~/school/latex-notes -2 ~/school/324 -2a ~/school/324-a2-2 -2e ~/school/324/e/8 -2l ~/school/324/l/8 -8 ~/school/384 +# 301 [[[ # + +1 ~/school/301 +1a ~/school/301/a2 +1af ~/school/301/a1/price-calc/src +# 1ab ~/school/301/a1/backend +1ab ~/school/301/todo-app-medium-demo/flask_app +1as ~/school/301/a2/scripts +1apr ~/coding/pull-requests/301/a1 +1d ~/school/301/korotu/deliverables/deliverable-2/minter/src +1d3 ~/school/301/korotu/deliverables/deliverable-3 +1dc ~/school/301/korotu/deliverables/deliverable-2/nft-contract +1k ~/school/301/korotu +1kd ~/school/301/korotu/deliverables/deliverable-1 +1pr ~/coding/pull-requests/301/d3 + +# ]]] 301 # + +# solidity [[[ # + +sl ~/coding/solidity +shd ~/coding/solidity/dotenv +shw ~/coding/solidity/hello-world +shws ~/coding/solidity/hello-world-part-four-tutorial/starter-files/src +snf ~/coding/solidity/nft +snm ~/coding/solidity/nft-minter-tutorial/minter-starter-files/src + +# ]]] solidity # # ]]] sch # + +# pey [[[ # + +atx ~/Documents/ataraxy-venture +em ~/Documents/emails +li ~/Documents/linkedin +lic ~/Documents/linkedin/msgs +rh ~/Documents/red-hat +rhc ~/Documents/red-hat/chat +rhe ~/Documents/red-hat/emails +rhl ~/Documents/red-hat/learned +sa ~/coding/rhcsa-notes + +wcl ~/.weechat/logs +ep ~/Documents/expenses + +# kogito [[[ # + +kg ~/coding/kogito +kap ~/coding/kogito/kogito-apps +kdo ~/coding/kogito/kie-docs +kdoa ~/coding/kogito/kie-docs/doc-content/kogito-docs/src/main/asciidoc +kex ~/coding/kogito/kogito-examples +keh ~/coding/kogito/kogito-examples/process-scripts-quarkus/target +kep ~/coding/kogito/kogito-examples/process-postgresql-persistence-quarkus +kfl ~/coding/kogito/kogito-apps +kh ~/coding/kogito/kogito-helm-charts +kho ~/coding/kogito/kogito-helm-chart-old +ki ~/coding/kogito/kogito-images +kj ~/coding/kogito/jenkins-test +kjb ~/coding/kogito/jenkins-test-bot +kjf ~/coding/kogito/jenkins-test/full +kl ~/coding/kogito/shared-libraries +# operator [[[ # + +ko ~/go/src/github.com/kiegroup/kogito-operator +kor ~/go/src/github.com/kiegroup/rhpam-kogito-operator +# koc ~/go/src/github.com/kiegroup/kogito-operator/cmd/kogito/command +koc ~/coding/kogito/kogito-operator +kod ~/go/src/github.com/kiegroup/kogito-operator/cmd/kogito/command/deploy +koe ~/go/src/github.com/kiegroup/kogito-operator/examples +kore ~/go/src/github.com/kiegroup/rhpam-kogito-operator/example +kof ~/go/src/github.com/kiegroup/kogito-operator/cmd/kogito/command/flag +# kor ~/go/src/github.com/kiegroup/kogito-operator/pkg/controller/kogitoruntime +kou ~/go/src/github.com/kiegroup/kogito-operator/cmd/kogito/command/util +ko2 ~/coding/kogito/kogito-operator-2 + +# ]]] operator # +kob ~/coding/kogito-operator-onboarding +kot ~/coding/kogito/optaplanner +kp ~/coding/kogito/kogito-pipelines +kp2 ~/coding/kogito/kogito-pipelines-2 +kpr ~/coding/pull-requests/red-hat +kprh ~/coding/pull-requests/red-hat/helm +kr ~/coding/kogito/kogito-runtimes +krj ~/coding/kogito/kogito-runtimes/jenkins-spock-tests +ky ~/coding/kogito/kogito-kmok-yamls + +gos ~/go/src + +# ]]] kogito # + +vb ~/coding/VileBot/vilebot +vbs ~/coding/VileBot/vilebot/src/main/java/com/oldterns/vilebot + +dv ~/coding/devops-sre-knowledge +nxo ~/coding/kogito/nexus-operator + +# ]]] pey # + +mb ~/coding/mint-bot +nft ~/Documents/nft diff --git a/aliases/key_files.tmpl b/aliases/key_files.tmpl index 1252de6..fb1782a 100644 --- a/aliases/key_files.tmpl +++ b/aliases/key_files.tmpl @@ -3,14 +3,16 @@ # sys [[[ # 3 ~/linux-config/dot_config/i3/config.tmpl +3b ~/linux-config/dot_config/i3blocks/i3blocks.conf.tmpl a ~/linux-config/aliases/key_aliases.tmpl ak ~/linux-config/dot_ssh/authorized_keys-all d ~/linux-config/aliases/key_dirs.tmpl dw ~/dwm/config.def.h f ~/linux-config/aliases/key_files.tmpl -h ~/.local/share/fish/fish_history +fh ~/.local/share/fish/fish_history +hc ~/Documents/hevin/cleaning.md n ~/linux-config/dot_vimrc.tmpl -p ~/linux-config/txt/pacman-pkgs/pacman-pkgs.txt +pkg ~/linux-config/txt/pacman-pkgs/pacman-pkgs.txt r ~/linux-config/dot_config/ranger/rc.conf.tmpl sr ~/linux-config/configs/ranger/shortcuts.conf ss ~/.shortcuts @@ -31,50 +33,78 @@ ng /etc/nginx/nginx.conf # cdn [[[ # ap ~/.task/pending.data +at ~/.task/to-add.md bid ~/Documents/journal/todo/blog.md cc ~/linux-config/private_dot_calcurse/conf ci ~/linux-config/txt/ideas.md cm ./commit-msg.txt cmt /tmp/commit-msg.txt -hb ~/.habitctl/log -hbh ~/.habitctl/habits +el ~/Documents/twitch-emotes/links-new.md +h ~/.habitctl/log +hh ~/.habitctl/habits hlg ~/coding/spotify-lib-vis/src/api/management/commands/update-history.log id ~/Documents/journal/todo/ideas.md ig ./.gitignore -jn ~/Documents/journal/todo/9.md -jt ~/Documents/journal/todo/todo.md +jt ~/Documents/journal/todo/22/2.md +k ~/linux-config/dot_config/kitty/kitty.conf lh ~/Documents/listening-history/polarbier.csv mc ~/coding/mf-site/assets/sass/main.scss mi ~/coding/mf-site/ideas.md ne ~/linux-config/configs/neofetch/config.conf re README.md +rda ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure/adventure.py +rdc ~/Documents/red-discord-bot/commands-freq.md td todo.md -el ~/Documents/twitch-emotes/links-new.md tg ~/.config/watson/tags_cache tt txt/todo.md tm ~/.vim/plugged/vim-snippets/UltiSnips/texmath.snippets tp /tmp/ tw ~/linux-config/dot_taskrc +w ~/.config/watson/state.tmp wh ~/Documents/journal/todo/work-habit.md -wt ~/.config/watson/state.md +wt ~/.config/watson/state.tmp # ]]] cdn # # sch [[[ # -# 309 [[[ # - -0c ~/school/309-proj/sass/main.scss -0h ~/school/309-proj/public/js/helpers.js -0i ~/school/309-proj/public/index.html -0m ~/school/309-proj/public/js/main.js -0f ~/school/309-proj/public/js/food.js -0s ~/school/309-proj/server.js -0t ~/school/309-proj/public/js/stores.js - -# ]]] 309 # +lb ~/coding/linux-basics/linux-basics.md # ]]] sch # +# gaming [[[ # + +bn ~/Documents/discord-burners/burners.md +cmr ~/Documents/codm/discord-recruitment.md +cra ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure/data/default/attribs.json +crm ~/Documents/red-discord-bot/repos/gobcog-kevin/adventure/data/default/monsters.json +fn ~/Documents/fortnite/notes/fortnite-notes.md +fp ~/Documents/fortnite/notes/post.md +fv ~/Documents/fortnite/notes/vods.md mta ~/.minetest/clientmods/custom_aliases/init.lua cmr ~/Documents/codm/discord-recruitment.md +nb ~/Documents/chat/discord/pistol.md +pk ~/Downloads/pokecord/pokecord2.md +tc /mnt/linux-files/Videos/yt/fortnite/clips/twitch-clip-downloader/clips.txt +tdb ~/Documents/journal/todo/b.md + +# ]]] gaming # + +# pey [[[ # + +dv ~/coding/devops-sre-knowledge/devops-sre-learned.md +j Jenkinsfile. +jd Jenkinsfile.deploy +klg ~/coding/kogito/shared-libraries/vars/githubscm.groovy +klm ~/coding/kogito/shared-libraries/vars/maven.groovy +kob ~/coding/kogito-operator-onboarding/README.md +kpr ~/coding/kogito/kogito-pipelines/Jenkinsfile.pr-bdd-tests +krt /home/kevin/coding/kogito/kogito-runtimes/jenkins-spock-tests/src/test/vars/JenkinsfilePromote.groovy +rd ~/Documents/red-hat/dates.md +rm ~/Documents/red-hat/meeting.md +rt ~/Documents/red-hat/todo.md + +# ]]] pey # + +nf ~/Documents/twitter/nft.md +ds ~/Documents/nft/deep-sea-research.md diff --git a/dot_Xmodmap b/dot_Xmodmap index 0eea2b2..905f1df 100644 --- a/dot_Xmodmap +++ b/dot_Xmodmap @@ -1,7 +1,9 @@ clear Lock -keycode 22 = Caps_Lock -keycode 66 = BackSpace -keycode 78 = End +keycode 9 = Caps_Lock +keycode 22 = BackSpace +keycode 66 = Escape -pointer = 1 10 3 6 7 4 5 2 11 12 8 9 +pointer = 1 2 3 6 7 4 5 10 11 12 8 9 +! side thumb button as middle click +! pointer = 1 10 3 6 7 4 5 2 11 12 8 9 diff --git a/dot_Xmodmap-old b/dot_Xmodmap-old new file mode 100644 index 0000000..0eea2b2 --- /dev/null +++ b/dot_Xmodmap-old @@ -0,0 +1,7 @@ +clear Lock + +keycode 22 = Caps_Lock +keycode 66 = BackSpace +keycode 78 = End + +pointer = 1 10 3 6 7 4 5 2 11 12 8 9 diff --git a/dot_Xresources.tmpl b/dot_Xresources.tmpl index b9678dd..b2ac08c 100644 --- a/dot_Xresources.tmpl +++ b/dot_Xresources.tmpl @@ -5,7 +5,10 @@ Xft.dpi: 235 ! Xft.dpi: 240 {{ else }} +! Xft.dpi: 90 +! Xft.dpi: 100 Xft.dpi: 135 +! Xft.dpi: 170 {{ end }} Xft.autohint: 0 Xft.lcdfilter: lcddefault @@ -21,6 +24,8 @@ Xft.rgba: rgb {{ if eq .chezmoi.hostname "x1-carbon" }} URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=11 ! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=10 +URxvt*cursorBlink: 0 +URxvt*cursorBlink: False {{ else }} ! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=15 ! URxvt.font: xft:DejaVuSansMono Nerd Font Mono:size=14 @@ -49,9 +54,9 @@ URxvt*transparent: true URxvt*inheritPixmap: true ! URxvt*transparent: false ! URxvt*shading: 0 (blackest) to 99 black, 101 to 200 (whitest) white -URxvt*shading: 50 +! URxvt*shading: 50 ! URxvt*shading: 40 -! URxvt*shading: 35 +URxvt*shading: 35 ! urxvt*blurRadius: 10 /* ]]] transparency */ diff --git a/dot_config/fish/completions/kogito.fish b/dot_config/fish/completions/kogito.fish new file mode 100644 index 0000000..22a3325 --- /dev/null +++ b/dot_config/fish/completions/kogito.fish @@ -0,0 +1,137 @@ +# fish completion for kogito -*- shell-script -*- + +function __kogito_debug + set file "$BASH_COMP_DEBUG_FILE" + if test -n "$file" + echo "$argv" >> $file + end +end + +function __kogito_perform_completion + __kogito_debug "Starting __kogito_perform_completion with: $argv" + + set args (string split -- " " "$argv") + set lastArg "$args[-1]" + + __kogito_debug "args: $args" + __kogito_debug "last arg: $lastArg" + + set emptyArg "" + if test -z "$lastArg" + __kogito_debug "Setting emptyArg" + set emptyArg \"\" + end + __kogito_debug "emptyArg: $emptyArg" + + set requestComp "$args[1] __complete $args[2..-1] $emptyArg" + __kogito_debug "Calling $requestComp" + + set results (eval $requestComp 2> /dev/null) + set comps $results[1..-2] + set directiveLine $results[-1] + + # For Fish, when completing a flag with an = (e.g., -n=) + # completions must be prefixed with the flag + set flagPrefix (string match -r -- '-.*=' "$lastArg") + + __kogito_debug "Comps: $comps" + __kogito_debug "DirectiveLine: $directiveLine" + __kogito_debug "flagPrefix: $flagPrefix" + + for comp in $comps + printf "%s%s\n" "$flagPrefix" "$comp" + end + + printf "%s\n" "$directiveLine" +end + +# This function does three things: +# 1- Obtain the completions and store them in the global __kogito_comp_results +# 2- Set the __kogito_comp_do_file_comp flag if file completion should be performed +# and unset it otherwise +# 3- Return true if the completion results are not empty +function __kogito_prepare_completions + # Start fresh + set --erase __kogito_comp_do_file_comp + set --erase __kogito_comp_results + + # Check if the command-line is already provided. This is useful for testing. + if not set --query __kogito_comp_commandLine + set __kogito_comp_commandLine (commandline) + end + __kogito_debug "commandLine is: $__kogito_comp_commandLine" + + set results (__kogito_perform_completion "$__kogito_comp_commandLine") + set --erase __kogito_comp_commandLine + __kogito_debug "Completion results: $results" + + if test -z "$results" + __kogito_debug "No completion, probably due to a failure" + # Might as well do file completion, in case it helps + set --global __kogito_comp_do_file_comp 1 + return 0 + end + + set directive (string sub --start 2 $results[-1]) + set --global __kogito_comp_results $results[1..-2] + + __kogito_debug "Completions are: $__kogito_comp_results" + __kogito_debug "Directive is: $directive" + + if test -z "$directive" + set directive 0 + end + + set compErr (math (math --scale 0 $directive / 1) % 2) + if test $compErr -eq 1 + __kogito_debug "Received error directive: aborting." + # Might as well do file completion, in case it helps + set --global __kogito_comp_do_file_comp 1 + return 0 + end + + set nospace (math (math --scale 0 $directive / 2) % 2) + set nofiles (math (math --scale 0 $directive / 4) % 2) + + __kogito_debug "nospace: $nospace, nofiles: $nofiles" + + # Important not to quote the variable for count to work + set numComps (count $__kogito_comp_results) + __kogito_debug "numComps: $numComps" + + if test $numComps -eq 1; and test $nospace -ne 0 + # To support the "nospace" directive we trick the shell + # by outputting an extra, longer completion. + __kogito_debug "Adding second completion to perform nospace directive" + set --append __kogito_comp_results $__kogito_comp_results[1]. + end + + if test $numComps -eq 0; and test $nofiles -eq 0 + __kogito_debug "Requesting file completion" + set --global __kogito_comp_do_file_comp 1 + end + + # If we don't want file completion, we must return true even if there + # are no completions found. This is because fish will perform the last + # completion command, even if its condition is false, if no other + # completion command was triggered + return (not set --query __kogito_comp_do_file_comp) +end + +# Remove any pre-existing completions for the program since we will be handling all of them +# TODO this cleanup is not sufficient. Fish completions are only loaded once the user triggers +# them, so the below deletion will not work as it is run too early. What else can we do? +complete -c kogito -e + +# The order in which the below two lines are defined is very important so that __kogito_prepare_completions +# is called first. It is __kogito_prepare_completions that sets up the __kogito_comp_do_file_comp variable. +# +# This completion will be run second as complete commands are added FILO. +# It triggers file completion choices when __kogito_comp_do_file_comp is set. +complete -c kogito -n 'set --query __kogito_comp_do_file_comp' + +# This completion will be run first as complete commands are added FILO. +# The call to __kogito_prepare_completions will setup both __kogito_comp_results abd __kogito_comp_do_file_comp. +# It provides the program's completion choices. +complete -c kogito -n '__kogito_prepare_completions' -f -a '$__kogito_comp_results' + diff --git a/dot_config/fish/completions/kubectl.fish b/dot_config/fish/completions/kubectl.fish new file mode 100644 index 0000000..ce82b0d --- /dev/null +++ b/dot_config/fish/completions/kubectl.fish @@ -0,0 +1,1728 @@ +# +set -q FISH_KUBECTL_COMPLETION_TIMEOUT; or set FISH_KUBECTL_COMPLETION_TIMEOUT 5s +set -q FISH_KUBECTL_COMPLETION_COMPLETE_CRDS; or set FISH_KUBECTL_COMPLETION_COMPLETE_CRDS 1 +set __fish_kubectl_timeout "--request-timeout=$FISH_KUBECTL_COMPLETION_TIMEOUT" +set __fish_kubectl_all_namespaces_flags "--all-namespaces" "--all-namespaces=true" +set __fish_kubectl_subresource_commands get describe delete edit label explain +set __fish_kubectl_commands alpha \ + annotate \ + api-resources \ + api-versions \ + apply \ + attach \ + auth \ + autoscale \ + certificate \ + cluster-info \ + completion \ + config \ + cordon \ + cp \ + create \ + debug \ + delete \ + describe \ + diff \ + drain \ + edit \ + exec \ + explain \ + expose \ + get \ + kustomize \ + label \ + logs \ + options \ + patch \ + plugin \ + port-forward \ + proxy \ + replace \ + rollout \ + run \ + scale \ + set \ + taint \ + top \ + uncordon \ + version \ + wait + +function __fish_kubectl + set -l context_args + + if set -l context_flags (__fish_kubectl_get_context_flags | string split " ") + for c in $context_flags + set context_args $context_args $c + end + end + + command kubectl $__fish_kubectl_timeout $context_args $argv +end + +function __fish_kubectl_get_commands + echo alpha\t'Commands for features in alpha' + echo annotate\t'Update the annotations on a resource' + echo api-resources\t'Print the supported API resources on the server' + echo api-versions\t'Print the supported API versions on the server, in the form of "group/version"' + echo apply\t'Apply a configuration to a resource by filename or stdin' + echo attach\t'Attach to a running container' + echo auth\t'Inspect authorization' + echo autoscale\t'Auto-scale a Deployment, ReplicaSet, or ReplicationController' + echo certificate\t'Modify certificate resources.' + echo cluster-info\t'Display cluster info' + echo completion\t'Output shell completion code for the specified shell (bash or zsh)' + echo config\t'Modify kubeconfig files' + echo cordon\t'Mark node as unschedulable' + echo cp\t'Copy files and directories to and from containers.' + echo create\t'Create a resource from a file or from stdin.' + echo debug\t'Create debugging sessions for troubleshooting workloads and nodes' + echo delete\t'Delete resources by filenames, stdin, resources and names, or by resources and label selector' + echo describe\t'Show details of a specific resource or group of resources' + echo diff\t'Diff live version against would-be applied version' + echo drain\t'Drain node in preparation for maintenance' + echo edit\t'Edit a resource on the server' + echo exec\t'Execute a command in a container' + echo explain\t'Documentation of resources' + echo expose\t'Take a replication controller, service, deployment or pod and expose it as a new Kubernetes Service' + echo get\t'Display one or many resources' + echo kustomize\t'Build a kustomization target from a directory or a remote url.' + echo label\t'Update the labels on a resource' + echo logs\t'Print the logs for a container in a pod' + echo options\t'Print the list of flags inherited by all commands' + echo patch\t'Update field(s) of a resource' + echo plugin\t'Provides utilities for interacting with plugins.' + echo port-forward\t'Forward one or more local ports to a pod' + echo proxy\t'Run a proxy to the Kubernetes API server' + echo replace\t'Replace a resource by filename or stdin' + echo rollout\t'Manage the rollout of a resource' + echo run\t'Run a particular image on the cluster' + echo scale\t'Set a new size for a Deployment, ReplicaSet or Replication Controller' + echo set\t'Set specific features on objects' + echo taint\t'Update the taints on one or more nodes' + echo top\t'Display Resource (CPU/Memory/Storage) usage.' + echo uncordon\t'Mark node as schedulable' + echo version\t'Print the client and server version information' + echo wait\t'Experimental: Wait for a specific condition on one or many resources.' +end + +set __fish_kubectl_resources \ + all \ + certificatesigningrequests csr \ + clusterrolebindings \ + clusterroles \ + clusters \ + componentstatuses cs \ + configmaps configmap cm \ + controllerrevisions \ + cronjobs cj \ + customresourcedefinition crd crds \ + daemonsets ds \ + deployments deployment deploy \ + endpoints ep \ + events ev \ + horizontalpodautoscalers hpa \ + ingresses ingress ing \ + jobs job \ + limitranges limits \ + namespaces namespace ns \ + networkpolicies netpol \ + nodes node no \ + persistentvolumeclaims pvc \ + persistentvolumes pv \ + poddisruptionbudgets pdb \ + podpreset \ + pods pod po \ + podsecuritypolicies psp \ + podtemplates \ + replicasets rs \ + replicationcontrollers rc \ + resourcequotas quota \ + rolebindings \ + roles \ + secrets secret \ + serviceaccounts sa \ + services service svc \ + statefulsets sts \ + storageclass storageclasses sc + +set __fish_kubectl_cached_crds "" +set __fish_kubectl_last_crd_fetch "" + +function __fish_kubectl_actually_get_crds + set __fish_kubectl_cached_crds (__fish_kubectl get crd -o jsonpath='{range .items[*]}{.spec.names.plural}{"\n"}{.spec.names.singular}{"\n"}{range .spec.names.shortNames[]}{@}{"\n"}{end}{end}' 2>/dev/null) + set __fish_kubectl_last_crd_fetch (__fish_kubectl_get_current_time) + for i in $__fish_kubectl_cached_crds + echo $i + end +end + +function __fish_kubectl_get_current_time + date +'%s' +end + +function __fish_kubectl_get_crds + if test -z "$__fish_kubectl_last_crd_fetch"; or test -z "$__fish_kubectl_cached_crds" + __fish_kubectl_actually_get_crds + return 0 + end + + set -l ct (__fish_kubectl_get_current_time) + set -l duration (math $ct-$__fish_kubectl_last_crd_fetch) + # Only fetch crds if we have not fetched them within the past 30 seconds. + if test "$duration" -gt 30 + __fish_kubectl_actually_get_crds + return 0 + end + + for i in $__fish_kubectl_cached_crds + echo $i + end +end + +function __fish_kubectl_seen_subcommand_from_regex + set -l cmd (commandline -poc) + set -e cmd[1] + for i in $cmd + for r in $argv + if string match -r -- $r $i + return 0 + end + end + end + return 1 +end + +function __fish_kubectl_needs_command -d 'Test if kubectl has yet to be given the subcommand' + for i in (commandline -opc) + if contains -- $i $__fish_kubectl_commands + echo "$i" + return 1 + end + end + return 0 +end + +function __fish_kubectl_needs_resource -d 'Test if kubectl has yet to be given the subcommand resource' + set -l resources (__fish_kubectl_print_resource_types) + for i in (commandline -opc) + if contains -- $i $resources + return 1 + end + end + return 0 +end + +function __fish_kubectl_using_command + set -l cmd (__fish_kubectl_needs_command) + test -z "$cmd" + and return 1 + + contains -- $cmd $argv + and echo "$cmd" + and return 0 + + return 1 +end + +function __fish_kubectl_using_resource + set -l cmd (__fish_kubectl_needs_resource) + test -z "$cmd" + and return 1 + + contains -- $cmd $argv + and echo "$cmd" + and return 0 + + return 1 +end + +function __fish_kubectl_has_partial_resource_match + set -l last (commandline -opt) + if not set -l matches (string match -- "(.*)/" $last) + return + end + + if string match -q -- "(.*)/" $last + return 0 + end + + return 1 +end + +function __fish_kubectl_print_matching_resources + set -l last (commandline -opt) + if not set -l matches (string match -r -- "(.*)/" $last) + return + end + set -l prefix $matches[2] + set -l resources (__fish_kubectl_print_resource "$prefix") + for i in $resources + echo "$prefix/$i" + end +end + +function __fish_kubectl_get_context_flags + set -l cmd (commandline -opc) + if [ (count $cmd) -eq 0 ] + return 1 + end + + set -l foundContext 0 + + for c in $cmd + test $foundContext -eq 1 + set -l out "--context" "$c" + and echo $out + and return 0 + + if string match -q -r -- "--context=" "$c" + set -l out (string split -- "=" "$c" | string join " ") + and echo $out + and return 0 + else if contains -- "$c" "--context" + set foundContext 1 + end + end + + return 1 +end + +function __fish_kubectl_get_ns_flags + set -l cmd (commandline -opc) + if [ (count $cmd) -eq 0 ] + return 1 + end + + set -l foundNamespace 0 + + for c in $cmd + test $foundNamespace -eq 1 + set -l out "--namespace" "$c" + and echo $out + and return 0 + + if contains -- $c $__kubectl_all_namespaces_flags + echo "--all-namespaces" + return 0 + end + + if contains -- $c "--namespace" "-n" + set foundNamespace 1 + end + end + + return 1 +end + +function __fish_kubectl_print_resource_types + for r in $__fish_kubectl_resources + echo $r + end + + if test $FISH_KUBECTL_COMPLETION_COMPLETE_CRDS -eq 1 + set -l crds (__fish_kubectl_get_crds) + + for r in $crds + echo $r + end + end +end + +function __fish_kubectl_print_current_resources -d 'Prints current resources' + set -l found 0 + # There is probably a better way to do this... + # found === 1 means that we have not yet found the crd type + # found === 2 means that we have not yet found the crd name, but have found the type + set -l current_resource + set -l crd_types (__fish_kubectl_get_crds) + for i in (commandline -opc) + if test $found -eq 0 + if contains -- $i $__fish_kubectl_subresource_commands + set found 1 + end + end + + if test $found -eq 1 + if contains -- $i $crd_types + set -l out (__fish_kubectl_print_resource $i) + for item in $out + echo "$item" + end + return 0 + end + end + end +end + +function __fish_kubectl_print_resource -d 'Print a list of resources' -a resource + set -l args + if set -l ns_flags (__fish_kubectl_get_ns_flags | string split " ") + for ns in $ns_flags + set args $args $ns + end + end + + set args $args get "$resource" + __fish_kubectl $args --no-headers 2>/dev/null | awk '{print $1}' | string replace -r '(.*)/' '' +end + +function __fish_kubectl_get_config -a type + set -l template "{{ range .$type }}"'{{ .name }}{{"\n"}}{{ end }}' + __fish_kubectl config view -o template --template="$template" +end + +function __fish_kubectl_get_rollout_resources + set -l args + if set -l ns_flags (__fish_kubectl_get_ns_flags | string split " ") + for ns in $ns_flags + set args $args $ns + end + end + + set -l template '{range .items[*]}{.metadata.name}{"\n"}{end}' + + set -l deploys (__fish_kubectl $args get deploy -o jsonpath="$template" 2>/dev/null) + set -l daemonsets (__fish_kubectl $args get ds -o jsonpath="$template" 2>/dev/null) + set -l sts (__fish_kubectl $args get sts -o jsonpath="$template" 2>/dev/null) + + for i in $deploys + echo "deploy/$i" + echo "deployment/$i" + echo "deployments/$i" + end + + for i in $daemonsets + echo "daemonset/$i" + echo "daemonsets/$i" + echo "ds/$i" + end + + for i in $sts + echo "statefulset/$i" + echo "statefulsets/$i" + echo "sts/$i" + end +end + +complete -c kubectl -f -n '__fish_kubectl_needs_command' -a '(__fish_kubectl_get_commands)' + +for subcmd in $__fish_kubectl_subresource_commands + complete -c kubectl -f -n "__fish_kubectl_using_command $subcmd; and not __fish_seen_subcommand_from (__fish_kubectl_print_resource_types)" -a '(__fish_kubectl_print_resource_types)' -d 'Resource' + complete -c kubectl -f -n "__fish_kubectl_using_command $subcmd; and __fish_kubectl_has_partial_resource_match" -a '(__fish_kubectl_print_matching_resources)' -d 'Resource' + for resource in $__fish_kubectl_resources + complete -c kubectl -f -n "__fish_kubectl_using_command $subcmd; and __fish_seen_subcommand_from $resource" -a "(__fish_kubectl_print_resource $resource)" -d "$resource" + end + + if test $FISH_KUBECTL_COMPLETION_COMPLETE_CRDS -eq 1 + complete -c kubectl -f -n "__fish_kubectl_using_command $subcmd; and __fish_seen_subcommand_from (__fish_kubectl_get_crds)" -a '(__fish_kubectl_print_current_resources)' -d 'CRD' + end +end + +complete -c kubectl -f -n "__fish_seen_subcommand_from log logs exec port-forward" -a '(__fish_kubectl_print_resource pods)' -d 'Pod' +complete -c kubectl -f -n "__fish_seen_subcommand_from top; and __fish_seen_subcommand_from po pod pods" -a '(__fish_kubectl_print_resource pods)' -d 'Pod' +complete -c kubectl -f -n "__fish_seen_subcommand_from top; and __fish_seen_subcommand_from no node nodes" -a '(__fish_kubectl_print_resource nodes)' -d 'Node' + +for subcmd in cordon uncordon drain taint + complete -c kubectl -f -n "__fish_seen_subcommand_from $subcmd" -a '(__fish_kubectl_print_resource nodes)' -d 'Node' +end + +set -l __fish_kubectl_config_complete_contexts \ + delete-context \ + get-contexts \ + rename-contexts \ + set-context \ + use-context + +set -l __fish_kubectl_config_complete_clusters \ + delete-cluster \ + get-clusters \ + set-cluster + +complete -c kubectl -f -n "__fish_seen_subcommand_from config; and __fish_seen_subcommand_from $__fish_kubectl_config_complete_contexts" -a '(__fish_kubectl_get_config contexts)' -d 'Context' +complete -c kubectl -f -n "__fish_seen_subcommand_from config; and __fish_seen_subcommand_from $__fish_kubectl_config_complete_clusters" -a '(__fish_kubectl_get_config clusters)' -d 'Cluster' +complete -c kubectl -f -n "__fish_seen_subcommand_from rollout; and __fish_seen_subcommand_from (__fish_kubectl_get_rollout_commands_without_descriptions)" -a '(__fish_kubectl_get_rollout_resources)' +complete -c kubectl -f -r -l as -d 'Username to impersonate for the operation' +complete -c kubectl -f -r -l as-group -d 'Group to impersonate for the operation, this flag can be repeated to specify multiple groups.' +complete -c kubectl -r -l cache-dir -d 'Default cache directory' +complete -c kubectl -r -l certificate-authority -d 'Path to a cert file for the certificate authority' +complete -c kubectl -r -l client-certificate -d 'Path to a client certificate file for TLS' +complete -c kubectl -r -l client-key -d 'Path to a client key file for TLS' +complete -c kubectl -f -r -l cluster -d 'The name of the kubeconfig cluster to use' -a '(__fish_kubectl_get_config clusters)' +complete -c kubectl -f -r -l context -d 'The name of the kubeconfig context to use' -a '(__fish_kubectl_get_config contexts)' +complete -c kubectl -f -l insecure-skip-tls-verify -d 'If true, the server\'s certificate will not be checked for validity. This will make your HTTPS connections insecure' +complete -c kubectl -r -l kubeconfig -d 'Path to the kubeconfig file to use for CLI requests.' +complete -c kubectl -f -l match-server-version -d 'Require server version to match client version' +complete -c kubectl -f -r -s n -l namespace -d 'If present, the namespace scope for this CLI request' -a '(__fish_kubectl_print_resource namespace)' +complete -c kubectl -f -r -l password -d 'Password for basic authentication to the API server' +complete -c kubectl -f -r -l profile -d 'Name of profile to capture. One of (none|cpu|heap|goroutine|threadcreate|block|mutex)' +complete -c kubectl -f -r -l profile-output -d 'Name of the file to write the profile to' +complete -c kubectl -f -r -l request-timeout -d 'The length of time to wait before giving up on a single server request. Non-zero values should contain a corresponding time unit (e.g. 1s, 2m, 3h). A value of zero means don\'t timeout requests.' +complete -c kubectl -f -r -s s -l server -d 'The address and port of the Kubernetes API server' +complete -c kubectl -f -r -l tls-server-name -d 'Server name to use for server certificate validation. If it is not provided, the hostname used to contact the server is used' +complete -c kubectl -f -r -l token -d 'Bearer token for authentication to the API server' +complete -c kubectl -f -r -l user -d 'The name of the kubeconfig user to use' -a '(__fish_kubectl_get_config users)' +complete -c kubectl -f -r -l username -d 'Username for basic authentication to the API server' +complete -c kubectl -f -l warnings-as-errors -d 'Treat warnings received from the server as errors and exit with a non-zero exit code' + +# Completions for the "kubectl alpha" command +function __fish_kubectl_get_alpha_commands + echo debug\t'Create debugging sessions for troubleshooting workloads and nodes' +end + +function __fish_kubectl_get_alpha_commands_without_descriptions + __fish_kubectl_get_alpha_commands | string replace -r '\t.*$' '' +end + +complete -c kubectl -f -n "__fish_kubectl_using_command alpha; and not __fish_seen_subcommand_from (__fish_kubectl_get_alpha_commands_without_descriptions)" -a '(__fish_kubectl_get_alpha_commands)' + +# Completions for the "kubectl alpha debug" command +complete -c kubectl -f -n '__fish_seen_subcommand_from alpha debug' -l arguments-only -d 'If specified, everything after -- will be passed to the new container as Args instead of Command.' +complete -c kubectl -f -n '__fish_seen_subcommand_from alpha debug' -l attach -d 'If true, wait for the container to start running, and then attach as if \'kubectl attach ...\' were called. Default false, unless \'-i/--stdin\' is set, in which case the default is true.' +complete -c kubectl -f -n '__fish_seen_subcommand_from alpha debug' -r -s c -l container -d 'Container name to use for debug container.' +complete -c kubectl -f -n '__fish_seen_subcommand_from alpha debug' -r -l copy-to -d 'Create a copy of the target Pod with this name.' +complete -c kubectl -f -n '__fish_seen_subcommand_from alpha debug' -r -l env -d 'Environment variables to set in the container.' +complete -c kubectl -f -n '__fish_seen_subcommand_from alpha debug' -r -l image -d 'Container image to use for debug container.' +complete -c kubectl -f -n '__fish_seen_subcommand_from alpha debug' -r -l image-pull-policy -d 'The image pull policy for the container. If left empty, this value will not be specified by the client and defaulted by the server.' +complete -c kubectl -f -n '__fish_seen_subcommand_from alpha debug' -l quiet -d 'If true, suppress informational messages.' +complete -c kubectl -f -n '__fish_seen_subcommand_from alpha debug' -l replace -d 'When used with \'--copy-to\', delete the original Pod.' +complete -c kubectl -f -n '__fish_seen_subcommand_from alpha debug' -l same-node -d 'When used with \'--copy-to\', schedule the copy of target Pod on the same node.' +complete -c kubectl -f -n '__fish_seen_subcommand_from alpha debug' -r -l set-image -d 'When used with \'--copy-to\', a list of name=image pairs for changing container images, similar to how \'kubectl set image\' works.' +complete -c kubectl -f -n '__fish_seen_subcommand_from alpha debug' -l share-processes -d 'When used with \'--copy-to\', enable process namespace sharing in the copy.' +complete -c kubectl -f -n '__fish_seen_subcommand_from alpha debug' -s i -l stdin -d 'Keep stdin open on the container(s) in the pod, even if nothing is attached.' +complete -c kubectl -f -n '__fish_seen_subcommand_from alpha debug' -r -l target -d 'When using an ephemeral container, target processes in this container name.' +complete -c kubectl -f -n '__fish_seen_subcommand_from alpha debug' -s t -l tty -d 'Allocate a TTY for the debugging container.' + +# Completions for the "kubectl annotate" command +complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -l all -d 'Select all resources, including uninitialized ones, in the namespace of the specified resource types.' +complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -r -l field-selector -d 'Selector (field query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. --field-selector key1=value1,key2=value2). The server only supports a limited number of field queries per type.' +complete -c kubectl -n '__fish_seen_subcommand_from annotate' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to update the annotation' +complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -l list -d 'If true, display the annotations for a given resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -l local -d 'If true, annotation will NOT contact api-server but run locally.' +complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -l overwrite -d 'If true, allow annotations to be overwritten, otherwise reject annotation updates that overwrite existing annotations.' +complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -l record -d 'Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.' +complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -r -l resource-version -d 'If non-empty, the annotation update will only succeed if this is the current resource-version for the object. Only valid when specifying a single resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from annotate' -r -s l -l selector -d 'Selector (label query) to filter on, not including uninitialized ones, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2).' +complete -c kubectl -n '__fish_seen_subcommand_from annotate' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl api-resources" command +complete -c kubectl -f -n '__fish_seen_subcommand_from api-resources' -r -l api-group -d 'Limit to resources in the specified API group.' +complete -c kubectl -f -n '__fish_seen_subcommand_from api-resources' -l cached -d 'Use the cached list of resources if available.' +complete -c kubectl -f -n '__fish_seen_subcommand_from api-resources' -l namespaced -d 'If false, non-namespaced resources will be returned, otherwise returning namespaced resources by default.' +complete -c kubectl -f -n '__fish_seen_subcommand_from api-resources' -l no-headers -d 'When using the default or custom-column output format, don\'t print headers (default print headers).' +complete -c kubectl -f -n '__fish_seen_subcommand_from api-resources' -r -s o -l output -d 'Output format. One of: wide|name.' +complete -c kubectl -f -n '__fish_seen_subcommand_from api-resources' -r -l sort-by -d 'If non-empty, sort list of resources using specified field. The field can be either \'name\' or \'kind\'.' +complete -c kubectl -f -n '__fish_seen_subcommand_from api-resources' -r -l verbs -d 'Limit to resources that support the specified verbs.' + +# Completions for the "kubectl apply" command +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l all -d 'Select all resources in the namespace of the specified resource types.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -r -l cascade -d 'Must be "background", "orphan", or "foreground". Selects the deletion cascading strategy for the dependents (e.g. Pods created by a ReplicationController). Defaults to background.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from apply' -r -s f -l filename -d 'that contains the configuration to apply' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l force -d 'If true, immediately remove resources from API and bypass graceful deletion. Note that immediate deletion of some resources may result in inconsistency or data loss and requires confirmation.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l force-conflicts -d 'If true, server-side apply will force the changes against conflicts.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -r -l grace-period -d 'Period of time in seconds given to the resource to terminate gracefully. Ignored if negative. Set to 1 for immediate shutdown. Can only be set to 0 when --force is true (force deletion).' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -r -s k -l kustomize -d 'Process a kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l openapi-patch -d 'If true, use openapi to calculate diff when the openapi presents and the resource can be found in the openapi spec. Otherwise, fall back to use baked-in types.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l overwrite -d 'Automatically resolve conflicts between the modified and live configuration by using values from the modified configuration' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l prune -d 'Automatically delete resource objects, including the uninitialized ones, that do not appear in the configs and are created by either apply or create --save-config. Should be used with either -l or --all.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -r -l prune-whitelist -d 'Overwrite the default whitelist with for --prune' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l record -d 'Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l server-side -d 'If true, apply runs in the server instead of the client.' +complete -c kubectl -n '__fish_seen_subcommand_from apply' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -r -l timeout -d 'The length of time to wait before giving up on a delete, zero means determine a timeout from the size of the object' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l validate -d 'If true, use a schema to validate the input before sending it' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply' -l wait -d 'If true, wait for resources to be gone before returning. This waits for finalizers.' +function __fish_kubectl_get_apply_commands + echo edit-last-applied\t'Edit latest last-applied-configuration annotations of a resource/object' + echo set-last-applied\t'Set the last-applied-configuration annotation on a live object to match the contents of a file.' + echo view-last-applied\t'View latest last-applied-configuration annotations of a resource/object' +end + +function __fish_kubectl_get_apply_commands_without_descriptions + __fish_kubectl_get_apply_commands | string replace -r '\t.*$' '' +end + +complete -c kubectl -f -n "__fish_kubectl_using_command apply; and not __fish_seen_subcommand_from (__fish_kubectl_get_apply_commands_without_descriptions)" -a '(__fish_kubectl_get_apply_commands)' + +# Completions for the "kubectl apply edit-last-applied" command +complete -c kubectl -f -n '__fish_seen_subcommand_from apply edit-last-applied' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply edit-last-applied' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from apply edit-last-applied' -r -s f -l filename -d 'Filename, directory, or URL to files to use to edit the resource' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply edit-last-applied' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply edit-last-applied' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply edit-last-applied' -l record -d 'Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply edit-last-applied' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -n '__fish_seen_subcommand_from apply edit-last-applied' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply edit-last-applied' -l windows-line-endings -d 'Defaults to the line ending native to your platform.' + +# Completions for the "kubectl apply set-last-applied" command +complete -c kubectl -f -n '__fish_seen_subcommand_from apply set-last-applied' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply set-last-applied' -l create-annotation -d 'Will create \'last-applied-configuration\' annotations if current objects doesn\'t have one' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply set-last-applied' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -n '__fish_seen_subcommand_from apply set-last-applied' -r -s f -l filename -d 'Filename, directory, or URL to files that contains the last-applied-configuration annotations' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply set-last-applied' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -n '__fish_seen_subcommand_from apply set-last-applied' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl apply view-last-applied" command +complete -c kubectl -f -n '__fish_seen_subcommand_from apply view-last-applied' -l all -d 'Select all resources in the namespace of the specified resource types' +complete -c kubectl -n '__fish_seen_subcommand_from apply view-last-applied' -r -s f -l filename -d 'Filename, directory, or URL to files that contains the last-applied-configuration annotations' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply view-last-applied' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply view-last-applied' -r -s o -l output -d 'Output format. Must be one of yaml|json' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply view-last-applied' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from apply view-last-applied' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' + +# Completions for the "kubectl attach" command +complete -c kubectl -f -n '__fish_seen_subcommand_from attach' -r -s c -l container -d 'Container name. If omitted, the first container in the pod will be chosen' +complete -c kubectl -f -n '__fish_seen_subcommand_from attach' -r -l pod-running-timeout -d 'The length of time (like 5s, 2m, or 3h, higher than zero) to wait until at least one pod is running' +complete -c kubectl -f -n '__fish_seen_subcommand_from attach' -s i -l stdin -d 'Pass stdin to the container' +complete -c kubectl -f -n '__fish_seen_subcommand_from attach' -s t -l tty -d 'Stdin is a TTY' + +# Completions for the "kubectl auth" command +function __fish_kubectl_get_auth_commands + echo can-i\t'Check whether an action is allowed' + echo reconcile\t'Reconciles rules for RBAC Role, RoleBinding, ClusterRole, and ClusterRole binding objects' +end + +function __fish_kubectl_get_auth_commands_without_descriptions + __fish_kubectl_get_auth_commands | string replace -r '\t.*$' '' +end + +complete -c kubectl -f -n "__fish_kubectl_using_command auth; and not __fish_seen_subcommand_from (__fish_kubectl_get_auth_commands_without_descriptions)" -a '(__fish_kubectl_get_auth_commands)' + +# Completions for the "kubectl auth can-i" command +complete -c kubectl -f -n '__fish_seen_subcommand_from auth can-i' -s A -l all-namespaces -d 'If true, check the specified action in all namespaces.' +complete -c kubectl -f -n '__fish_seen_subcommand_from auth can-i' -l list -d 'If true, prints all allowed actions.' +complete -c kubectl -f -n '__fish_seen_subcommand_from auth can-i' -l no-headers -d 'If true, prints allowed actions without headers' +complete -c kubectl -f -n '__fish_seen_subcommand_from auth can-i' -s q -l quiet -d 'If true, suppress output and just return the exit code.' +complete -c kubectl -f -n '__fish_seen_subcommand_from auth can-i' -r -l subresource -d 'SubResource such as pod/log or deployment/scale' + +# Completions for the "kubectl auth reconcile" command +complete -c kubectl -f -n '__fish_seen_subcommand_from auth reconcile' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from auth reconcile' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -n '__fish_seen_subcommand_from auth reconcile' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to reconcile.' +complete -c kubectl -f -n '__fish_seen_subcommand_from auth reconcile' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from auth reconcile' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from auth reconcile' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from auth reconcile' -l remove-extra-permissions -d 'If true, removes extra permissions added to roles' +complete -c kubectl -f -n '__fish_seen_subcommand_from auth reconcile' -l remove-extra-subjects -d 'If true, removes extra subjects added to rolebindings' +complete -c kubectl -n '__fish_seen_subcommand_from auth reconcile' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl autoscale" command +complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -r -l cpu-percent -d 'The target average CPU utilization (represented as a percent of requested CPU) over all the pods. If it\'s not specified or negative, a default autoscaling policy will be used.' +complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from autoscale' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to autoscale.' +complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -r -l max -d 'The upper limit for the number of pods that can be set by the autoscaler. Required.' +complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -r -l min -d 'The lower limit for the number of pods that can be set by the autoscaler. If it\'s not specified or negative, the server will apply a default value.' +complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -r -l name -d 'The name for the newly created object. If not specified, the name of the input resource will be used.' +complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -l record -d 'Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.' +complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from autoscale' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -n '__fish_seen_subcommand_from autoscale' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl certificate" command +function __fish_kubectl_get_certificate_commands + echo approve\t'Approve a certificate signing request' + echo deny\t'Deny a certificate signing request' +end + +function __fish_kubectl_get_certificate_commands_without_descriptions + __fish_kubectl_get_certificate_commands | string replace -r '\t.*$' '' +end + +complete -c kubectl -f -n "__fish_kubectl_using_command certificate; and not __fish_seen_subcommand_from (__fish_kubectl_get_certificate_commands_without_descriptions)" -a '(__fish_kubectl_get_certificate_commands)' + +# Completions for the "kubectl certificate approve" command +complete -c kubectl -f -n '__fish_seen_subcommand_from certificate approve' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -n '__fish_seen_subcommand_from certificate approve' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to update' +complete -c kubectl -f -n '__fish_seen_subcommand_from certificate approve' -l force -d 'Update the CSR even if it is already approved.' +complete -c kubectl -f -n '__fish_seen_subcommand_from certificate approve' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from certificate approve' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from certificate approve' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -n '__fish_seen_subcommand_from certificate approve' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl certificate deny" command +complete -c kubectl -f -n '__fish_seen_subcommand_from certificate deny' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -n '__fish_seen_subcommand_from certificate deny' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to update' +complete -c kubectl -f -n '__fish_seen_subcommand_from certificate deny' -l force -d 'Update the CSR even if it is already denied.' +complete -c kubectl -f -n '__fish_seen_subcommand_from certificate deny' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from certificate deny' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from certificate deny' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -n '__fish_seen_subcommand_from certificate deny' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl cluster-info" command +function __fish_kubectl_get_cluster_info_commands + echo dump\t'Dump lots of relevant info for debugging and diagnosis' +end + +function __fish_kubectl_get_cluster_info_commands_without_descriptions + __fish_kubectl_get_cluster_info_commands | string replace -r '\t.*$' '' +end + +complete -c kubectl -f -n "__fish_kubectl_using_command cluster-info; and not __fish_seen_subcommand_from (__fish_kubectl_get_cluster_info_commands_without_descriptions)" -a '(__fish_kubectl_get_cluster_info_commands)' + +# Completions for the "kubectl cluster-info dump" command +complete -c kubectl -f -n '__fish_seen_subcommand_from cluster-info dump' -s A -l all-namespaces -d 'If true, dump all namespaces. If true, --namespaces is ignored.' +complete -c kubectl -f -n '__fish_seen_subcommand_from cluster-info dump' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from cluster-info dump' -r -l namespaces -d 'A comma separated list of namespaces to dump.' +complete -c kubectl -f -n '__fish_seen_subcommand_from cluster-info dump' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from cluster-info dump' -r -l output-directory -d 'Where to output the files. If empty or \'-\' uses stdout, otherwise creates a directory hierarchy in that directory' +complete -c kubectl -f -n '__fish_seen_subcommand_from cluster-info dump' -r -l pod-running-timeout -d 'The length of time (like 5s, 2m, or 3h, higher than zero) to wait until at least one pod is running' +complete -c kubectl -n '__fish_seen_subcommand_from cluster-info dump' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl config" command +function __fish_kubectl_get_config_commands + echo current-context\t'Displays the current-context' + echo delete-cluster\t'Delete the specified cluster from the kubeconfig' + echo delete-context\t'Delete the specified context from the kubeconfig' + echo delete-user\t'Delete the specified user from the kubeconfig' + echo get-clusters\t'Display clusters defined in the kubeconfig' + echo get-contexts\t'Describe one or many contexts' + echo get-users\t'Display users defined in the kubeconfig' + echo rename-context\t'Renames a context from the kubeconfig file.' + echo set\t'Sets an individual value in a kubeconfig file' + echo set-cluster\t'Sets a cluster entry in kubeconfig' + echo set-context\t'Sets a context entry in kubeconfig' + echo set-credentials\t'Sets a user entry in kubeconfig' + echo unset\t'Unsets an individual value in a kubeconfig file' + echo use-context\t'Sets the current-context in a kubeconfig file' + echo use\t'Sets the current-context in a kubeconfig file' + echo view\t'Display merged kubeconfig settings or a specified kubeconfig file' +end + +function __fish_kubectl_get_config_commands_without_descriptions + __fish_kubectl_get_config_commands | string replace -r '\t.*$' '' +end + +complete -c kubectl -f -n "__fish_kubectl_using_command config; and not __fish_seen_subcommand_from (__fish_kubectl_get_config_commands_without_descriptions)" -a '(__fish_kubectl_get_config_commands)' + +# Completions for the "kubectl config get-contexts" command +complete -c kubectl -f -n '__fish_seen_subcommand_from config get-contexts' -l no-headers -d 'When using the default or custom-column output format, don\'t print headers (default print headers).' +complete -c kubectl -f -n '__fish_seen_subcommand_from config get-contexts' -r -s o -l output -d 'Output format. One of: name' + +# Completions for the "kubectl config set" command +complete -c kubectl -f -n '__fish_seen_subcommand_from config set' -r -l set-raw-bytes -d 'When writing a []byte PROPERTY_VALUE, write the given string directly without base64 decoding.' + +# Completions for the "kubectl config set-cluster" command +complete -c kubectl -f -n '__fish_seen_subcommand_from config set-cluster' -r -l embed-certs -d 'embed-certs for the cluster entry in kubeconfig' + +# Completions for the "kubectl config set-context" command +complete -c kubectl -f -n '__fish_seen_subcommand_from config set-context' -l current -d 'Modify the current context' + +# Completions for the "kubectl config set-credentials" command +complete -c kubectl -f -n '__fish_seen_subcommand_from config set-credentials' -r -l auth-provider -d 'Auth provider for the user entry in kubeconfig' +complete -c kubectl -f -n '__fish_seen_subcommand_from config set-credentials' -r -l auth-provider-arg -d '\'key=value\' arguments for the auth provider' +complete -c kubectl -f -n '__fish_seen_subcommand_from config set-credentials' -r -l embed-certs -d 'Embed client cert/key for the user entry in kubeconfig' +complete -c kubectl -f -n '__fish_seen_subcommand_from config set-credentials' -r -l exec-api-version -d 'API version of the exec credential plugin for the user entry in kubeconfig' +complete -c kubectl -f -n '__fish_seen_subcommand_from config set-credentials' -r -l exec-arg -d 'New arguments for the exec credential plugin command for the user entry in kubeconfig' +complete -c kubectl -f -n '__fish_seen_subcommand_from config set-credentials' -r -l exec-command -d 'Command for the exec credential plugin for the user entry in kubeconfig' +complete -c kubectl -f -n '__fish_seen_subcommand_from config set-credentials' -r -l exec-env -d '\'key=value\' environment values for the exec credential plugin' + +# Completions for the "kubectl config view" command +complete -c kubectl -f -n '__fish_seen_subcommand_from config view' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from config view' -l flatten -d 'Flatten the resulting kubeconfig file into self-contained output (useful for creating portable kubeconfig files)' +complete -c kubectl -f -n '__fish_seen_subcommand_from config view' -r -l merge -d 'Merge the full hierarchy of kubeconfig files' +complete -c kubectl -f -n '__fish_seen_subcommand_from config view' -l minify -d 'Remove all information not used by current-context from the output' +complete -c kubectl -f -n '__fish_seen_subcommand_from config view' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from config view' -l raw -d 'Display raw byte data' +complete -c kubectl -n '__fish_seen_subcommand_from config view' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl cordon" command +complete -c kubectl -f -n '__fish_seen_subcommand_from cordon' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from cordon' -r -s l -l selector -d 'Selector (label query) to filter on' + +# Completions for the "kubectl cp" command +complete -c kubectl -f -n '__fish_seen_subcommand_from cp' -r -s c -l container -d 'Container name. If omitted, the first container in the pod will be chosen' +complete -c kubectl -f -n '__fish_seen_subcommand_from cp' -l no-preserve -d 'The copied file/directory\'s ownership and permissions will not be preserved in the container' + +# Completions for the "kubectl create" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create' -l edit -d 'Edit the API resource before creating' +complete -c kubectl -f -n '__fish_seen_subcommand_from create' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from create' -r -s f -l filename -d 'Filename, directory, or URL to files to use to create the resource' +complete -c kubectl -f -n '__fish_seen_subcommand_from create' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create' -r -l raw -d 'Raw URI to POST to the server. Uses the transport specified by the kubeconfig file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create' -l record -d 'Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' +complete -c kubectl -n '__fish_seen_subcommand_from create' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create' -l validate -d 'If true, use a schema to validate the input before sending it' +complete -c kubectl -f -n '__fish_seen_subcommand_from create' -l windows-line-endings -d 'Only relevant if --edit=true. Defaults to the line ending native to your platform.' +function __fish_kubectl_get_create_commands + echo clusterrole\t'Create a ClusterRole.' + echo clusterrolebinding\t'Create a ClusterRoleBinding for a particular ClusterRole' + echo configmap\t'Create a configmap from a local file, directory or literal value' + echo cm\t'Create a configmap from a local file, directory or literal value' + echo cronjob\t'Create a cronjob with the specified name.' + echo cj\t'Create a cronjob with the specified name.' + echo deployment\t'Create a deployment with the specified name.' + echo deploy\t'Create a deployment with the specified name.' + echo ingress\t'Create an ingress with the specified name.' + echo ing\t'Create an ingress with the specified name.' + echo job\t'Create a job with the specified name.' + echo namespace\t'Create a namespace with the specified name' + echo ns\t'Create a namespace with the specified name' + echo poddisruptionbudget\t'Create a pod disruption budget with the specified name.' + echo pdb\t'Create a pod disruption budget with the specified name.' + echo priorityclass\t'Create a priorityclass with the specified name.' + echo pc\t'Create a priorityclass with the specified name.' + echo quota\t'Create a quota with the specified name.' + echo resourcequota\t'Create a quota with the specified name.' + echo role\t'Create a role with single rule.' + echo rolebinding\t'Create a RoleBinding for a particular Role or ClusterRole' + echo secret\t'Create a secret using specified subcommand' + echo service\t'Create a service using specified subcommand.' + echo svc\t'Create a service using specified subcommand.' + echo serviceaccount\t'Create a service account with the specified name' + echo sa\t'Create a service account with the specified name' +end + +function __fish_kubectl_get_create_commands_without_descriptions + __fish_kubectl_get_create_commands | string replace -r '\t.*$' '' +end + +complete -c kubectl -f -n "__fish_kubectl_using_command create; and not __fish_seen_subcommand_from (__fish_kubectl_get_create_commands_without_descriptions)" -a '(__fish_kubectl_get_create_commands)' + +# Completions for the "kubectl create clusterrole" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrole' -r -l aggregation-rule -d 'An aggregation label selector for combining ClusterRoles.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrole' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrole' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrole' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrole' -r -l non-resource-url -d 'A partial url that user should have access to.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrole' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrole' -r -l resource -d 'Resource that the rule applies to' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrole' -r -l resource-name -d 'Resource in the white list that the rule applies to, repeat this flag for multiple items' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrole' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -n '__fish_seen_subcommand_from create clusterrole' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrole' -l validate -d 'If true, use a schema to validate the input before sending it' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrole' -r -l verb -d 'Verb that applies to the resources contained in the rule' + +# Completions for the "kubectl create clusterrolebinding" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrolebinding' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrolebinding' -r -l clusterrole -d 'ClusterRole this ClusterRoleBinding should reference' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrolebinding' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrolebinding' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrolebinding' -r -l group -d 'Groups to bind to the clusterrole' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrolebinding' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrolebinding' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrolebinding' -r -l serviceaccount -d 'Service accounts to bind to the clusterrole, in the format :' +complete -c kubectl -n '__fish_seen_subcommand_from create clusterrolebinding' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create clusterrolebinding' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl create configmap" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create configmap' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cm' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create configmap' -l append-hash -d 'Append a hash of the configmap to its name.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cm' -l append-hash -d 'Append a hash of the configmap to its name.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create configmap' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cm' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create configmap' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cm' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create configmap' -r -l from-env-file -d 'Specify the path to a file to read lines of key=val pairs to create a configmap (i.e. a Docker .env file).' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cm' -r -l from-env-file -d 'Specify the path to a file to read lines of key=val pairs to create a configmap (i.e. a Docker .env file).' +complete -c kubectl -f -n '__fish_seen_subcommand_from create configmap' -r -l from-file -d 'Key file can be specified using its file path, in which case file basename will be used as configmap key, or optionally with a key and file path, in which case the given key will be used. Specifying a directory will iterate each named file in the directory whose basename is a valid configmap key.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cm' -r -l from-file -d 'Key file can be specified using its file path, in which case file basename will be used as configmap key, or optionally with a key and file path, in which case the given key will be used. Specifying a directory will iterate each named file in the directory whose basename is a valid configmap key.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create configmap' -r -l from-literal -d 'Specify a key and literal value to insert in configmap (i.e. mykey=somevalue)' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cm' -r -l from-literal -d 'Specify a key and literal value to insert in configmap (i.e. mykey=somevalue)' +complete -c kubectl -f -n '__fish_seen_subcommand_from create configmap' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cm' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create configmap' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cm' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -n '__fish_seen_subcommand_from create configmap' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -n '__fish_seen_subcommand_from create cm' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create configmap' -l validate -d 'If true, use a schema to validate the input before sending it' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cm' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl create cronjob" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create cronjob' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cj' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cronjob' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cj' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cronjob' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cj' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cronjob' -r -l image -d 'Image name to run.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cj' -r -l image -d 'Image name to run.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cronjob' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cj' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cronjob' -r -l restart -d 'job\'s restart policy. supported values: OnFailure, Never' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cj' -r -l restart -d 'job\'s restart policy. supported values: OnFailure, Never' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cronjob' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cj' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cronjob' -r -l schedule -d 'A schedule in the Cron format the job should be run with.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cj' -r -l schedule -d 'A schedule in the Cron format the job should be run with.' +complete -c kubectl -n '__fish_seen_subcommand_from create cronjob' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -n '__fish_seen_subcommand_from create cj' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cronjob' -l validate -d 'If true, use a schema to validate the input before sending it' +complete -c kubectl -f -n '__fish_seen_subcommand_from create cj' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl create deployment" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create deployment' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create deploy' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create deployment' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create deploy' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create deployment' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create deploy' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create deployment' -r -l image -d 'Image names to run.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create deploy' -r -l image -d 'Image names to run.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create deployment' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create deploy' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create deployment' -r -l port -d 'The port that this container exposes.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create deploy' -r -l port -d 'The port that this container exposes.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create deployment' -r -s r -l replicas -d 'Number of replicas to create. Default is 1.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create deploy' -r -s r -l replicas -d 'Number of replicas to create. Default is 1.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create deployment' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create deploy' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -n '__fish_seen_subcommand_from create deployment' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -n '__fish_seen_subcommand_from create deploy' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create deployment' -l validate -d 'If true, use a schema to validate the input before sending it' +complete -c kubectl -f -n '__fish_seen_subcommand_from create deploy' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl create ingress" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create ingress' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ing' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ingress' -r -l annotation -d 'Annotation to insert in the ingress object, in the format annotation=value' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ing' -r -l annotation -d 'Annotation to insert in the ingress object, in the format annotation=value' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ingress' -r -l class -d 'Ingress Class to be used' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ing' -r -l class -d 'Ingress Class to be used' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ingress' -r -l default-backend -d 'Default service for backend, in format of svcname:port' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ing' -r -l default-backend -d 'Default service for backend, in format of svcname:port' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ingress' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ing' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ingress' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ing' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ingress' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ing' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ingress' -r -l rule -d 'Rule in format host/path=service:port[,tls=secretname]. Paths containing the leading character \'*\' are considered pathType=Prefix. tls argument is optional.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ing' -r -l rule -d 'Rule in format host/path=service:port[,tls=secretname]. Paths containing the leading character \'*\' are considered pathType=Prefix. tls argument is optional.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ingress' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ing' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -n '__fish_seen_subcommand_from create ingress' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -n '__fish_seen_subcommand_from create ing' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ingress' -l validate -d 'If true, use a schema to validate the input before sending it' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ing' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl create job" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create job' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create job' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create job' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create job' -r -l from -d 'The name of the resource to create a Job from (only cronjob is supported).' +complete -c kubectl -f -n '__fish_seen_subcommand_from create job' -r -l image -d 'Image name to run.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create job' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create job' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -n '__fish_seen_subcommand_from create job' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create job' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl create namespace" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create namespace' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ns' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create namespace' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ns' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create namespace' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ns' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create namespace' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ns' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create namespace' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ns' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -n '__fish_seen_subcommand_from create namespace' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -n '__fish_seen_subcommand_from create ns' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create namespace' -l validate -d 'If true, use a schema to validate the input before sending it' +complete -c kubectl -f -n '__fish_seen_subcommand_from create ns' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl create poddisruptionbudget" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create poddisruptionbudget' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pdb' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create poddisruptionbudget' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pdb' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create poddisruptionbudget' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pdb' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create poddisruptionbudget' -r -l max-unavailable -d 'The maximum number or percentage of unavailable pods this budget requires.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pdb' -r -l max-unavailable -d 'The maximum number or percentage of unavailable pods this budget requires.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create poddisruptionbudget' -r -l min-available -d 'The minimum number or percentage of available pods this budget requires.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pdb' -r -l min-available -d 'The minimum number or percentage of available pods this budget requires.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create poddisruptionbudget' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pdb' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create poddisruptionbudget' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pdb' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create poddisruptionbudget' -r -l selector -d 'A label selector to use for this budget. Only equality-based selector requirements are supported.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pdb' -r -l selector -d 'A label selector to use for this budget. Only equality-based selector requirements are supported.' +complete -c kubectl -n '__fish_seen_subcommand_from create poddisruptionbudget' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -n '__fish_seen_subcommand_from create pdb' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create poddisruptionbudget' -l validate -d 'If true, use a schema to validate the input before sending it' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pdb' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl create priorityclass" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create priorityclass' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pc' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create priorityclass' -r -l description -d 'description is an arbitrary string that usually provides guidelines on when this priority class should be used.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pc' -r -l description -d 'description is an arbitrary string that usually provides guidelines on when this priority class should be used.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create priorityclass' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pc' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create priorityclass' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pc' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create priorityclass' -l global-default -d 'global-default specifies whether this PriorityClass should be considered as the default priority.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pc' -l global-default -d 'global-default specifies whether this PriorityClass should be considered as the default priority.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create priorityclass' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pc' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create priorityclass' -r -l preemption-policy -d 'preemption-policy is the policy for preempting pods with lower priority.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pc' -r -l preemption-policy -d 'preemption-policy is the policy for preempting pods with lower priority.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create priorityclass' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pc' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -n '__fish_seen_subcommand_from create priorityclass' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -n '__fish_seen_subcommand_from create pc' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create priorityclass' -l validate -d 'If true, use a schema to validate the input before sending it' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pc' -l validate -d 'If true, use a schema to validate the input before sending it' +complete -c kubectl -f -n '__fish_seen_subcommand_from create priorityclass' -r -l value -d 'the value of this priority class.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create pc' -r -l value -d 'the value of this priority class.' + +# Completions for the "kubectl create quota" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create quota' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create resourcequota' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create quota' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create resourcequota' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create quota' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create resourcequota' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create quota' -r -l hard -d 'A comma-delimited set of resource=quantity pairs that define a hard limit.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create resourcequota' -r -l hard -d 'A comma-delimited set of resource=quantity pairs that define a hard limit.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create quota' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create resourcequota' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create quota' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create resourcequota' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create quota' -r -l scopes -d 'A comma-delimited set of quota scopes that must all match each object tracked by the quota.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create resourcequota' -r -l scopes -d 'A comma-delimited set of quota scopes that must all match each object tracked by the quota.' +complete -c kubectl -n '__fish_seen_subcommand_from create quota' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -n '__fish_seen_subcommand_from create resourcequota' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create quota' -l validate -d 'If true, use a schema to validate the input before sending it' +complete -c kubectl -f -n '__fish_seen_subcommand_from create resourcequota' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl create role" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create role' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create role' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create role' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create role' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create role' -r -l resource -d 'Resource that the rule applies to' +complete -c kubectl -f -n '__fish_seen_subcommand_from create role' -r -l resource-name -d 'Resource in the white list that the rule applies to, repeat this flag for multiple items' +complete -c kubectl -f -n '__fish_seen_subcommand_from create role' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -n '__fish_seen_subcommand_from create role' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create role' -l validate -d 'If true, use a schema to validate the input before sending it' +complete -c kubectl -f -n '__fish_seen_subcommand_from create role' -r -l verb -d 'Verb that applies to the resources contained in the rule' + +# Completions for the "kubectl create rolebinding" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create rolebinding' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create rolebinding' -r -l clusterrole -d 'ClusterRole this RoleBinding should reference' +complete -c kubectl -f -n '__fish_seen_subcommand_from create rolebinding' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create rolebinding' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create rolebinding' -r -l group -d 'Groups to bind to the role' +complete -c kubectl -f -n '__fish_seen_subcommand_from create rolebinding' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create rolebinding' -r -l role -d 'Role this RoleBinding should reference' +complete -c kubectl -f -n '__fish_seen_subcommand_from create rolebinding' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create rolebinding' -r -l serviceaccount -d 'Service accounts to bind to the role, in the format :' +complete -c kubectl -n '__fish_seen_subcommand_from create rolebinding' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create rolebinding' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl create secret" command +function __fish_kubectl_get_create_secret_commands + echo docker-registry\t'Create a secret for use with a Docker registry' + echo generic\t'Create a secret from a local file, directory or literal value' + echo tls\t'Create a TLS secret' +end + +function __fish_kubectl_get_create_secret_commands_without_descriptions + __fish_kubectl_get_create_secret_commands | string replace -r '\t.*$' '' +end + +complete -c kubectl -f -n "__fish_kubectl_using_command secret; and not __fish_seen_subcommand_from (__fish_kubectl_get_create_secret_commands_without_descriptions)" -a '(__fish_kubectl_get_create_secret_commands)' + +# Completions for the "kubectl create secret docker-registry" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret docker-registry' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret docker-registry' -l append-hash -d 'Append a hash of the secret to its name.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret docker-registry' -r -l docker-email -d 'Email for Docker registry' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret docker-registry' -r -l docker-password -d 'Password for Docker registry authentication' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret docker-registry' -r -l docker-server -d 'Server location for Docker registry' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret docker-registry' -r -l docker-username -d 'Username for Docker registry authentication' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret docker-registry' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret docker-registry' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret docker-registry' -r -l from-file -d 'Key files can be specified using their file path, in which case a default name will be given to them, or optionally with a name and file path, in which case the given name will be used. Specifying a directory will iterate each named file in the directory that is a valid secret key.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret docker-registry' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret docker-registry' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -n '__fish_seen_subcommand_from create secret docker-registry' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret docker-registry' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl create secret generic" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret generic' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret generic' -l append-hash -d 'Append a hash of the secret to its name.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret generic' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret generic' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret generic' -r -l from-env-file -d 'Specify the path to a file to read lines of key=val pairs to create a secret (i.e. a Docker .env file).' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret generic' -r -l from-file -d 'Key files can be specified using their file path, in which case a default name will be given to them, or optionally with a name and file path, in which case the given name will be used. Specifying a directory will iterate each named file in the directory that is a valid secret key.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret generic' -r -l from-literal -d 'Specify a key and literal value to insert in secret (i.e. mykey=somevalue)' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret generic' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret generic' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -n '__fish_seen_subcommand_from create secret generic' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret generic' -r -l type -d 'The type of secret to create' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret generic' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl create secret tls" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret tls' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret tls' -l append-hash -d 'Append a hash of the secret to its name.' +complete -c kubectl -n '__fish_seen_subcommand_from create secret tls' -r -l cert -d 'Path to PEM encoded public key certificate.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret tls' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret tls' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from create secret tls' -r -l key -d 'Path to private key associated with given certificate.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret tls' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret tls' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -n '__fish_seen_subcommand_from create secret tls' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create secret tls' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl create service" command +function __fish_kubectl_get_create_service_commands + echo clusterip\t'Create a ClusterIP service.' + echo externalname\t'Create an ExternalName service.' + echo loadbalancer\t'Create a LoadBalancer service.' + echo nodeport\t'Create a NodePort service.' +end + +function __fish_kubectl_get_create_service_commands_without_descriptions + __fish_kubectl_get_create_service_commands | string replace -r '\t.*$' '' +end + +complete -c kubectl -f -n "__fish_kubectl_using_command service; and not __fish_seen_subcommand_from (__fish_kubectl_get_create_service_commands_without_descriptions)" -a '(__fish_kubectl_get_create_service_commands)' +complete -c kubectl -f -n "__fish_kubectl_using_command svc; and not __fish_seen_subcommand_from (__fish_kubectl_get_create_service_commands_without_descriptions)" -a '(__fish_kubectl_get_create_service_commands)' + +# Completions for the "kubectl create service clusterip" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create service clusterip' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service clusterip' -r -l clusterip -d 'Assign your own ClusterIP or set to \'None\' for a \'headless\' service (no loadbalancing).' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service clusterip' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service clusterip' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service clusterip' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service clusterip' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service clusterip' -r -l tcp -d 'Port pairs can be specified as \':\'.' +complete -c kubectl -n '__fish_seen_subcommand_from create service clusterip' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service clusterip' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl create service externalname" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create service externalname' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service externalname' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service externalname' -r -l external-name -d 'External name of service' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service externalname' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service externalname' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service externalname' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service externalname' -r -l tcp -d 'Port pairs can be specified as \':\'.' +complete -c kubectl -n '__fish_seen_subcommand_from create service externalname' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service externalname' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl create service loadbalancer" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create service loadbalancer' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service loadbalancer' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service loadbalancer' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service loadbalancer' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service loadbalancer' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service loadbalancer' -r -l tcp -d 'Port pairs can be specified as \':\'.' +complete -c kubectl -n '__fish_seen_subcommand_from create service loadbalancer' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service loadbalancer' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl create service nodeport" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create service nodeport' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service nodeport' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service nodeport' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service nodeport' -r -l node-port -d 'Port used to expose the service on each node in a cluster.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service nodeport' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service nodeport' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service nodeport' -r -l tcp -d 'Port pairs can be specified as \':\'.' +complete -c kubectl -n '__fish_seen_subcommand_from create service nodeport' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create service nodeport' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl create serviceaccount" command +complete -c kubectl -f -n '__fish_seen_subcommand_from create serviceaccount' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create sa' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create serviceaccount' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create sa' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create serviceaccount' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create sa' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create serviceaccount' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create sa' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create serviceaccount' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from create sa' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -n '__fish_seen_subcommand_from create serviceaccount' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -n '__fish_seen_subcommand_from create sa' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from create serviceaccount' -l validate -d 'If true, use a schema to validate the input before sending it' +complete -c kubectl -f -n '__fish_seen_subcommand_from create sa' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl debug" command +complete -c kubectl -f -n '__fish_seen_subcommand_from debug' -l arguments-only -d 'If specified, everything after -- will be passed to the new container as Args instead of Command.' +complete -c kubectl -f -n '__fish_seen_subcommand_from debug' -l attach -d 'If true, wait for the container to start running, and then attach as if \'kubectl attach ...\' were called. Default false, unless \'-i/--stdin\' is set, in which case the default is true.' +complete -c kubectl -f -n '__fish_seen_subcommand_from debug' -r -s c -l container -d 'Container name to use for debug container.' +complete -c kubectl -f -n '__fish_seen_subcommand_from debug' -r -l copy-to -d 'Create a copy of the target Pod with this name.' +complete -c kubectl -f -n '__fish_seen_subcommand_from debug' -r -l env -d 'Environment variables to set in the container.' +complete -c kubectl -f -n '__fish_seen_subcommand_from debug' -r -l image -d 'Container image to use for debug container.' +complete -c kubectl -f -n '__fish_seen_subcommand_from debug' -r -l image-pull-policy -d 'The image pull policy for the container. If left empty, this value will not be specified by the client and defaulted by the server.' +complete -c kubectl -f -n '__fish_seen_subcommand_from debug' -l quiet -d 'If true, suppress informational messages.' +complete -c kubectl -f -n '__fish_seen_subcommand_from debug' -l replace -d 'When used with \'--copy-to\', delete the original Pod.' +complete -c kubectl -f -n '__fish_seen_subcommand_from debug' -l same-node -d 'When used with \'--copy-to\', schedule the copy of target Pod on the same node.' +complete -c kubectl -f -n '__fish_seen_subcommand_from debug' -r -l set-image -d 'When used with \'--copy-to\', a list of name=image pairs for changing container images, similar to how \'kubectl set image\' works.' +complete -c kubectl -f -n '__fish_seen_subcommand_from debug' -l share-processes -d 'When used with \'--copy-to\', enable process namespace sharing in the copy.' +complete -c kubectl -f -n '__fish_seen_subcommand_from debug' -s i -l stdin -d 'Keep stdin open on the container(s) in the pod, even if nothing is attached.' +complete -c kubectl -f -n '__fish_seen_subcommand_from debug' -r -l target -d 'When using an ephemeral container, target processes in this container name.' +complete -c kubectl -f -n '__fish_seen_subcommand_from debug' -s t -l tty -d 'Allocate a TTY for the debugging container.' + +# Completions for the "kubectl delete" command +complete -c kubectl -f -n '__fish_seen_subcommand_from delete' -l all -d 'Delete all resources, including uninitialized ones, in the namespace of the specified resource types.' +complete -c kubectl -f -n '__fish_seen_subcommand_from delete' -s A -l all-namespaces -d 'If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.' +complete -c kubectl -f -n '__fish_seen_subcommand_from delete' -r -l cascade -d 'Must be "background", "orphan", or "foreground". Selects the deletion cascading strategy for the dependents (e.g. Pods created by a ReplicationController). Defaults to background.' +complete -c kubectl -f -n '__fish_seen_subcommand_from delete' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from delete' -r -l field-selector -d 'Selector (field query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. --field-selector key1=value1,key2=value2). The server only supports a limited number of field queries per type.' +complete -c kubectl -n '__fish_seen_subcommand_from delete' -r -s f -l filename -d 'containing the resource to delete.' +complete -c kubectl -f -n '__fish_seen_subcommand_from delete' -l force -d 'If true, immediately remove resources from API and bypass graceful deletion. Note that immediate deletion of some resources may result in inconsistency or data loss and requires confirmation.' +complete -c kubectl -f -n '__fish_seen_subcommand_from delete' -r -l grace-period -d 'Period of time in seconds given to the resource to terminate gracefully. Ignored if negative. Set to 1 for immediate shutdown. Can only be set to 0 when --force is true (force deletion).' +complete -c kubectl -f -n '__fish_seen_subcommand_from delete' -l ignore-not-found -d 'Treat "resource not found" as a successful delete. Defaults to "true" when --all is specified.' +complete -c kubectl -f -n '__fish_seen_subcommand_from delete' -r -s k -l kustomize -d 'Process a kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from delete' -l now -d 'If true, resources are signaled for immediate shutdown (same as --grace-period=1).' +complete -c kubectl -f -n '__fish_seen_subcommand_from delete' -r -s o -l output -d 'Output mode. Use "-o name" for shorter output (resource/name).' +complete -c kubectl -f -n '__fish_seen_subcommand_from delete' -r -l raw -d 'Raw URI to DELETE to the server. Uses the transport specified by the kubeconfig file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from delete' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from delete' -r -s l -l selector -d 'Selector (label query) to filter on, not including uninitialized ones.' +complete -c kubectl -f -n '__fish_seen_subcommand_from delete' -r -l timeout -d 'The length of time to wait before giving up on a delete, zero means determine a timeout from the size of the object' +complete -c kubectl -f -n '__fish_seen_subcommand_from delete' -l wait -d 'If true, wait for resources to be gone before returning. This waits for finalizers.' + +# Completions for the "kubectl describe" command +complete -c kubectl -f -n '__fish_seen_subcommand_from describe' -s A -l all-namespaces -d 'If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.' +complete -c kubectl -n '__fish_seen_subcommand_from describe' -r -s f -l filename -d 'Filename, directory, or URL to files containing the resource to describe' +complete -c kubectl -f -n '__fish_seen_subcommand_from describe' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from describe' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from describe' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' +complete -c kubectl -f -n '__fish_seen_subcommand_from describe' -l show-events -d 'If true, display events related to the described object.' + +# Completions for the "kubectl diff" command +complete -c kubectl -f -n '__fish_seen_subcommand_from diff' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from diff' -r -s f -l filename -d 'Filename, directory, or URL to files contains the configuration to diff' +complete -c kubectl -f -n '__fish_seen_subcommand_from diff' -l force-conflicts -d 'If true, server-side apply will force the changes against conflicts.' +complete -c kubectl -f -n '__fish_seen_subcommand_from diff' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from diff' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from diff' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' +complete -c kubectl -f -n '__fish_seen_subcommand_from diff' -l server-side -d 'If true, apply runs in the server instead of the client.' + +# Completions for the "kubectl drain" command +complete -c kubectl -f -n '__fish_seen_subcommand_from drain' -l delete-emptydir-data -d 'Continue even if there are pods using emptyDir (local data that will be deleted when the node is drained).' +complete -c kubectl -f -n '__fish_seen_subcommand_from drain' -l disable-eviction -d 'Force drain to use delete, even if eviction is supported. This will bypass checking PodDisruptionBudgets, use with caution.' +complete -c kubectl -f -n '__fish_seen_subcommand_from drain' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from drain' -l force -d 'Continue even if there are pods not managed by a ReplicationController, ReplicaSet, Job, DaemonSet or StatefulSet.' +complete -c kubectl -f -n '__fish_seen_subcommand_from drain' -r -l grace-period -d 'Period of time in seconds given to each pod to terminate gracefully. If negative, the default value specified in the pod will be used.' +complete -c kubectl -f -n '__fish_seen_subcommand_from drain' -l ignore-daemonsets -d 'Ignore DaemonSet-managed pods.' +complete -c kubectl -f -n '__fish_seen_subcommand_from drain' -r -l pod-selector -d 'Label selector to filter pods on the node' +complete -c kubectl -f -n '__fish_seen_subcommand_from drain' -r -s l -l selector -d 'Selector (label query) to filter on' +complete -c kubectl -f -n '__fish_seen_subcommand_from drain' -r -l skip-wait-for-delete-timeout -d 'If pod DeletionTimestamp older than N seconds, skip waiting for the pod. Seconds must be greater than 0 to skip.' +complete -c kubectl -f -n '__fish_seen_subcommand_from drain' -r -l timeout -d 'The length of time to wait before giving up, zero means infinite' + +# Completions for the "kubectl edit" command +complete -c kubectl -f -n '__fish_seen_subcommand_from edit' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from edit' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from edit' -r -s f -l filename -d 'Filename, directory, or URL to files to use to edit the resource' +complete -c kubectl -f -n '__fish_seen_subcommand_from edit' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from edit' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from edit' -l output-patch -d 'Output the patch if the resource is edited.' +complete -c kubectl -f -n '__fish_seen_subcommand_from edit' -l record -d 'Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.' +complete -c kubectl -f -n '__fish_seen_subcommand_from edit' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from edit' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -n '__fish_seen_subcommand_from edit' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from edit' -l validate -d 'If true, use a schema to validate the input before sending it' +complete -c kubectl -f -n '__fish_seen_subcommand_from edit' -l windows-line-endings -d 'Defaults to the line ending native to your platform.' + +# Completions for the "kubectl exec" command +complete -c kubectl -f -n '__fish_seen_subcommand_from exec' -r -s c -l container -d 'Container name. If omitted, the first container in the pod will be chosen' +complete -c kubectl -n '__fish_seen_subcommand_from exec' -r -s f -l filename -d 'to use to exec into the resource' +complete -c kubectl -f -n '__fish_seen_subcommand_from exec' -r -l pod-running-timeout -d 'The length of time (like 5s, 2m, or 3h, higher than zero) to wait until at least one pod is running' +complete -c kubectl -f -n '__fish_seen_subcommand_from exec' -s i -l stdin -d 'Pass stdin to the container' +complete -c kubectl -f -n '__fish_seen_subcommand_from exec' -s t -l tty -d 'Stdin is a TTY' + +# Completions for the "kubectl explain" command +complete -c kubectl -f -n '__fish_seen_subcommand_from explain' -r -l api-version -d 'Get different explanations for particular API version (API group/version)' +complete -c kubectl -f -n '__fish_seen_subcommand_from explain' -l recursive -d 'Print the fields of fields (Currently only 1 level deep)' + +# Completions for the "kubectl expose" command +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -r -l cluster-ip -d 'ClusterIP to be assigned to the service. Leave empty to auto-allocate, or set to \'None\' to create a headless service.' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -r -l external-ip -d 'Additional external IP address (not managed by Kubernetes) to accept for the service. If this IP is routed to a node, the service can be accessed by this IP in addition to its generated service IP.' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from expose' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to expose a service' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -r -l generator -d 'The name of the API generator to use. There are 2 generators: \'service/v1\' and \'service/v2\'. The only difference between them is that service port in v1 is named \'default\', while it is left unnamed in v2. Default is \'service/v2\'.' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -r -s l -l labels -d 'Labels to apply to the service created by this call.' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -r -l load-balancer-ip -d 'IP to assign to the LoadBalancer. If empty, an ephemeral IP will be created and used (cloud-provider specific).' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -r -l name -d 'The name for the newly created object.' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -r -l overrides -d 'An inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field.' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -r -l port -d 'The port that the service should serve on. Copied from the resource being exposed, if unspecified' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -r -l protocol -d 'The network protocol for the service to be created. Default is \'TCP\'.' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -l record -d 'Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -r -l selector -d 'A label selector to use for this service. Only equality-based selector requirements are supported. If empty (the default) infer the selector from the replication controller or replica set.)' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -r -l session-affinity -d 'If non-empty, set the session affinity for the service to this; legal values: \'None\', \'ClientIP\'' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -r -l target-port -d 'Name or number for the port on the container that the service should direct traffic to. Optional.' +complete -c kubectl -n '__fish_seen_subcommand_from expose' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from expose' -r -l type -d 'Type for this service: ClusterIP, NodePort, LoadBalancer, or ExternalName. Default is \'ClusterIP\'.' + +# Completions for the "kubectl get" command +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -s A -l all-namespaces -d 'If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -r -l chunk-size -d 'Return large lists in chunks rather than all at once. Pass 0 to disable. This flag is beta and may change in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -r -l field-selector -d 'Selector (field query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. --field-selector key1=value1,key2=value2). The server only supports a limited number of field queries per type.' +complete -c kubectl -n '__fish_seen_subcommand_from get' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to get from a server.' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -l ignore-not-found -d 'If the requested object does not exist the command will return exit code 0.' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -r -s L -l label-columns -d 'Accepts a comma separated list of labels that are going to be presented as columns. Names are case-sensitive. You can also use multiple flag options like -L label1 -L label2...' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -l no-headers -d 'When using the default or custom-column output format, don\'t print headers (default print headers).' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -r -s o -l output -d 'Output format. One of: json|yaml|wide|name|custom-columns=...|custom-columns-file=...|go-template=...|go-template-file=...|jsonpath=...|jsonpath-file=... See custom columns [http://kubernetes.io/docs/user-guide/kubectl-overview/#custom-columns], golang template [http://golang.org/pkg/text/template/#pkg-overview] and jsonpath template [http://kubernetes.io/docs/user-guide/jsonpath].' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -l output-watch-events -d 'Output watch event objects when --watch or --watch-only is used. Existing objects are output as initial ADDED events.' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -r -l raw -d 'Raw URI to request from the server. Uses the transport specified by the kubeconfig file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -l server-print -d 'If true, have the server return the appropriate table output. Supports extension APIs and CRDs.' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -l show-kind -d 'If present, list the resource type for the requested object(s).' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -l show-labels -d 'When printing, show all labels as the last column (default hide labels column)' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -r -l sort-by -d 'If non-empty, sort list types using this field specification. The field specification is expressed as a JSONPath expression (e.g. \'{.metadata.name}\'). The field in the API resource specified by this JSONPath expression must be an integer or a string.' +complete -c kubectl -n '__fish_seen_subcommand_from get' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -s w -l watch -d 'After listing/getting the requested object, watch for changes. Uninitialized objects are excluded if no object name is provided.' +complete -c kubectl -f -n '__fish_seen_subcommand_from get' -l watch-only -d 'Watch for changes to the requested object(s), without listing/getting first.' + +# Completions for the "kubectl label" command +complete -c kubectl -f -n '__fish_seen_subcommand_from label' -l all -d 'Select all resources, including uninitialized ones, in the namespace of the specified resource types' +complete -c kubectl -f -n '__fish_seen_subcommand_from label' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from label' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from label' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from label' -r -l field-selector -d 'Selector (field query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. --field-selector key1=value1,key2=value2). The server only supports a limited number of field queries per type.' +complete -c kubectl -n '__fish_seen_subcommand_from label' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to update the labels' +complete -c kubectl -f -n '__fish_seen_subcommand_from label' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from label' -l list -d 'If true, display the labels for a given resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from label' -l local -d 'If true, label will NOT contact api-server but run locally.' +complete -c kubectl -f -n '__fish_seen_subcommand_from label' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from label' -l overwrite -d 'If true, allow labels to be overwritten, otherwise reject label updates that overwrite existing labels.' +complete -c kubectl -f -n '__fish_seen_subcommand_from label' -l record -d 'Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.' +complete -c kubectl -f -n '__fish_seen_subcommand_from label' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from label' -r -l resource-version -d 'If non-empty, the labels update will only succeed if this is the current resource-version for the object. Only valid when specifying a single resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from label' -r -s l -l selector -d 'Selector (label query) to filter on, not including uninitialized ones, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2).' +complete -c kubectl -n '__fish_seen_subcommand_from label' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl logs" command +complete -c kubectl -f -n '__fish_seen_subcommand_from logs' -l all-containers -d 'Get all containers\' logs in the pod(s).' +complete -c kubectl -f -n '__fish_seen_subcommand_from logs' -r -s c -l container -d 'Print the logs of this container' +complete -c kubectl -f -n '__fish_seen_subcommand_from logs' -s f -l follow -d 'Specify if the logs should be streamed.' +complete -c kubectl -f -n '__fish_seen_subcommand_from logs' -l ignore-errors -d 'If watching / following pod logs, allow for any errors that occur to be non-fatal' +complete -c kubectl -f -n '__fish_seen_subcommand_from logs' -l insecure-skip-tls-verify-backend -d 'Skip verifying the identity of the kubelet that logs are requested from. In theory, an attacker could provide invalid log content back. You might want to use this if your kubelet serving certificates have expired.' +complete -c kubectl -f -n '__fish_seen_subcommand_from logs' -r -l limit-bytes -d 'Maximum bytes of logs to return. Defaults to no limit.' +complete -c kubectl -f -n '__fish_seen_subcommand_from logs' -r -l max-log-requests -d 'Specify maximum number of concurrent logs to follow when using by a selector. Defaults to 5.' +complete -c kubectl -f -n '__fish_seen_subcommand_from logs' -r -l pod-running-timeout -d 'The length of time (like 5s, 2m, or 3h, higher than zero) to wait until at least one pod is running' +complete -c kubectl -f -n '__fish_seen_subcommand_from logs' -l prefix -d 'Prefix each log line with the log source (pod name and container name)' +complete -c kubectl -f -n '__fish_seen_subcommand_from logs' -s p -l previous -d 'If true, print the logs for the previous instance of the container in a pod if it exists.' +complete -c kubectl -f -n '__fish_seen_subcommand_from logs' -r -s l -l selector -d 'Selector (label query) to filter on.' +complete -c kubectl -f -n '__fish_seen_subcommand_from logs' -r -l since -d 'Only return logs newer than a relative duration like 5s, 2m, or 3h. Defaults to all logs. Only one of since-time / since may be used.' +complete -c kubectl -f -n '__fish_seen_subcommand_from logs' -r -l since-time -d 'Only return logs after a specific date (RFC3339). Defaults to all logs. Only one of since-time / since may be used.' +complete -c kubectl -f -n '__fish_seen_subcommand_from logs' -r -l tail -d 'Lines of recent log file to display. Defaults to -1 with no selector, showing all log lines otherwise 10, if a selector is provided.' +complete -c kubectl -f -n '__fish_seen_subcommand_from logs' -l timestamps -d 'Include timestamps on each line in the log output' + +# Completions for the "kubectl patch" command +complete -c kubectl -f -n '__fish_seen_subcommand_from patch' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from patch' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from patch' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from patch' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to update' +complete -c kubectl -f -n '__fish_seen_subcommand_from patch' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from patch' -l local -d 'If true, patch will operate on the content of the file, not the server-side resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from patch' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from patch' -r -s p -l patch -d 'The patch to be applied to the resource JSON file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from patch' -r -l patch-file -d 'A file containing a patch to be applied to the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from patch' -l record -d 'Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.' +complete -c kubectl -f -n '__fish_seen_subcommand_from patch' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -n '__fish_seen_subcommand_from patch' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from patch' -r -l type -d 'The type of patch being provided; one of [json merge strategic]' + +# Completions for the "kubectl plugin" command +function __fish_kubectl_get_plugin_commands + echo list\t'list all visible plugin executables on a user\'s PATH' +end + +function __fish_kubectl_get_plugin_commands_without_descriptions + __fish_kubectl_get_plugin_commands | string replace -r '\t.*$' '' +end + +complete -c kubectl -f -n "__fish_kubectl_using_command plugin; and not __fish_seen_subcommand_from (__fish_kubectl_get_plugin_commands_without_descriptions)" -a '(__fish_kubectl_get_plugin_commands)' + +# Completions for the "kubectl plugin list" command +complete -c kubectl -f -n '__fish_seen_subcommand_from plugin list' -l name-only -d 'If true, display only the binary name of each plugin, rather than its full path' + +# Completions for the "kubectl port-forward" command +complete -c kubectl -f -n '__fish_seen_subcommand_from port-forward' -r -l address -d 'Addresses to listen on (comma separated). Only accepts IP addresses or localhost as a value. When localhost is supplied, kubectl will try to bind on both 127.0.0.1 and ::1 and will fail if neither of these addresses are available to bind.' +complete -c kubectl -f -n '__fish_seen_subcommand_from port-forward' -r -l pod-running-timeout -d 'The length of time (like 5s, 2m, or 3h, higher than zero) to wait until at least one pod is running' + +# Completions for the "kubectl proxy" command +complete -c kubectl -f -n '__fish_seen_subcommand_from proxy' -r -l accept-hosts -d 'Regular expression for hosts that the proxy should accept.' +complete -c kubectl -f -n '__fish_seen_subcommand_from proxy' -r -l accept-paths -d 'Regular expression for paths that the proxy should accept.' +complete -c kubectl -f -n '__fish_seen_subcommand_from proxy' -r -l address -d 'The IP address on which to serve on.' +complete -c kubectl -f -n '__fish_seen_subcommand_from proxy' -r -l api-prefix -d 'Prefix to serve the proxied API under.' +complete -c kubectl -f -n '__fish_seen_subcommand_from proxy' -l disable-filter -d 'If true, disable request filtering in the proxy. This is dangerous, and can leave you vulnerable to XSRF attacks, when used with an accessible port.' +complete -c kubectl -f -n '__fish_seen_subcommand_from proxy' -r -l keepalive -d 'keepalive specifies the keep-alive period for an active network connection. Set to 0 to disable keepalive.' +complete -c kubectl -f -n '__fish_seen_subcommand_from proxy' -r -s p -l port -d 'The port on which to run the proxy. Set to 0 to pick a random port.' +complete -c kubectl -f -n '__fish_seen_subcommand_from proxy' -r -l reject-methods -d 'Regular expression for HTTP methods that the proxy should reject (example --reject-methods=\'POST,PUT,PATCH\'). ' +complete -c kubectl -f -n '__fish_seen_subcommand_from proxy' -r -l reject-paths -d 'Regular expression for paths that the proxy should reject. Paths specified here will be rejected even accepted by --accept-paths.' +complete -c kubectl -f -n '__fish_seen_subcommand_from proxy' -r -s u -l unix-socket -d 'Unix socket on which to run the proxy.' +complete -c kubectl -f -n '__fish_seen_subcommand_from proxy' -r -s w -l www -d 'Also serve static files from the given directory under the specified prefix.' +complete -c kubectl -f -n '__fish_seen_subcommand_from proxy' -r -s P -l www-prefix -d 'Prefix to serve static files under, if static file directory is specified.' + +# Completions for the "kubectl replace" command +complete -c kubectl -f -n '__fish_seen_subcommand_from replace' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from replace' -r -l cascade -d 'Must be "background", "orphan", or "foreground". Selects the deletion cascading strategy for the dependents (e.g. Pods created by a ReplicationController). Defaults to background.' +complete -c kubectl -f -n '__fish_seen_subcommand_from replace' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from replace' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from replace' -r -s f -l filename -d 'to use to replace the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from replace' -l force -d 'If true, immediately remove resources from API and bypass graceful deletion. Note that immediate deletion of some resources may result in inconsistency or data loss and requires confirmation.' +complete -c kubectl -f -n '__fish_seen_subcommand_from replace' -r -l grace-period -d 'Period of time in seconds given to the resource to terminate gracefully. Ignored if negative. Set to 1 for immediate shutdown. Can only be set to 0 when --force is true (force deletion).' +complete -c kubectl -f -n '__fish_seen_subcommand_from replace' -r -s k -l kustomize -d 'Process a kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from replace' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from replace' -r -l raw -d 'Raw URI to PUT to the server. Uses the transport specified by the kubeconfig file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from replace' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from replace' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -n '__fish_seen_subcommand_from replace' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from replace' -r -l timeout -d 'The length of time to wait before giving up on a delete, zero means determine a timeout from the size of the object' +complete -c kubectl -f -n '__fish_seen_subcommand_from replace' -l validate -d 'If true, use a schema to validate the input before sending it' +complete -c kubectl -f -n '__fish_seen_subcommand_from replace' -l wait -d 'If true, wait for resources to be gone before returning. This waits for finalizers.' + +# Completions for the "kubectl rollout" command +function __fish_kubectl_get_rollout_commands + echo history\t'View rollout history' + echo pause\t'Mark the provided resource as paused' + echo restart\t'Restart a resource' + echo resume\t'Resume a paused resource' + echo status\t'Show the status of the rollout' + echo undo\t'Undo a previous rollout' +end + +function __fish_kubectl_get_rollout_commands_without_descriptions + __fish_kubectl_get_rollout_commands | string replace -r '\t.*$' '' +end + +complete -c kubectl -f -n "__fish_kubectl_using_command rollout; and not __fish_seen_subcommand_from (__fish_kubectl_get_rollout_commands_without_descriptions)" -a '(__fish_kubectl_get_rollout_commands)' + +# Completions for the "kubectl rollout history" command +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout history' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -n '__fish_seen_subcommand_from rollout history' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to get from a server.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout history' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout history' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout history' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout history' -r -l revision -d 'See the details, including podTemplate of the revision specified' +complete -c kubectl -n '__fish_seen_subcommand_from rollout history' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl rollout pause" command +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout pause' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout pause' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from rollout pause' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to get from a server.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout pause' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout pause' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout pause' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -n '__fish_seen_subcommand_from rollout pause' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl rollout restart" command +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout restart' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout restart' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from rollout restart' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to get from a server.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout restart' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout restart' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout restart' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -n '__fish_seen_subcommand_from rollout restart' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl rollout resume" command +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout resume' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout resume' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from rollout resume' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to get from a server.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout resume' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout resume' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout resume' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -n '__fish_seen_subcommand_from rollout resume' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl rollout status" command +complete -c kubectl -n '__fish_seen_subcommand_from rollout status' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to get from a server.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout status' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout status' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout status' -r -l revision -d 'Pin to a specific revision for showing its status. Defaults to 0 (last revision).' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout status' -r -l timeout -d 'The length of time to wait before ending watch, zero means never. Any other values should contain a corresponding time unit (e.g. 1s, 2m, 3h).' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout status' -s w -l watch -d 'Watch the status of the rollout until it\'s done.' + +# Completions for the "kubectl rollout undo" command +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout undo' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout undo' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -n '__fish_seen_subcommand_from rollout undo' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to get from a server.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout undo' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout undo' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout undo' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -n '__fish_seen_subcommand_from rollout undo' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from rollout undo' -r -l to-revision -d 'The revision to rollback to. Default to 0 (last revision).' + +# Completions for the "kubectl run" command +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -l annotations -d 'Annotations to apply to the pod.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -l attach -d 'If true, wait for the Pod to start running, and then attach to the Pod as if \'kubectl attach ...\' were called. Default false, unless \'-i/--stdin\' is set, in which case the default is true. With \'--restart=Never\' the exit code of the container process is returned.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -l cascade -d 'Must be "background", "orphan", or "foreground". Selects the deletion cascading strategy for the dependents (e.g. Pods created by a ReplicationController). Defaults to background.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -l command -d 'If true and extra arguments are present, use them as the \'command\' field in the container, rather than the \'args\' field which is the default.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -l env -d 'Environment variables to set in the container.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -l expose -d 'If true, service is created for the container(s) which are run' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from run' -r -s f -l filename -d 'to use to replace the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -l force -d 'If true, immediately remove resources from API and bypass graceful deletion. Note that immediate deletion of some resources may result in inconsistency or data loss and requires confirmation.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -l grace-period -d 'Period of time in seconds given to the resource to terminate gracefully. Ignored if negative. Set to 1 for immediate shutdown. Can only be set to 0 when --force is true (force deletion).' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -l hostport -d 'The host port mapping for the container port. To demonstrate a single-machine container.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -l image -d 'The image for the container to run.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -l image-pull-policy -d 'The image pull policy for the container. If left empty, this value will not be specified by the client and defaulted by the server' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -s k -l kustomize -d 'Process a kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -s l -l labels -d 'Comma separated labels to apply to the pod(s). Will override previous values.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -l leave-stdin-open -d 'If the pod is started in interactive mode or with stdin, leave stdin open after the first attach completes. By default, stdin will be closed after the first attach completes.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -l limits -d 'The resource requirement limits for this container. For example, \'cpu=200m,memory=512Mi\'. Note that server side components may assign limits depending on the server configuration, such as limit ranges.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -l overrides -d 'An inline JSON override for the generated object. If this is non-empty, it is used to override the generated object. Requires that the object supply a valid apiVersion field.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -l pod-running-timeout -d 'The length of time (like 5s, 2m, or 3h, higher than zero) to wait until at least one pod is running' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -l port -d 'The port that this container exposes.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -l privileged -d 'If true, run the container in privileged mode.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -l quiet -d 'If true, suppress prompt messages.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -l record -d 'Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -l requests -d 'The resource requirement requests for this container. For example, \'cpu=100m,memory=256Mi\'. Note that server side components may assign requests depending on the server configuration, such as limit ranges.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -l restart -d 'The restart policy for this Pod. Legal values [Always, OnFailure, Never].' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -l rm -d 'If true, delete resources created in this command for attached containers.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -l save-config -d 'If true, the configuration of current object will be saved in its annotation. Otherwise, the annotation will be unchanged. This flag is useful when you want to perform kubectl apply on this object in the future.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -l serviceaccount -d 'Service account to set in the pod spec.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -s i -l stdin -d 'Keep stdin open on the container(s) in the pod, even if nothing is attached.' +complete -c kubectl -n '__fish_seen_subcommand_from run' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -r -l timeout -d 'The length of time to wait before giving up on a delete, zero means determine a timeout from the size of the object' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -s t -l tty -d 'Allocated a TTY for each container in the pod.' +complete -c kubectl -f -n '__fish_seen_subcommand_from run' -l wait -d 'If true, wait for resources to be gone before returning. This waits for finalizers.' + +# Completions for the "kubectl scale" command +complete -c kubectl -f -n '__fish_seen_subcommand_from scale' -l all -d 'Select all resources in the namespace of the specified resource types' +complete -c kubectl -f -n '__fish_seen_subcommand_from scale' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from scale' -r -l current-replicas -d 'Precondition for current size. Requires that the current size of the resource match this value in order to scale.' +complete -c kubectl -f -n '__fish_seen_subcommand_from scale' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -n '__fish_seen_subcommand_from scale' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to set a new size' +complete -c kubectl -f -n '__fish_seen_subcommand_from scale' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from scale' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from scale' -l record -d 'Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.' +complete -c kubectl -f -n '__fish_seen_subcommand_from scale' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from scale' -r -l replicas -d 'The new desired number of replicas. Required.' +complete -c kubectl -f -n '__fish_seen_subcommand_from scale' -r -l resource-version -d 'Precondition for resource version. Requires that the current resource version match this value in order to scale.' +complete -c kubectl -f -n '__fish_seen_subcommand_from scale' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' +complete -c kubectl -n '__fish_seen_subcommand_from scale' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from scale' -r -l timeout -d 'The length of time to wait before giving up on a scale operation, zero means don\'t wait. Any other values should contain a corresponding time unit (e.g. 1s, 2m, 3h).' + +# Completions for the "kubectl set" command +function __fish_kubectl_get_set_commands + echo env\t'Update environment variables on a pod template' + echo image\t'Update image of a pod template' + echo resources\t'Update resource requests/limits on objects with pod templates' + echo selector\t'Set the selector on a resource' + echo serviceaccount\t'Update ServiceAccount of a resource' + echo sa\t'Update ServiceAccount of a resource' + echo subject\t'Update User, Group or ServiceAccount in a RoleBinding/ClusterRoleBinding' +end + +function __fish_kubectl_get_set_commands_without_descriptions + __fish_kubectl_get_set_commands | string replace -r '\t.*$' '' +end + +complete -c kubectl -f -n "__fish_kubectl_using_command set; and not __fish_seen_subcommand_from (__fish_kubectl_get_set_commands_without_descriptions)" -a '(__fish_kubectl_get_set_commands)' + +# Completions for the "kubectl set env" command +complete -c kubectl -f -n '__fish_seen_subcommand_from set env' -l all -d 'If true, select all resources in the namespace of the specified resource types' +complete -c kubectl -f -n '__fish_seen_subcommand_from set env' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set env' -r -s c -l containers -d 'The names of containers in the selected pod templates to change - may use wildcards' +complete -c kubectl -f -n '__fish_seen_subcommand_from set env' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set env' -r -s e -l env -d 'Specify a key-value pair for an environment variable to set into each container.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set env' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from set env' -r -s f -l filename -d 'Filename, directory, or URL to files the resource to update the env' +complete -c kubectl -f -n '__fish_seen_subcommand_from set env' -r -l from -d 'The name of a resource from which to inject environment variables' +complete -c kubectl -f -n '__fish_seen_subcommand_from set env' -r -l keys -d 'Comma-separated list of keys to import from specified resource' +complete -c kubectl -f -n '__fish_seen_subcommand_from set env' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set env' -l list -d 'If true, display the environment and any changes in the standard format. this flag will removed when we have kubectl view env.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set env' -l local -d 'If true, set env will NOT contact api-server but run locally.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set env' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set env' -l overwrite -d 'If true, allow environment to be overwritten, otherwise reject updates that overwrite existing environment.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set env' -r -l prefix -d 'Prefix to append to variable names' +complete -c kubectl -f -n '__fish_seen_subcommand_from set env' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set env' -l resolve -d 'If true, show secret or configmap references when listing variables' +complete -c kubectl -f -n '__fish_seen_subcommand_from set env' -r -s l -l selector -d 'Selector (label query) to filter on' +complete -c kubectl -n '__fish_seen_subcommand_from set env' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl set image" command +complete -c kubectl -f -n '__fish_seen_subcommand_from set image' -l all -d 'Select all resources, including uninitialized ones, in the namespace of the specified resource types' +complete -c kubectl -f -n '__fish_seen_subcommand_from set image' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set image' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set image' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from set image' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to get from a server.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set image' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set image' -l local -d 'If true, set image will NOT contact api-server but run locally.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set image' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set image' -l record -d 'Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set image' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set image' -r -s l -l selector -d 'Selector (label query) to filter on, not including uninitialized ones, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' +complete -c kubectl -n '__fish_seen_subcommand_from set image' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl set resources" command +complete -c kubectl -f -n '__fish_seen_subcommand_from set resources' -l all -d 'Select all resources, including uninitialized ones, in the namespace of the specified resource types' +complete -c kubectl -f -n '__fish_seen_subcommand_from set resources' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set resources' -r -s c -l containers -d 'The names of containers in the selected pod templates to change, all containers are selected by default - may use wildcards' +complete -c kubectl -f -n '__fish_seen_subcommand_from set resources' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set resources' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from set resources' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to get from a server.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set resources' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set resources' -r -l limits -d 'The resource requirement requests for this container. For example, \'cpu=100m,memory=256Mi\'. Note that server side components may assign requests depending on the server configuration, such as limit ranges.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set resources' -l local -d 'If true, set resources will NOT contact api-server but run locally.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set resources' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set resources' -l record -d 'Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set resources' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set resources' -r -l requests -d 'The resource requirement requests for this container. For example, \'cpu=100m,memory=256Mi\'. Note that server side components may assign requests depending on the server configuration, such as limit ranges.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set resources' -r -s l -l selector -d 'Selector (label query) to filter on, not including uninitialized ones,supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' +complete -c kubectl -n '__fish_seen_subcommand_from set resources' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl set selector" command +complete -c kubectl -f -n '__fish_seen_subcommand_from set selector' -l all -d 'Select all resources in the namespace of the specified resource types' +complete -c kubectl -f -n '__fish_seen_subcommand_from set selector' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set selector' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set selector' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from set selector' -r -s f -l filename -d 'identifying the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set selector' -l local -d 'If true, annotation will NOT contact api-server but run locally.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set selector' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set selector' -l record -d 'Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set selector' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set selector' -r -l resource-version -d 'If non-empty, the selectors update will only succeed if this is the current resource-version for the object. Only valid when specifying a single resource.' +complete -c kubectl -n '__fish_seen_subcommand_from set selector' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl set serviceaccount" command +complete -c kubectl -f -n '__fish_seen_subcommand_from set serviceaccount' -l all -d 'Select all resources, including uninitialized ones, in the namespace of the specified resource types' +complete -c kubectl -f -n '__fish_seen_subcommand_from set sa' -l all -d 'Select all resources, including uninitialized ones, in the namespace of the specified resource types' +complete -c kubectl -f -n '__fish_seen_subcommand_from set serviceaccount' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set sa' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set serviceaccount' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set sa' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set serviceaccount' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set sa' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from set serviceaccount' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to get from a server.' +complete -c kubectl -n '__fish_seen_subcommand_from set sa' -r -s f -l filename -d 'Filename, directory, or URL to files identifying the resource to get from a server.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set serviceaccount' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set sa' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set serviceaccount' -l local -d 'If true, set serviceaccount will NOT contact api-server but run locally.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set sa' -l local -d 'If true, set serviceaccount will NOT contact api-server but run locally.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set serviceaccount' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set sa' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set serviceaccount' -l record -d 'Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set sa' -l record -d 'Record current kubectl command in the resource annotation. If set to false, do not record the command. If set to true, record the command. If not set, default to updating the existing annotation value only if one already exists.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set serviceaccount' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set sa' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -n '__fish_seen_subcommand_from set serviceaccount' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -n '__fish_seen_subcommand_from set sa' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl set subject" command +complete -c kubectl -f -n '__fish_seen_subcommand_from set subject' -l all -d 'Select all resources, including uninitialized ones, in the namespace of the specified resource types' +complete -c kubectl -f -n '__fish_seen_subcommand_from set subject' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set subject' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set subject' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -n '__fish_seen_subcommand_from set subject' -r -s f -l filename -d 'Filename, directory, or URL to files the resource to update the subjects' +complete -c kubectl -f -n '__fish_seen_subcommand_from set subject' -r -l group -d 'Groups to bind to the role' +complete -c kubectl -f -n '__fish_seen_subcommand_from set subject' -r -s k -l kustomize -d 'Process the kustomization directory. This flag can\'t be used together with -f or -R.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set subject' -l local -d 'If true, set subject will NOT contact api-server but run locally.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set subject' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set subject' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from set subject' -r -s l -l selector -d 'Selector (label query) to filter on, not including uninitialized ones, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' +complete -c kubectl -f -n '__fish_seen_subcommand_from set subject' -r -l serviceaccount -d 'Service accounts to bind to the role' +complete -c kubectl -n '__fish_seen_subcommand_from set subject' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' + +# Completions for the "kubectl taint" command +complete -c kubectl -f -n '__fish_seen_subcommand_from taint' -l all -d 'Select all nodes in the cluster' +complete -c kubectl -f -n '__fish_seen_subcommand_from taint' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from taint' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from taint' -r -l field-manager -d 'Name of the manager used to track field ownership.' +complete -c kubectl -f -n '__fish_seen_subcommand_from taint' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from taint' -l overwrite -d 'If true, allow taints to be overwritten, otherwise reject taint updates that overwrite existing taints.' +complete -c kubectl -f -n '__fish_seen_subcommand_from taint' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' +complete -c kubectl -n '__fish_seen_subcommand_from taint' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from taint' -l validate -d 'If true, use a schema to validate the input before sending it' + +# Completions for the "kubectl top" command +function __fish_kubectl_get_top_commands + echo node\t'Display Resource (CPU/Memory/Storage) usage of nodes' + echo nodes\t'Display Resource (CPU/Memory/Storage) usage of nodes' + echo no\t'Display Resource (CPU/Memory/Storage) usage of nodes' + echo pod\t'Display Resource (CPU/Memory/Storage) usage of pods' + echo pods\t'Display Resource (CPU/Memory/Storage) usage of pods' + echo po\t'Display Resource (CPU/Memory/Storage) usage of pods' +end + +function __fish_kubectl_get_top_commands_without_descriptions + __fish_kubectl_get_top_commands | string replace -r '\t.*$' '' +end + +complete -c kubectl -f -n "__fish_kubectl_using_command top; and not __fish_seen_subcommand_from (__fish_kubectl_get_top_commands_without_descriptions)" -a '(__fish_kubectl_get_top_commands)' + +# Completions for the "kubectl top node" command +complete -c kubectl -f -n '__fish_seen_subcommand_from top node' -l no-headers -d 'If present, print output without headers' +complete -c kubectl -f -n '__fish_seen_subcommand_from top nodes' -l no-headers -d 'If present, print output without headers' +complete -c kubectl -f -n '__fish_seen_subcommand_from top no' -l no-headers -d 'If present, print output without headers' +complete -c kubectl -f -n '__fish_seen_subcommand_from top node' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' +complete -c kubectl -f -n '__fish_seen_subcommand_from top nodes' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' +complete -c kubectl -f -n '__fish_seen_subcommand_from top no' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' +complete -c kubectl -f -n '__fish_seen_subcommand_from top node' -r -l sort-by -d 'If non-empty, sort nodes list using specified field. The field can be either \'cpu\' or \'memory\'.' +complete -c kubectl -f -n '__fish_seen_subcommand_from top nodes' -r -l sort-by -d 'If non-empty, sort nodes list using specified field. The field can be either \'cpu\' or \'memory\'.' +complete -c kubectl -f -n '__fish_seen_subcommand_from top no' -r -l sort-by -d 'If non-empty, sort nodes list using specified field. The field can be either \'cpu\' or \'memory\'.' + +# Completions for the "kubectl top pod" command +complete -c kubectl -f -n '__fish_seen_subcommand_from top pod' -s A -l all-namespaces -d 'If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.' +complete -c kubectl -f -n '__fish_seen_subcommand_from top pods' -s A -l all-namespaces -d 'If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.' +complete -c kubectl -f -n '__fish_seen_subcommand_from top po' -s A -l all-namespaces -d 'If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.' +complete -c kubectl -f -n '__fish_seen_subcommand_from top pod' -l containers -d 'If present, print usage of containers within a pod.' +complete -c kubectl -f -n '__fish_seen_subcommand_from top pods' -l containers -d 'If present, print usage of containers within a pod.' +complete -c kubectl -f -n '__fish_seen_subcommand_from top po' -l containers -d 'If present, print usage of containers within a pod.' +complete -c kubectl -f -n '__fish_seen_subcommand_from top pod' -l no-headers -d 'If present, print output without headers.' +complete -c kubectl -f -n '__fish_seen_subcommand_from top pods' -l no-headers -d 'If present, print output without headers.' +complete -c kubectl -f -n '__fish_seen_subcommand_from top po' -l no-headers -d 'If present, print output without headers.' +complete -c kubectl -f -n '__fish_seen_subcommand_from top pod' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' +complete -c kubectl -f -n '__fish_seen_subcommand_from top pods' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' +complete -c kubectl -f -n '__fish_seen_subcommand_from top po' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' +complete -c kubectl -f -n '__fish_seen_subcommand_from top pod' -r -l sort-by -d 'If non-empty, sort pods list using specified field. The field can be either \'cpu\' or \'memory\'.' +complete -c kubectl -f -n '__fish_seen_subcommand_from top pods' -r -l sort-by -d 'If non-empty, sort pods list using specified field. The field can be either \'cpu\' or \'memory\'.' +complete -c kubectl -f -n '__fish_seen_subcommand_from top po' -r -l sort-by -d 'If non-empty, sort pods list using specified field. The field can be either \'cpu\' or \'memory\'.' + +# Completions for the "kubectl uncordon" command +complete -c kubectl -f -n '__fish_seen_subcommand_from uncordon' -r -l dry-run -d 'Must be "none", "server", or "client". If client strategy, only print the object that would be sent, without sending it. If server strategy, submit server-side request without persisting the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from uncordon' -r -s l -l selector -d 'Selector (label query) to filter on' + +# Completions for the "kubectl version" command +complete -c kubectl -f -n '__fish_seen_subcommand_from version' -l client -d 'If true, shows client version only (no server required).' +complete -c kubectl -f -n '__fish_seen_subcommand_from version' -r -s o -l output -d 'One of \'yaml\' or \'json\'.' +complete -c kubectl -f -n '__fish_seen_subcommand_from version' -l short -d 'If true, print just the version number.' + +# Completions for the "kubectl wait" command +complete -c kubectl -f -n '__fish_seen_subcommand_from wait' -l all -d 'Select all resources in the namespace of the specified resource types' +complete -c kubectl -f -n '__fish_seen_subcommand_from wait' -s A -l all-namespaces -d 'If present, list the requested object(s) across all namespaces. Namespace in current context is ignored even if specified with --namespace.' +complete -c kubectl -f -n '__fish_seen_subcommand_from wait' -l allow-missing-template-keys -d 'If true, ignore any errors in templates when a field or map key is missing in the template. Only applies to golang and jsonpath output formats.' +complete -c kubectl -f -n '__fish_seen_subcommand_from wait' -r -l field-selector -d 'Selector (field query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. --field-selector key1=value1,key2=value2). The server only supports a limited number of field queries per type.' +complete -c kubectl -n '__fish_seen_subcommand_from wait' -r -s f -l filename -d 'identifying the resource.' +complete -c kubectl -f -n '__fish_seen_subcommand_from wait' -r -l for -d 'The condition to wait on: [delete|condition=condition-name].' +complete -c kubectl -f -n '__fish_seen_subcommand_from wait' -l local -d 'If true, annotation will NOT contact api-server but run locally.' +complete -c kubectl -f -n '__fish_seen_subcommand_from wait' -r -s o -l output -d 'Output format. One of: json|yaml|name|go-template|go-template-file|template|templatefile|jsonpath|jsonpath-as-json|jsonpath-file.' +complete -c kubectl -f -n '__fish_seen_subcommand_from wait' -s R -l recursive -d 'Process the directory used in -f, --filename recursively. Useful when you want to manage related manifests organized within the same directory.' +complete -c kubectl -f -n '__fish_seen_subcommand_from wait' -r -s l -l selector -d 'Selector (label query) to filter on, supports \'=\', \'==\', and \'!=\'.(e.g. -l key1=value1,key2=value2)' +complete -c kubectl -n '__fish_seen_subcommand_from wait' -r -l template -d 'Template string or path to template file to use when -o=go-template, -o=go-template-file. The template format is golang templates [http://golang.org/pkg/text/template/#pkg-overview].' +complete -c kubectl -f -n '__fish_seen_subcommand_from wait' -r -l timeout -d 'The length of time to wait before giving up. Zero means check once and don\'t wait, negative means wait for a week.' diff --git a/dot_config/fish/completions/minikube.fish b/dot_config/fish/completions/minikube.fish new file mode 100644 index 0000000..3ea134a --- /dev/null +++ b/dot_config/fish/completions/minikube.fish @@ -0,0 +1,178 @@ + +# Copyright 2016 The Kubernetes Authors. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# fish completion for minikube -*- shell-script -*- + +function __minikube_debug + set file "$BASH_COMP_DEBUG_FILE" + if test -n "$file" + echo "$argv" >> $file + end +end + +function __minikube_perform_completion + __minikube_debug "Starting __minikube_perform_completion with: $argv" + + set args (string split -- " " "$argv") + set lastArg "$args[-1]" + + __minikube_debug "args: $args" + __minikube_debug "last arg: $lastArg" + + set emptyArg "" + if test -z "$lastArg" + __minikube_debug "Setting emptyArg" + set emptyArg \"\" + end + __minikube_debug "emptyArg: $emptyArg" + + if not type -q "$args[1]" + # This can happen when "complete --do-complete minikube" is called when running this script. + __minikube_debug "Cannot find $args[1]. No completions." + return + end + + set requestComp "$args[1] __complete $args[2..-1] $emptyArg" + __minikube_debug "Calling $requestComp" + + set results (eval $requestComp 2> /dev/null) + set comps $results[1..-2] + set directiveLine $results[-1] + + # For Fish, when completing a flag with an = (e.g., -n=) + # completions must be prefixed with the flag + set flagPrefix (string match -r -- '-.*=' "$lastArg") + + __minikube_debug "Comps: $comps" + __minikube_debug "DirectiveLine: $directiveLine" + __minikube_debug "flagPrefix: $flagPrefix" + + for comp in $comps + printf "%s%s\n" "$flagPrefix" "$comp" + end + + printf "%s\n" "$directiveLine" +end + +# This function does three things: +# 1- Obtain the completions and store them in the global __minikube_comp_results +# 2- Set the __minikube_comp_do_file_comp flag if file completion should be performed +# and unset it otherwise +# 3- Return true if the completion results are not empty +function __minikube_prepare_completions + # Start fresh + set --erase __minikube_comp_do_file_comp + set --erase __minikube_comp_results + + # Check if the command-line is already provided. This is useful for testing. + if not set --query __minikube_comp_commandLine + # Use the -c flag to allow for completion in the middle of the line + set __minikube_comp_commandLine (commandline -c) + end + __minikube_debug "commandLine is: $__minikube_comp_commandLine" + + set results (__minikube_perform_completion "$__minikube_comp_commandLine") + set --erase __minikube_comp_commandLine + __minikube_debug "Completion results: $results" + + if test -z "$results" + __minikube_debug "No completion, probably due to a failure" + # Might as well do file completion, in case it helps + set --global __minikube_comp_do_file_comp 1 + return 1 + end + + set directive (string sub --start 2 $results[-1]) + set --global __minikube_comp_results $results[1..-2] + + __minikube_debug "Completions are: $__minikube_comp_results" + __minikube_debug "Directive is: $directive" + + set shellCompDirectiveError 1 + set shellCompDirectiveNoSpace 2 + set shellCompDirectiveNoFileComp 4 + set shellCompDirectiveFilterFileExt 8 + set shellCompDirectiveFilterDirs 16 + + if test -z "$directive" + set directive 0 + end + + set compErr (math (math --scale 0 $directive / $shellCompDirectiveError) % 2) + if test $compErr -eq 1 + __minikube_debug "Received error directive: aborting." + # Might as well do file completion, in case it helps + set --global __minikube_comp_do_file_comp 1 + return 1 + end + + set filefilter (math (math --scale 0 $directive / $shellCompDirectiveFilterFileExt) % 2) + set dirfilter (math (math --scale 0 $directive / $shellCompDirectiveFilterDirs) % 2) + if test $filefilter -eq 1; or test $dirfilter -eq 1 + __minikube_debug "File extension filtering or directory filtering not supported" + # Do full file completion instead + set --global __minikube_comp_do_file_comp 1 + return 1 + end + + set nospace (math (math --scale 0 $directive / $shellCompDirectiveNoSpace) % 2) + set nofiles (math (math --scale 0 $directive / $shellCompDirectiveNoFileComp) % 2) + + __minikube_debug "nospace: $nospace, nofiles: $nofiles" + + # Important not to quote the variable for count to work + set numComps (count $__minikube_comp_results) + __minikube_debug "numComps: $numComps" + + if test $numComps -eq 1; and test $nospace -ne 0 + # To support the "nospace" directive we trick the shell + # by outputting an extra, longer completion. + __minikube_debug "Adding second completion to perform nospace directive" + set --append __minikube_comp_results $__minikube_comp_results[1]. + end + + if test $numComps -eq 0; and test $nofiles -eq 0 + __minikube_debug "Requesting file completion" + set --global __minikube_comp_do_file_comp 1 + end + + # If we don't want file completion, we must return true even if there + # are no completions found. This is because fish will perform the last + # completion command, even if its condition is false, if no other + # completion command was triggered + return (not set --query __minikube_comp_do_file_comp) +end + +# Since Fish completions are only loaded once the user triggers them, we trigger them ourselves +# so we can properly delete any completions provided by another script. +# The space after the the program name is essential to trigger completion for the program +# and not completion of the program name itself. +complete --do-complete "minikube " > /dev/null 2>&1 +# Using '> /dev/null 2>&1' since '&>' is not supported in older versions of fish. + +# Remove any pre-existing completions for the program since we will be handling all of them. +complete -c minikube -e + +# The order in which the below two lines are defined is very important so that __minikube_prepare_completions +# is called first. It is __minikube_prepare_completions that sets up the __minikube_comp_do_file_comp variable. +# +# This completion will be run second as complete commands are added FILO. +# It triggers file completion choices when __minikube_comp_do_file_comp is set. +complete -c minikube -n 'set --query __minikube_comp_do_file_comp' + +# This completion will be run first as complete commands are added FILO. +# The call to __minikube_prepare_completions will setup both __minikube_comp_results and __minikube_comp_do_file_comp. +# It provides the program's completion choices. +complete -c minikube -n '__minikube_prepare_completions' -f -a '$__minikube_comp_results' + diff --git a/dot_config/fish/config.fish.tmpl b/dot_config/fish/config.fish.tmpl index 5a5db13..ca04757 100755 --- a/dot_config/fish/config.fish.tmpl +++ b/dot_config/fish/config.fish.tmpl @@ -17,41 +17,80 @@ set -x GPG_TTY (tty) set -U fish_greeting -# spv {{ if eq .chezmoi.hostname "nzxt" }} set -U spv_dir "/home/kevin/coding/spotify-lib-vis" set -U mfs_dir "/home/kevin/coding/mf-site" source /home/kevin/coding/spotify-lib-vis/src/scripts/api-keys-fish.sh abbr hum "cd $mfs_dir && hugo serve -D --disableFastRender" -{{ end }} +{{ end }}#]]] -set -x PATH $PATH ~/.local/bin ~/scripts ~/scripts/colors ~/go/bin ~/.minetest/minetest/bin ~/.gem/ruby/2.6.0/bin -set -x CLASSPATH $CLASSPATH /home/kevin/java/*.jar -set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64 -set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig +# system [[[ set -x HASTE_SERVER https://pste.gq {{ if eq .chezmoi.hostname "nzxt" }} set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1) {{ end }} +set -x LD_LIBRARY_PATH $LD_LIBRARY_PATH /usr/local/lib /usr/local/lib64 +set -x GOPATH ~/go +# set -x PATH $GRAALVM_BIN $PATH ~/.local/bin ~/scripts ~/scripts/colors ~/go/bin ~/.minetest/minetest/bin ~/.gem/ruby/2.6.0/bin +set -x PATH $PATH ~/.local/bin ~/scripts ~/scripts/colors $GOPATH/bin ~/.minetest/minetest/bin ~/.gem/ruby/*/bin ~/.yarn/bin +set -x PKG_CONFIG_PATH $PKG_CONFIG_PATH /usr/lib/pkgconfig + +# Java [[[ # + +set -x GRAALVM_HOME /usr/lib/jvm/graalvm-ce-java11-21.1.0 +set -x GRAALVM_BIN $GRAALVM_HOME/bin +set -x JAVA_HOME $GRAALVM_HOME -{{ if eq .linux_os "termux" }} +# set -x JAVA_HOME /usr/lib/jvm/java-11-openjdk +# set -x JAVA_HOME /usr/lib/jvm/java-8-openjdk # for shared libs + +set -x PATH $JAVA_HOME/bin $PATH + +# ]]] Java # + +# system ]]] + +# space prompt[[[ # set SPACEFISH_PROMPT_ORDER time user dir host git package node docker ruby golang php rust haskell julia aws conda pyenv kubecontext exec_time line_sep battery jobs exit_code vi_mode char -set SPACEFISH_DIR_PREFIX '' +set SPACEFISH_ADD_NEWLINE false set SPACEFISH_PROMPT_ORDER vi_mode dir git pyenv exec_time jobs exit_code line_sep char +set SPACEFISH_DIR_PREFIX '' +set SPACEFISH_DIR_TRUNC 0 +set SPACEFISH_DIR_TRUNC_REPO false set SPACEFISH_VI_MODE_INSERT '' set SPACEFISH_VI_MODE_NORMAL '[n] ' set SPACEFISH_VI_MODE_SUFFIX '' -{{ end }} +#]]] +# pass[[[ set -x PASSWORD_STORE_CLIP_TIME 120 set -xU XSET_RATE 90 set -xU XSET_DELAY 200 {{ if and (eq .chezmoi.hostname "x1-carbon") (not (eq .chezmoi.username "root")) }} xset r rate $XSET_DELAY $XSET_RATE -{{ end }} +{{ end }}#]]] -# set -U BROWSER "chromium" set -xU BROWSER "firefox" +# set -U BROWSER "chromium" + +set -xU FZF_DEFAULT_COMMAND "find ." + +set -x PHONE_IP "192.168.0.12" +set -x PIXEL_IP "192.168.0.18" +set -x WORK_LAPTOP_IP "kmok@192.168.0.11" + +{{ if eq .chezmoi.hostname "nzxt" }} +# set -x CALCURSE_CALDAV_PASSWORD (pass show technology/linux/baikal | head -n1) +set -x JENKINS_TOKEN 114a1b2e8693b57fa6f4bce88e2deee8cc +status --is-interactive; and source (pyenv init -|psub) +{{ end }} + +set -xU MINIKUBE_IP "http://192.168.49.2" +set -xU LOCAL_KOGITO_SERVICE_PORT "32000" +# set -xU LOCAL_KOGITO_SERVICE_URL "$MINIKUBE_IP:$LOCAL_KOGITO_SERVICE_PORT" + +set -x FLASK_DEBUG 1 +set -x DB_NAME "covid_monitor" # ]]] universal var's # @@ -67,11 +106,11 @@ builtin cd $last_dir && ls > /dev/null bind \ce edit_command_buffer bind \cr forward-word -chezmoi apply +# chezmoi apply {{ if not (eq .linux_os "termux") }} ~/scripts/sync-shortcuts {{ end }} -source ~/.config/fish/key_abbr.fish > /dev/null +# source ~/.config/fish/key_abbr.fish > /dev/null set -U fish_fxn_dir "{{ .chezmoi.homeDir }}/linux-config/dot_config/fish/functions" # set -U fish_fxn_dir "~/.config/fish/functions" abbr ff "cd $fish_fxn_dir" @@ -97,33 +136,50 @@ abbr xf "fish_config" abbr ! "sudo !!" # task [[[ # -abbr aan "task-anno" +abbr aan "task-anno ''" abbr ae "task-edit" abbr adl "task-delete" abbr adn "task-done" +abbr adu "task-due" +abbr adr "task-due-rm" abbr an "task-next" +abbr anr "task-next-rm" abbr ant "task-notes" abbr apr "task-mod-pri" +abbr aprl "task-mod-pri L" +abbr aprm "task-mod-pri M" +abbr aprn "task-mod-pri ''" +abbr aprh "task-mod-pri H" abbr apj "task-mod-proj" -abbr at "task-mod-tag" abbr asr "task-start" +abbr at "task-mod-tag" +abbr atj "task-mod-tag jira" +abbr aw "task-wait" abbr ax "task-context" # ]]] task # abbr ag "grep-aliases" -abbr b "buku-fzf" -abbr bf "buku-fzf fq" +abbr bk "buku-fzf" +abbr bkf "buku-fzf fq" abbr bq "benq-brightness" +abbr bn "discord-burner" +abbr bun "backup nzxt" abbr bupp "backup-phone-pics" +abbr ca "cad-to-us" +abbr cccs "sync-alt-cal class" +abbr cl "clip" abbr cpc "copy cat" abbr cpe "copy echo" abbr cpp "copy echo (pwd)" abbr cff "create-fish-function" abbr ctr "systemctl-restart" abbr def "define" +abbr drs "dump-rarity-check" abbr ens "enable-site" abbr ev "evince-silent" +abbr ff "fzf-cd" # abbr fbg "find-bg" +# abbr fr "fzf-ranger" abbr fv "fzf-vim" abbr fvft "find-vim-filetype" # git [[[ # @@ -131,49 +187,62 @@ abbr fvft "find-vim-filetype" abbr gcamp "git-amend-push" abbr gclg "git-clone-gitea" abbr gdf "git-diff-files" +abbr gpsd "git-push-diff-name" abbr gpsi "git-push-initial" abbr gpsmt "git-push-multiple" -abbr gpng "git-push-new-gitea gitea" -abbr gpngo "git-push-new-gitea origin" +abbr gpng "git-push-new-gitea" +abbr gpngg "git-push-new-gitea gitea" abbr gremotes "git-mult-remotes" abbr grmb "git-delete-branch" abbr gro "git-replace-origin" +abbr grog "git-replace-origin-gitea" +abbr gsmb "git-submodule-branch" # ]]] git # +abbr i "sxiv-silent" +abbr lo "libreoffice-silent" abbr ma "man-vim task" abbr mat "math" abbr mn "man-vim" +abbr mdf "mkdir-cd" +abbr mtm "maven-test-method" abbr pgr "grep-pdf" abbr pgrf "grep-pdf-file" -abbr png "git-push-new-gitea" abbr pst "pastebin" +abbr qh "qalc-history" +abbr qu "qalc-update" +abbr re "reminder ''" abbr rf "refresh-config" -abbr rs "redshift-set" +abbr rl "readlink-cp" +abbr rds "redshift-set" +abbr scf "scp-vid fn" abbr sma "smol-add" abbr smd "smol-delete" abbr sml "smol-slist" abbr smr "smol-replace" abbr shrm "shred-rm" -abbr svs "scan-history" -abbr tac "tmux-attach config" -abbr taj "tmux-attach journal" +abbr shs "scan-history" +abbr svp "server-pages" +abbr ta "tmux-attach" +abbr taa "tmux-attach atx" +abbr taf "tmux-attach fn" +abbr tan "tmux-attach nft" +abbr tan2 "tmux-attach nft-2" +abbr tao "tmux-attach obs" abbr thes "thesaurus" +# abbr usc "us-to-cad" +abbr us "us-to-cad" abbr ut "unix-timestamp" abbr uzr "unzip-rm" abbr vsnp "vim-snippet" abbr wga "wget-all" +abbr wag "watson-add-game" +abbr waf "watson-add-game fortnite" +abbr wap "watson-add-game pokemon-go" abbr xya "export-pkgs" # school [[[ # -# 369 -abbr grc "grep-c" -abbr grh "grep-headers" -abbr rgh "rg-headers" - -abbr jcr "java-compile-run" -abbr jct "java-compile-test" - # ]]] school # # ]]] fxn abbr's # diff --git a/dot_config/fish/functions/cad-to-us.fish b/dot_config/fish/functions/cad-to-us.fish new file mode 100644 index 0000000..6ca931d --- /dev/null +++ b/dot_config/fish/functions/cad-to-us.fish @@ -0,0 +1,3 @@ +function cad-to-us + qalc "$argv[1]CAD to \$" +end diff --git a/dot_config/fish/functions/clip.fish b/dot_config/fish/functions/clip.fish new file mode 100644 index 0000000..be6f17c --- /dev/null +++ b/dot_config/fish/functions/clip.fish @@ -0,0 +1,7 @@ +function clip + if test (count $argv) -eq 3 + ffmpeg -ss $argv[1] -i $argv[2] -codec copy $argv[3] + else + ffmpeg -ss $argv[1] -to $argv[2] -i $argv[3] -codec copy $argv[4] + end +end diff --git a/dot_config/fish/functions/discord-burner.fish b/dot_config/fish/functions/discord-burner.fish new file mode 100644 index 0000000..ade3d06 --- /dev/null +++ b/dot_config/fish/functions/discord-burner.fish @@ -0,0 +1,15 @@ +function discord-burner + # echo nordvpn connect ca1$argv[1] && curl ifconfig.me + # nordvpn connect ca1$argv[1] && \ + # nordvpn connect ca10$argv[1] + nordvpn connect + curl ifconfig.me + if test (count $argv) -gt 1 + firefox -P discord-$argv[2] $argv[1] & + else + firefox -P discord-$argv[1] & + end + # for i in (seq $argv[1] $argv[2]) + # firefox -P discord-$i $argv[3] & + # end +end \ No newline at end of file diff --git a/dot_config/fish/functions/dump-rarity-check.fish b/dot_config/fish/functions/dump-rarity-check.fish new file mode 100644 index 0000000..d4b4231 --- /dev/null +++ b/dot_config/fish/functions/dump-rarity-check.fish @@ -0,0 +1,3 @@ +function dump-rarity-check + pg_dump -U rarity_check rarity_check > $argv[1].sql +end \ No newline at end of file diff --git a/dot_config/fish/functions/fish_mode_prompt.fish b/dot_config/fish/functions/fish_mode_prompt.fish new file mode 100644 index 0000000..e69de29 diff --git a/dot_config/fish/functions/fzf-cd.fish b/dot_config/fish/functions/fzf-cd.fish new file mode 100644 index 0000000..e4cf67c --- /dev/null +++ b/dot_config/fish/functions/fzf-cd.fish @@ -0,0 +1,4 @@ +function fzf-cd + set dir (fd -td | fzf) + cd $dir +end \ No newline at end of file diff --git a/dot_config/fish/functions/fzf-ranger.fish b/dot_config/fish/functions/fzf-ranger.fish new file mode 100644 index 0000000..85e08db --- /dev/null +++ b/dot_config/fish/functions/fzf-ranger.fish @@ -0,0 +1,6 @@ +function fzf-ranger + set dir (fd -td | fzf) + if test ! -z "$dir" + ranger $dir + end +end diff --git a/dot_config/fish/functions/fzf-vim.fish b/dot_config/fish/functions/fzf-vim.fish index 3d00215..93d915e 100644 --- a/dot_config/fish/functions/fzf-vim.fish +++ b/dot_config/fish/functions/fzf-vim.fish @@ -1,3 +1,6 @@ function fzf-vim - fzf | xargs $EDITOR + set file (fzf) + if test ! -z "$file" + $EDITOR $file + end end diff --git a/dot_config/fish/functions/git-log-short.fish b/dot_config/fish/functions/git-log-short.fish new file mode 100644 index 0000000..a7631d9 --- /dev/null +++ b/dot_config/fish/functions/git-log-short.fish @@ -0,0 +1,3 @@ +function git-log-short + git log --pretty="%C(Yellow)%h %C(reset)%ad (%C(Green)%cr%C(reset))%x09 %C(Cyan)%an: %C(reset)%s" +end diff --git a/dot_config/fish/functions/git-submodule-branch.fish b/dot_config/fish/functions/git-submodule-branch.fish new file mode 100644 index 0000000..70d94e4 --- /dev/null +++ b/dot_config/fish/functions/git-submodule-branch.fish @@ -0,0 +1,3 @@ +function git-submodule-branch + git submodule set-branch --branch $argv[2] -- $argv[1] +end diff --git a/dot_config/fish/functions/git/git-clone-gitea.fish b/dot_config/fish/functions/git/git-clone-gitea.fish index 6077717..979cc2c 100644 --- a/dot_config/fish/functions/git/git-clone-gitea.fish +++ b/dot_config/fish/functions/git/git-clone-gitea.fish @@ -1,3 +1,3 @@ function git-clone-gitea - git clone ssh://git@ataraxy.tk:399/Kevin-Mok/$argv[1].git + git clone ssh://git@kevin-mok.com:399/Kevin-Mok/$argv[1].git end diff --git a/dot_config/fish/functions/git/git-push-diff-name.fish b/dot_config/fish/functions/git/git-push-diff-name.fish new file mode 100755 index 0000000..31da049 --- /dev/null +++ b/dot_config/fish/functions/git/git-push-diff-name.fish @@ -0,0 +1,3 @@ +function git-push-diff-name + git push -f origin HEAD:$argv[1] +end diff --git a/dot_config/fish/functions/git/git-push-new-gitea.fish b/dot_config/fish/functions/git/git-push-new-gitea.fish index 5d1b230..337a13a 100644 --- a/dot_config/fish/functions/git/git-push-new-gitea.fish +++ b/dot_config/fish/functions/git/git-push-new-gitea.fish @@ -1,4 +1,4 @@ function git-push-new-gitea - git remote add $argv[1] ssh://git@ataraxy.tk:399/Kevin-Mok/$argv[2].git - and git push --set-upstream $argv[1] master + git remote add origin ssh://git@kevin-mok.com:399/Kevin-Mok/$argv[1].git + and git push --set-upstream origin main end diff --git a/dot_config/fish/functions/git/git-replace-origin-gitea.fish b/dot_config/fish/functions/git/git-replace-origin-gitea.fish new file mode 100644 index 0000000..c798138 --- /dev/null +++ b/dot_config/fish/functions/git/git-replace-origin-gitea.fish @@ -0,0 +1,6 @@ +function git-replace-origin-gitea + git remote remove origin + and git remote add origin ssh://git@kevin-mok.com:399/Kevin-Mok/$argv[1].git + and git branch --set-upstream-to=origin/master master + and git push +end diff --git a/dot_config/fish/functions/libreoffice-silent.fish b/dot_config/fish/functions/libreoffice-silent.fish new file mode 100644 index 0000000..50614a5 --- /dev/null +++ b/dot_config/fish/functions/libreoffice-silent.fish @@ -0,0 +1,3 @@ +function libreoffice-silent + libreoffice $argv[1] & +end diff --git a/dot_config/fish/functions/maven-test-method.fish b/dot_config/fish/functions/maven-test-method.fish new file mode 100644 index 0000000..3125dc8 --- /dev/null +++ b/dot_config/fish/functions/maven-test-method.fish @@ -0,0 +1,4 @@ +function maven-test-method + mvn "-Dtest=$argv[1]#*$argv[2]*" clean test + # mvn "-Dtest=$argv[1]#*$argv[2]*" test +end diff --git a/dot_config/fish/functions/mkdir-cd.fish b/dot_config/fish/functions/mkdir-cd.fish new file mode 100644 index 0000000..0b71495 --- /dev/null +++ b/dot_config/fish/functions/mkdir-cd.fish @@ -0,0 +1,3 @@ +function mkdir-cd + mkdir -p $argv[1] && cd $argv[1] +end diff --git a/dot_config/fish/functions/mute-video.fish b/dot_config/fish/functions/mute-video.fish new file mode 100644 index 0000000..a7e710b --- /dev/null +++ b/dot_config/fish/functions/mute-video.fish @@ -0,0 +1,3 @@ +function mute-video + ffmpeg -i $argv[1] -c copy -an $argv[2] +end diff --git a/dot_config/fish/functions/pastebin.fish b/dot_config/fish/functions/pastebin.fish index 1410f86..839e560 100755 --- a/dot_config/fish/functions/pastebin.fish +++ b/dot_config/fish/functions/pastebin.fish @@ -1,5 +1,6 @@ function pastebin # cat $argv[1] | curl -F 'sprunge=<-' http://sprunge.us # set -x HASTE_SERVER https://pste.gq - cat $argv[1] | haste --raw + # cat $argv[1] | haste --raw + cat $argv[1] | haste end diff --git a/dot_config/fish/functions/qalc-history.fish b/dot_config/fish/functions/qalc-history.fish new file mode 100644 index 0000000..418101f --- /dev/null +++ b/dot_config/fish/functions/qalc-history.fish @@ -0,0 +1,3 @@ +function qalc-history + qalc $argv[1] | tee -a /home/kevin/Documents/journal/personal/calc-history.md +end diff --git a/dot_config/fish/functions/qalc-update.fish b/dot_config/fish/functions/qalc-update.fish new file mode 100644 index 0000000..4da87bd --- /dev/null +++ b/dot_config/fish/functions/qalc-update.fish @@ -0,0 +1,3 @@ +function qalc-update + qalc -e "$argv[1]USD to CAD" +end diff --git a/dot_config/fish/functions/readlink-cp.fish b/dot_config/fish/functions/readlink-cp.fish new file mode 100644 index 0000000..a1f5b33 --- /dev/null +++ b/dot_config/fish/functions/readlink-cp.fish @@ -0,0 +1,3 @@ +function readlink-cp + readlink -f $argv[1] | xclip -selection clipboard +end diff --git a/dot_config/fish/functions/refresh-config-task.fish b/dot_config/fish/functions/refresh-config-task.fish new file mode 100644 index 0000000..ca9865a --- /dev/null +++ b/dot_config/fish/functions/refresh-config-task.fish @@ -0,0 +1,13 @@ +function refresh-config + chezmoi apply + and echo 'Applied chezmoi.' + # and tmux source-file ~/.tmux.conf + # and echo 'Sourced tmux config.' + + sync-shortcuts + echo 'Synced shortcuts.' + source ~/.config/fish/key_abbr.fish > /dev/null + and echo 'Sourced shortcuts.' + and echo 'Reloading fish.' + and exec fish +end diff --git a/dot_config/fish/functions/reminder.fish b/dot_config/fish/functions/reminder.fish new file mode 100644 index 0000000..f3df0e9 --- /dev/null +++ b/dot_config/fish/functions/reminder.fish @@ -0,0 +1,3 @@ +function reminder + termdown $argv[2] && notify-send $argv[1] +end diff --git a/dot_config/fish/functions/scan-history.fish b/dot_config/fish/functions/scan-history.fish index 36f3c5d..d73ecbc 100755 --- a/dot_config/fish/functions/scan-history.fish +++ b/dot_config/fish/functions/scan-history.fish @@ -2,6 +2,7 @@ function scan-history sudo systemctl start postgresql.service # and systemctl status postgresql.service and source $spv_dir/src/scripts/api-keys.sh + # and $spv_dir/src/scripts/update-history-2.sh and $spv_dir/src/scripts/update-history.sh and cat $spv_dir/src/api/management/commands/update-history.log | tail -n 1 end diff --git a/dot_config/fish/functions/scp-vid.fish b/dot_config/fish/functions/scp-vid.fish new file mode 100644 index 0000000..c556d19 --- /dev/null +++ b/dot_config/fish/functions/scp-vid.fish @@ -0,0 +1,7 @@ +function scp-vid + set dest_dir "/mnt/linux-files/Videos/personal-fortnite-games/review" + if test $argv[1] = 'pogo' + set dest_dir "/mnt/linux-files/Videos/pokemon-go" + end + scp -P 8022 192.168.0.18:/data/data/com.termux/files/home/storage/dcim/\'Screen\ recordings\'/$argv[2] $dest_dir +end \ No newline at end of file diff --git a/dot_config/fish/functions/server-pages.fish b/dot_config/fish/functions/server-pages.fish index 91728fc..071142e 100644 --- a/dot_config/fish/functions/server-pages.fish +++ b/dot_config/fish/functions/server-pages.fish @@ -1,8 +1,8 @@ function server-pages - set sites git.ataraxy.tk khkm.tk cal.khkm.tk mnpd.gq/k-bg pste.gq smol.gq twem.tk - set titles "Kevin Mok's Gitea" "Kevin Mok" "Baïkal server" "k-bg" "hastebin" "Kevin's URL Shortener" "Index of /" - # set sites mnpd.gq/k-bg - # set titles "k-bg" + set sites kevin-mok.com git.kevin-mok.com cal.khkm.tk mnpd.gq/kbg pste.gq smol.gq twem.tk + set titles "Kevin Mok" "Kevin Mok's Gitea" "Baïkal server" "kbg" "hastebin" "Kevin's URL Shortener" "Twitch Emote Links" + # set sites twem.tk + # set titles "Twitch Emote Links" for i in (seq (count $sites)) set title (wget -qO- "$sites[$i]" | perl -l -0777 -ne 'print $1 if /\s*(.*?)\s*<\/title/si' | recode html) diff --git a/dot_config/fish/functions/sxiv-silent.fish b/dot_config/fish/functions/sxiv-silent.fish new file mode 100644 index 0000000..af6fa3f --- /dev/null +++ b/dot_config/fish/functions/sxiv-silent.fish @@ -0,0 +1,3 @@ +function sxiv-silent + sxiv $argv[1] & +end diff --git a/dot_config/fish/functions/task/task-anno.fish b/dot_config/fish/functions/task/task-anno.fish index 23a77e8..d472aea 100644 --- a/dot_config/fish/functions/task/task-anno.fish +++ b/dot_config/fish/functions/task/task-anno.fish @@ -1,4 +1,4 @@ function task-anno - task $argv[1] annotate $argv[2] + task $argv[2] annotate $argv[1] and task end diff --git a/dot_config/fish/functions/task/task-delete.fish b/dot_config/fish/functions/task/task-delete.fish index 1a6425f..40d4c4b 100644 --- a/dot_config/fish/functions/task/task-delete.fish +++ b/dot_config/fish/functions/task/task-delete.fish @@ -1,5 +1,4 @@ function task-delete task $argv[1] delete - and task sync and task end diff --git a/dot_config/fish/functions/task/task-done.fish b/dot_config/fish/functions/task/task-done.fish index a9f9923..740c01b 100644 --- a/dot_config/fish/functions/task/task-done.fish +++ b/dot_config/fish/functions/task/task-done.fish @@ -1,5 +1,4 @@ function task-done task $argv[1] done - and task sync and task end diff --git a/dot_config/fish/functions/task/task-due-rm.fish b/dot_config/fish/functions/task/task-due-rm.fish new file mode 100644 index 0000000..88a5e01 --- /dev/null +++ b/dot_config/fish/functions/task/task-due-rm.fish @@ -0,0 +1,4 @@ +function task-due-rm + task $argv[1] mod due: + and task +end diff --git a/dot_config/fish/functions/task/task-due.fish b/dot_config/fish/functions/task/task-due.fish new file mode 100644 index 0000000..437b42a --- /dev/null +++ b/dot_config/fish/functions/task/task-due.fish @@ -0,0 +1,4 @@ +function task-due + task $argv[1] mod due:+$argv[2] + and task +end diff --git a/dot_config/fish/functions/task/task-mod-pri.fish b/dot_config/fish/functions/task/task-mod-pri.fish index 03658d0..67951c2 100644 --- a/dot_config/fish/functions/task/task-mod-pri.fish +++ b/dot_config/fish/functions/task/task-mod-pri.fish @@ -1,4 +1,4 @@ function task-mod-pri - task $argv[1] modify pri:$argv[2] + task $argv[2] modify pri:$argv[1] and task end diff --git a/dot_config/fish/functions/task/task-next-rm.fish b/dot_config/fish/functions/task/task-next-rm.fish new file mode 100644 index 0000000..d0e98e3 --- /dev/null +++ b/dot_config/fish/functions/task/task-next-rm.fish @@ -0,0 +1,4 @@ +function task-next-rm + task $argv[1] modify -next + and task +end diff --git a/dot_config/fish/functions/task/task-wait.fish b/dot_config/fish/functions/task/task-wait.fish new file mode 100644 index 0000000..203cc46 --- /dev/null +++ b/dot_config/fish/functions/task/task-wait.fish @@ -0,0 +1,4 @@ +function task-wait + task $argv[1] mod wait:+$argv[2] + and task +end diff --git a/dot_config/fish/functions/us-to-cad.fish b/dot_config/fish/functions/us-to-cad.fish new file mode 100644 index 0000000..1b1c7d8 --- /dev/null +++ b/dot_config/fish/functions/us-to-cad.fish @@ -0,0 +1,4 @@ +function us-to-cad + # qalc -e "$argv[1]\$ to CAD" + qalc "$argv[1]\$ to CAD" +end diff --git a/dot_config/fish/functions/vpn-red-hat.fish b/dot_config/fish/functions/vpn-red-hat.fish new file mode 100644 index 0000000..b45a5bb --- /dev/null +++ b/dot_config/fish/functions/vpn-red-hat.fish @@ -0,0 +1,10 @@ +function vpn-red-hat + if test $argv[1] = 'up' + sudo systemctl start NetworkManager.service + and sleep 3 + and nmcli con up id "1 - Red Hat Global VPN" --ask + else if test $argv[1] = 'down' + nmcli con down id "1 - Red Hat Global VPN" + and sudo systemctl stop NetworkManager.service + end +end diff --git a/dot_config/fish/functions/watson-add-fortnite.fish b/dot_config/fish/functions/watson-add-fortnite.fish new file mode 100644 index 0000000..4dd4451 --- /dev/null +++ b/dot_config/fish/functions/watson-add-fortnite.fish @@ -0,0 +1,11 @@ +function watson-add-fortnite + set year_month "2020-08" + set start_time "$year_month-$argv[1] $argv[2]" + set end_time "$year_month-$argv[3] $argv[4]" + + if test (count $argv) -eq 4 + watson add -f $start_time -t $end_time fun +fortnite + else + watson add -f $start_time -t $end_time fun +fortnite +$argv[5] + end +end diff --git a/dot_config/fish/functions/watson-add-game.fish b/dot_config/fish/functions/watson-add-game.fish new file mode 100644 index 0000000..c6d4648 --- /dev/null +++ b/dot_config/fish/functions/watson-add-game.fish @@ -0,0 +1,11 @@ +function watson-add-game + set year_month (date -u +"%Y-%m") + set start_time "$year_month-$argv[2] $argv[3]" + set end_time "$year_month-$argv[4] $argv[5]" + + if test (count $argv) -eq 5 + watson add -f $start_time -t $end_time fun +$argv[1] + else + watson add -f $start_time -t $end_time fun +$argv[1] +$argv[6] + end +end diff --git a/dot_config/i3/config.tmpl b/dot_config/i3/config.tmpl index 5562435..93c4e43 100755 --- a/dot_config/i3/config.tmpl +++ b/dot_config/i3/config.tmpl @@ -1,20 +1,29 @@ # startup [[[ # -set $term urxvt -set $term_alt st +set $term kitty # set $term st # set $term_alt urxvt {{ if eq .chezmoi.hostname "x1-carbon" }} +# set $term urxvt +# set $term_alt kitty +# set $term_alt st +set $term_alt urxvt exec dunst exec compton exec imwheel exec numlockx on exec xbacklight -set 10 # exec wal -i "$(/home/kevin/scripts/shuffler \"/home/kevin/Pictures/Backgrounds/dim/non-editing\")" -exec wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") +exec wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/editing") {{ end }} -# exec --no-startup-id i3-msg 'workspace $ws2; exec $term' +# exec xrdb ~/.Xresources && grep wallpaper ~/.cache/wal/colors.sh | cut -d\' -f2 | xargs wal -i > /dev/null +# exec --no-startup-id i3-msg 'workspace $ws1; exec $term' +# exec --no-startup-id i3-msg 'workspace $ws2; exec $term -e fish -c "tmux-attach fortnite"' exec --no-startup-id i3-msg 'workspace $ws3; exec $browser' +# exec --no-startup-id i3-msg 'workspace $ws5; exec $term -e twitchy' +exec --no-startup-id i3-msg 'workspace $ws5; exec firefox -P nft' +exec --no-startup-id i3-msg workspace $ws6; exec discord +# exec --no-startup-id i3-msg workspace $ws1; exec $term -e fish -c 'tmux-attach school' # ]]] startup # @@ -22,7 +31,9 @@ exec --no-startup-id i3-msg 'workspace $ws3; exec $browser' set $mod Mod1 set $browser "firefox" +set $browser_secondary "chromium" # set $browser "chromium" +# set $browser_secondary "firefox" set $scripts_path "/home/kevin/scripts" set $sch_dir "$HOME/Documents/School" @@ -43,47 +54,72 @@ bindsym Mod4+Return exec /home/kevin/scripts/dmenu-history -nb "$fg" -nf "$bg" - # installed. # bindsym $mod+d exec --no-startup-id i3-dmenu-desktop # bindsym Mod4+b layout tabbed; exec zathura -bindsym Mod4+c exec $browser +# bindsym Mod4+c exec $browser +# bindsym Mod4+$mod+c exec chatterino +bindsym Mod4+c exec chatterino +bindsym Mod4+$mod+c exec $browser # bindsym Mod4+e exec notify-send "HPS Word Count" "$(pdftotext /home/kevin/school/latex-notes/hps/essay.pdf - | wc -w)" # bindsym Mod4+e exec emacs -bindsym Mod4+e exec ~/scripts/twem -bindsym Mod4+f exec firefox +# bindsym Mod4+e exec ~/scripts/twem +# bindsym Mod4+f exec firefox +# bindsym Mod4+f exec firefox --private-window +# bindsym Mod4+f exec firefox --private-window google.ca # bindsym Mod4+$mod+f exec printf 'Kevin@fosstodon.org' | xclip -selection clipboard +# bindsym Mod4+h exec sleep .2 && xdotool type '.hint' +# bindsym Mod4+$mod+h exec $type_delay_cmd && xdotool type 'kevin.mok@live.ca' bindsym Mod4+h exec $type_delay_cmd && xdotool type 'kevin.mok@live.ca' +# bindsym Mod4+$mod+h exec sleep .2 && xdotool type '.hint' +bindsym Mod4+$mod+i exec sleep .2 && xdotool type '.info latest' +bindsym Mod4+l exec ~/scripts/dmenu-twitch # bindsym Mod4+m exec $term -e ~/scripts/vim-man +bindsym Mod4+m exec $type_delay_cmd && xdotool type 'me@kevin-mok.com' # bindsym Mod4+$mod+m exec pass -c uoft/markus bindsym Mod4+n exec $term -e nvim +# bindsym Mod4+$mod+o exec xset dpms force off bindsym Mod4+o exec xclip -selection clipboard ~/.password-store/social/gmail && $type_delay_cmd && xdotool key 'Control_L+v' -# bindsym Mod4+o exec $type_delay_cmd && xdotool key 'Control_L+v' -bindsym Mod4+$mod+o exec xset dpms force off +bindsym $mod+Mod4+o workspace $ws11; exec obs # bindsym Mod4+p workspace $ws4; exec pgadmin3 # bindsym Mod4+p exec pycharm -bindsym Mod4+p exec $type_delay_cmd && xdotool type '.catch ' -bindsym Mod4+$mod+p exec passmenu +bindsym Mod4+p exec passmenu +# # bindsym Mod4+p exec sleep .2 && xdotool type '.catch ' # bindsym Mod4+$mod+p exec notify-send "ping" "$(ping -c 3 -W 1 8.8.8.8)" -bindsym Mod4+q exec qdirstat -bindsym Mod4+r exec $term -e ranger -bindsym Mod4+$mod+r exec notify-send "watson restart" "$(watson restart)" +# bindsym Mod4+q exec qdirstat +bindsym Mod4+q exec printf 'emad1 ' | xclip -selection clipboard && $type_delay_cmd && xdotool key 'Control_L+v' +bindsym Mod4+r exec $type_delay_cmd && xdotool type 'kmok@redhat.com' +bindsym Mod4+$mod+r exec pass show -c career/redhat && $type_delay_cmd && xdotool key 'Control_L+v' +# bindsym Mod4+$mod+r exec $term -e ranger +# bindsym Mod4+$mod+r exec notify-send "watson restart" "$(watson restart)" bindsym Mod4+$mod+s exec $type_delay_cmd && xdotool type 'https://smol.gq/' bindsym Mod4+$mod+t exec xclip -selection clipboard ~/.password-store/social/trapbot && $type_delay_cmd && xdotool key 'Control_L+v' -# bindsym Mod4+u exec printf 'kevin.mok@mail.utoronto.ca' | xclip -selection clipboard bindsym Mod4+u exec $type_delay_cmd && xdotool type 'kevin.mok@mail.utoronto.ca' # bindsym Mod4+$mod+u exec pass -c uoft/acorn -bindsym Mod4+w exec notify-send "watson status" "$(watson status)" -bindsym Mod4+$mod+w exec notify-send "watson stop" "$(watson status && watson stop)" +# bindsym Mod4+w exec notify-send "watson status" "$(watson status)" +# bindsym Mod4+$mod+w exec notify-send "watson stop" "$(watson status && watson stop)" bindsym Control+Mod4+w exec $term -e nvim /home/kevin/.config/watson/state.tmp # bindsym Mod4+x exec $swex +bindsym Control+$mod+x exec $type_delay_cmd && xdotool type 'http://codm.ataraxy.tk/' bindsym Mod4+z exec cliqz +bindsym Pause exec ~/scripts/twem + +# screenshot [[[ # + +set $screenshot_folder "/home/kevin/Pictures/screenshots/desktop/unsorted" +set $scripts_path "/home/kevin/scripts" {{ if .ext_kb }} -bindsym Mod4+x exec ~/scripts/xmodmap-custom -bindsym Print --release exec "scrot -s /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'" -bindsym Control+Print --release exec "scrot -u /tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'" +# bindsym Mod4+x exec ~/scripts/xmodmap-custom +bindsym Mod4+x exec notify-send "xmodmap" "$(~/scripts/xmodmap-custom)" +# bindsym Mod4+e exec notify-send "HPS Word Count" "$(pdftotext /home/kevin/school/latex-notes/hps/essay.pdf - | wc -w)" +# bindsym Print --release exec "scrot -s $screenshot_folder/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'" +bindsym Print --release exec "maim -su | tee ~/Pictures/screenshots/desktop/unsorted/screenshot-$(date +%F_%T).png | xclip -selection clipboard -t image/png" +bindsym Control+Print --release exec "scrot -u ~/Pictures/screenshots/desktop/unsorted/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'" {{ else }} bindsym Mod4+x exec xmodmap ~/.Xmodmap-laptop && xset r rate $XSET_DELAY $XSET_RATE bindsym Control+p --release exec "scrot -s ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'" bindsym Control+$mod+p --release exec "scrot -u ~/tmp/screenshot-$(date +%F_%T).png -e 'xclip -selection c -t image/png < $f'" {{ end }} +# ]]] screenshot # + # ]]] app shortcuts # # redshift [[[ # @@ -120,6 +156,7 @@ bindsym Control+$mod+q exec sudo systemctl stop netctl-auto@wlp3s0.service # ]]] backlight # +for_window [class="chatterino"] floating enable for_window [class="Peek"] floating enable for_window [title="Qalculate!"] floating enable @@ -168,7 +205,7 @@ for_window [class="^.*"] border pixel 3 gaps inner 0 gaps outer 0 {{ if eq .chezmoi.hostname "nzxt" }} -border_radius $border_radius +# border_radius $border_radius {{ end }} # other gaps [[[ # @@ -292,38 +329,72 @@ set $secondary "DVI-I-1" set $main "HDMI-0" {{ end }} -workspace $ws1 output $main +# workspace $ws1 output $main +workspace $ws1 output $secondary bindsym $mod+F1 workspace $ws1; exec $term +bindsym Mod4+$mod+F1 workspace $ws1; exec chatterino +# bindsym Control+Shift+F1 workspace $ws1; exec $term -e fish -c 'tmux-attach school' +bindsym Control+Shift+F1 workspace $ws1; exec $term -e fish -c 'tmux-attach nft' set $ws2 "2 " +set $work_laptop_ip "192.168.0.11" workspace $ws2 output $secondary bindsym $mod+F2 workspace $ws2; exec $term +# bindsym Control+Shift+F2 workspace $ws2; exec $term -e mosh kmok@$work_laptop_ip -- tmux a -t nzxt +# bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach fortnite' +bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach nft-2' +# bindsym Control+Shift+F2 workspace $ws2; exec $term -e fish -c 'tmux-attach school-2' +bindsym $mod+Shift+F2 workspace $ws2; exec $term -e mosh kmok@$work_laptop_ip -- tmux a -t nzxt-2 + +# ws3 [[[ # set $ws3 "3 " # set $ws3 "3 " -workspace $ws3 output $main -bindsym $mod+F3 workspace $ws3; exec $browser +# workspace $ws3 output $main +# bindsym $mod+F3 workspace $ws3; exec $browser +# bindsym $mod+F3 exec $browser; move container to workspace $ws3; workspace $ws3 +bindsym $mod+F3 exec $browser +bindsym Control+Shift+F3 workspace $ws3; exec firefox -P work +# bindsym Mod4+$mod+F3 workspace $ws3; exec $browser_secondary +bindsym Mod4+$mod+F3 workspace $ws3; exec firefox -P default +# bindsym Mod4+$mod+F3 workspace $ws3; exec firefox -P work # bindsym Mod4+b workspace $ws3; layout stacked; exec $term -e fish -c "buku-fzf" # bindsym Mod4+$mod+b workspace $ws3; layout stacked; exec $term -e fish -c "buku-fzf fq" # bindsym Mod4+b layout stacked; exec $term -e fish -c "buku-fzf" # bindsym Mod4+$mod+b layout stacked; exec $term -e fish -c "buku-fzf fq" bindsym Mod4+b layout tabbed; exec $term -e fish -c "buku-fzf" bindsym Mod4+$mod+b layout tabbed; exec $term -e fish -c "buku-fzf fq" +# bindsym Mod4+g workspace $ws3; layout tabbed; exec gimp + +# ]]] ws3 # set $ws4 "4 " workspace $ws4 output $secondary bindsym $mod+F4 workspace $ws4; exec $term +bindsym Mod4+$mod+F4 workspace $ws4; exec urxvt -e ranger $screenshot_folder +bindsym Mod4+e workspace $ws4; exec libreoffice ~/Documents/expenses/investments.ods +bindsym Mod4+g workspace $ws4; layout tabbed; exec gimp + +# ws5 [[[ # set $ws5 "5 " -workspace $ws5 output $secondary +# workspace $ws5 output $secondary assign [class="Steam"] $ws5 bindsym $mod+F5 workspace $ws5; exec $browser +# bindsym $mod+Mod4+F5 workspace $ws5; exec firefox -P work +bindsym $mod+Mod4+F5 workspace $ws5; exec firefox -P nft +# bindsym $mod+Mod4+F5 workspace $ws5; exec firefox --private-window +bindsym Control+Shift+F5 workspace $ws5; exec firefox -P work +bindsym Mod4+f workspace $ws5; exec firefox --private-window google.ca +bindsym $mod+Shift+F5 workspace $ws5; exec chromium # bindsym Mod4+g workspace $ws5; layout stacking; exec $term -e steam -bindsym Mod4+g workspace $ws5; layout tabbed; exec gimp +# bindsym Mod4+g workspace $ws5; layout tabbed; exec gimp # bindsym Mod4+g workspace $ws5; exec mgba-qt -bindsym Mod4+i workspace $ws5; exec idea -bindsym Mod4+m workspace $ws5; layout tabbed; exec $term -e ~/.minetest/minetest/bin/minetest -bindsym Mod4+t workspace $ws5; exec thunderbird +# bindsym Mod4+i workspace $ws5; exec idea +# bindsym Mod4+m workspace $ws5; layout tabbed; exec $term -e ~/.minetest/minetest/bin/minetest +# bindsym Mod4+$mod+t workspace $ws5; exec thunderbird +# bindsym Mod4+$mod+w workspace $ws5; exec $term -e twitchy +# bindsym Mod4+w workspace $ws5; exec $term -e twitchy bindsym Mod4+5 workspace $ws5; exec godot bindsym Mod4+F5 workspace $ws5; exec cd ~/coding/ada-mario && godot -e # for_window [class="Move_mouse_with_head"] floating enable; move absolute position 0 0 @@ -333,18 +404,31 @@ for_window [class="ada-mario"] floating enable # for_window [class="ada-mario"] move absolute position 930 480 for_window [class="ada-mario"] move absolute position 640 0 +# ]]] ws5 # + +# ws6 [[[ # + set $ws6 "6 " workspace $ws6 output $secondary assign [class="Slack"] $ws6 bindsym Mod4+d workspace $ws6; exec discord -# bindsym Mod4+d workspace $ws6; exec riot-desktop -# bindsym Mod4+i workspace $ws6; exec firefox -new-window https://riot.im/app/#/home +bindsym Mod4+$mod+d workspace $ws6; exec element-desktop +# bindsym Mod4+d workspace $ws6; exec firefox -new-window https://riot.im/app bindsym Mod4+k workspace $ws6; exec slack +# bindsym Mod4+i workspace $ws6; exec $term -e fish -c 'mosh kmok@$work_laptop_ip -- tmux a -t weechat' +bindsym Mod4+i workspace $ws6; exec $term -e fish -c 'mosh kmok@$work_laptop_ip -- tmux a -t weechat' +# bindsym Mod4+i workspace $ws6; exec $term -e fish -c 'tmux-attach weechat' + +# ]]] ws6 # set $ws7 "7 " workspace $ws7 output $secondary # bindsym $mod+F7 workspace $ws7; exec $term -bindsym $mod+F7 workspace $ws7; exec $term -e mosh --ssh='ssh -p 399' kevin@165.22.239.234 tmux a +# bindsym $mod+F7 workspace $ws7; exec $term -e mosh kmok@$work_laptop_ip -- tmux a -t nzxt +bindsym $mod+F7 workspace $ws7; exec $term +bindsym Mod4+$mod+F7 workspace $ws7; exec $term -e mosh --ssh='ssh -p 399' kevin@165.22.239.234 tmux a +bindsym $mod+Shift+F7 workspace $ws7; exec chromium https://txstreet.com/v/eth +bindsym Mod4+a workspace $ws7; exec android-file-transfer # bindsym Mod4+v workspace $ws7; exec VBoxManage startvm "369-a1" set $ws8 "8 " @@ -353,6 +437,8 @@ workspace $ws8 output $secondary # bindsym $mod+F8 workspace $ws8; exec $term # bindsym $mod+F8 workspace $ws8; exec $term -e tmux a -t journal bindsym $mod+F8 workspace $ws8; exec $term -e fish -c 'tmux-attach journal' +bindsym Mod4+$mod+F8 workspace $ws8; exec libreoffice ~/Documents/sit-stand/sit-stand.ods +bindsym $mod+Shift+F8 workspace $ws8; exec libreoffice ~/Documents/red-hat/workday.ods set $ws9 "9 " workspace $ws9 output $secondary @@ -367,17 +453,20 @@ workspace $ws10 output $secondary set $hp 2 # bindsym Mod4+v workspace $ws10; exec $term -e alsamixer -c 0 bindsym Mod4+v workspace $ws10; exec $term -e alsamixer -c 1 -bindsym Mod4+$mod+c workspace $ws10; exec $term -e cava +# bindsym Mod4+$mod+c workspace $ws10; exec $term -e cava # bindsym Mod4+h workspace $ws10; exec $term -e alsamixer -c $hp -bindsym Mod4+s workspace $ws10; exec spotify +bindsym Mod4+s workspace $ws10; exec ~/scripts/spotify-clean set $ws11 "11 " # set $ws11 "11 📊" # assign [class="Summoners War Exporter"] $ws11 workspace $ws11 output $secondary -bindsym $mod+F11 workspace $ws11; exec $term -e htop -s PERCENT_CPU +# bindsym $mod+F11 workspace $ws11; exec $term -e htop -s PERCENT_CPU +bindsym $mod+F11 workspace $ws11; exec $term -e htop -s PERCENT_MEM +bindsym Mod4+$mod+F11 workspace $ws11; exec $term -e fish -c 'tmux-attach obs' +bindsym Mod4+t workspace $ws11; exec nordvpn connect && transmission-gtk # bindsym $mod+F11 workspace $ws11; exec $term -e gotop -m -bindsym Mod4+a workspace $ws11; exec antimicro +# bindsym Mod4+a workspace $ws11; exec antimicro set $ws12 "12 " bindsym $mod+F12 workspace $ws12; exec $term diff --git a/dot_config/i3blocks/i3blocks-secondary.conf.tmpl b/dot_config/i3blocks/i3blocks-secondary.conf.tmpl index 5297035..d20cabe 100755 --- a/dot_config/i3blocks/i3blocks-secondary.conf.tmpl +++ b/dot_config/i3blocks/i3blocks-secondary.conf.tmpl @@ -11,17 +11,48 @@ markup=pango color=#cbe4ff # ]]] Global properties # +# [ticker] +# label=$ +# TICKER=GME +# interval=30 +# # interval=10 + +# sys.monitoring [[[ # + +{{ if eq .chezmoi.hostname "nzxt" }} +[temperature] +label= +interval=5 + +[cpu_usage] +label= +interval=5 + +[memory] +label= +# color=#3da061 +interval=5 +{{ end }} + +# ]]] sys.monitoring # + # volume/spotify [[[ # +# [spotify] +# # command=python ~/linux-config/configs/i3blocks-scripts/spotify.py +# # label= +# label= +# # label=🎧 +# # green +# # color=#198c19 +# # aqua +# # color=#2d7272 +# interval=5 + [spotify] -# command=python ~/linux-config/configs/i3blocks-scripts/spotify.py -# label= label= -# label=🎧 -# green -# color=#198c19 -# aqua -# color=#2d7272 +LONG_NAME= +SHORT_NAME= interval=5 [volume] @@ -36,13 +67,14 @@ interval=60 [calendar] interval=30 label= -{{ if eq .chezmoi.hostname "nzxt" }} -DATEFMT=+%H:%M.%a-%m-%d -{{ else }} +# {{ if eq .chezmoi.hostname "nzxt" }} +# DATEFMT=+%H:%M.%a-%m-%d +# {{ else }} +# DATEFMT=+%H:%M +# {{ end }} DATEFMT=+%H:%M -{{ end }} # SHORTFMT=+%H:%M:%S -# SHORTFMT=+%H:%M.%a-%m-%d +SHORTFMT=+%H:%M.%a-%m-%d HEIGHT=180 WIDTH=220 @@ -53,7 +85,7 @@ WIDTH=220 label= interval=5 -[name] -label= -interval=30 +# [name] +# label= +# interval=30 {{ end }} diff --git a/dot_config/i3blocks/i3blocks.conf.tmpl b/dot_config/i3blocks/i3blocks.conf.tmpl index f309bba..dabb3df 100755 --- a/dot_config/i3blocks/i3blocks.conf.tmpl +++ b/dot_config/i3blocks/i3blocks.conf.tmpl @@ -13,6 +13,25 @@ color=#cbe4ff # ]]] global # +# ticker [[[ # + +# [ticker] +# label=BTC  +# TICKER=BTC-USD +# interval=30 + +[ticker] +label=ETH  +TICKER=ETH-USD +interval=30 + +# [ticker] +# label=DAQ  +# TICKER=^IXIC +# interval=30 + +# ]]] ticker # + # volume/spotify [[[ # {{ if eq .chezmoi.hostname "nzxt" }} @@ -21,10 +40,21 @@ interval=once signal=1 interval=60 +# [spotify] +# label= +# LONG_NAME= +# SHORT_NAME= +# interval=5 + [spotify] +# command=python ~/linux-config/configs/i3blocks-scripts/spotify.py +# label= label= -LONG_NAME= -SHORT_NAME= +# label=🎧 +# green +# color=#198c19 +# aqua +# color=#2d7272 interval=5 {{ end }} @@ -47,6 +77,13 @@ label= interval=5 {{ end }} +# {{ if eq .chezmoi.hostname "nzxt" }} +# [wifi] +# label= +# instance=wlp4s0 +# interval=10 +# {{ end }} + # ]]] laptop # # time [[[ # @@ -54,11 +91,12 @@ interval=5 [calendar] interval=30 label= -{{ if eq .chezmoi.hostname "nzxt" }} -DATEFMT=+%H:%M -{{ else }} +# {{ if eq .chezmoi.hostname "nzxt" }} +# DATEFMT=+%H:%M +# {{ else }} +# DATEFMT=+%H:%M.%a-%m-%d +# {{ end }} DATEFMT=+%H:%M.%a-%m-%d -{{ end }} # SHORTFMT=+%H:%M:%S HEIGHT=180 WIDTH=220 @@ -68,31 +106,18 @@ WIDTH=220 # sys.monitoring [[[ # {{ if eq .chezmoi.hostname "nzxt" }} -# [wifi] -# label= -# instance=wlp4s0 -# interval=10 - -[temperature] -label= -interval=5 - -# unbold this? -# [load_average] -# label= +# [temperature] +# label= # interval=5 -# color=#990000 -{{ end }} -[cpu_usage] -label= -interval=5 +# [cpu_usage] +# label= +# interval=5 -{{ if eq .chezmoi.hostname "nzxt" }} -[memory] -label= -# color=#3da061 -interval=5 +# [memory] +# label= +# # color=#3da061 +# interval=5 # ]]] sys.monitoring # diff --git a/dot_config/i3blocks/scripts/executable_ticker b/dot_config/i3blocks/scripts/executable_ticker new file mode 100755 index 0000000..b5fb3c4 --- /dev/null +++ b/dot_config/i3blocks/scripts/executable_ticker @@ -0,0 +1,5 @@ +#!/bin/bash + +. "/home/kevin/.cache/wal/colors.sh" +ticker=$(~/scripts/ticker $TICKER) +printf "%s\n\n%s\n" "$ticker" "$color7" diff --git a/dot_config/i3blocks/scripts/executable_volume b/dot_config/i3blocks/scripts/executable_volume index 2f8c00e..a2c3ed0 100755 --- a/dot_config/i3blocks/scripts/executable_volume +++ b/dot_config/i3blocks/scripts/executable_volume @@ -32,7 +32,9 @@ SCONTROL=${SCONTROL:-""} # }}} default vars # -AUDIO_DELTA=${AUDIO_DELTA:-5} +AUDIO_DELTA=${AUDIO_DELTA:-3} +# AUDIO_DELTA=${AUDIO_DELTA:-2} +# AUDIO_DELTA=${AUDIO_DELTA:-1} # LONG_FORMAT=${LONG_FORMAT:-'${SYMB} ${VOL}% [${INDEX}:${NAME}]'} LONG_FORMAT=${SHORT_FORMAT:-'${SINK_SYMB} ${VOL}%'} diff --git a/dot_config/i3blocks/scripts/executable_wifi b/dot_config/i3blocks/scripts/executable_wifi index 85d3aee..5b02f5d 100755 --- a/dot_config/i3blocks/scripts/executable_wifi +++ b/dot_config/i3blocks/scripts/executable_wifi @@ -18,7 +18,6 @@ INTERFACE="${BLOCK_INSTANCE:-wlan0}" # echo $INTERFACE -# INTERFACE="${INSTANCE}" #------------------------------------------------------------------------ @@ -29,7 +28,7 @@ INTERFACE="${BLOCK_INSTANCE:-wlan0}" #------------------------------------------------------------------------ -QUALITY=$(grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }') +QUALITY=$(sudo grep $INTERFACE /proc/net/wireless | awk '{ print int($3 * 100 / 70) }') # echo $QUALITY W_inter=$(ip link | grep "[1-9]: wlp" | cut -d " " -f2 | tr -d ':') W_name=$(nmcli d | grep "$W_inter" | awk '{print $4}') diff --git a/dot_config/kitty/kitty.conf b/dot_config/kitty/kitty.conf new file mode 100644 index 0000000..c6fc4f8 --- /dev/null +++ b/dot_config/kitty/kitty.conf @@ -0,0 +1,14 @@ +include ~/.cache/wal/colors-kitty.conf +# background_opacity .7 +# background_opacity .8 +# background_opacity .85 +background_opacity .9 +clipboard_control write-clipboard write-primary +enable_audio_bell no + +# font +cursor_blink_interval 0 +# font_size 12.5 +font_size 12 +map ctrl+alt+up change_font_size all +1.0 +map ctrl+alt+down change_font_size all -1.0 diff --git a/dot_config/mimeapps-ffox.list b/dot_config/mimeapps-ffox.list new file mode 100644 index 0000000..866a74b --- /dev/null +++ b/dot_config/mimeapps-ffox.list @@ -0,0 +1,33 @@ +[Default Applications] +text/html=firefox.desktop +x-scheme-handler/http=firefox.desktop +x-scheme-handler/https=firefox.desktop +x-scheme-handler/about=chromium.desktop +x-scheme-handler/unknown=chromium.desktop +x-scheme-handler/ftp=firefox.desktop +x-scheme-handler/chrome=firefox.desktop +application/x-extension-htm=firefox.desktop +application/x-extension-html=firefox.desktop +application/x-extension-shtml=firefox.desktop +application/xhtml+xml=firefox.desktop +application/x-extension-xhtml=firefox.desktop +application/x-extension-xht=firefox.desktop +x-scheme-handler/mailto=userapp-Thunderbird-DQE3YZ.desktop +message/rfc822=userapp-Thunderbird-DQE3YZ.desktop +image/jpeg=sxiv.desktop +image/png=sxiv.desktop +x-scheme-handler/discord-409416265891971072=discord-409416265891971072.desktop + +[Added Associations] +x-scheme-handler/http=firefox.desktop; +x-scheme-handler/https=firefox.desktop; +text/html=firefox.desktop; +application/pdf=org.gnome.Evince.desktop;org.pwmt.zathura-pdf-mupdf.desktop; +text/plain=nvim.desktop; +x-scheme-handler/mailto=userapp-Thunderbird-DQE3YZ.desktop; +message/rfc822=userapp-Thunderbird-DQE3YZ.desktop; +text/x-python=nvim.desktop;gvim.desktop; +application/json=firefox.desktop; +image/jpeg=gimp.desktop;imv.desktop; +text/markdown=nvim.desktop; +image/png=imv.desktop; diff --git a/dot_config/mimeapps.list b/dot_config/mimeapps.list new file mode 100644 index 0000000..4a5ebd1 --- /dev/null +++ b/dot_config/mimeapps.list @@ -0,0 +1,34 @@ +[Default Applications] +text/html=firefox.desktop +x-scheme-handler/http=firefox.desktop +x-scheme-handler/https=firefox.desktop +x-scheme-handler/about=firefox.desktop +x-scheme-handler/unknown=firefox.desktop +x-scheme-handler/ftp=firefox.desktop +x-scheme-handler/chrome=firefox.desktop +application/x-extension-htm=firefox.desktop +application/x-extension-html=firefox.desktop +application/x-extension-shtml=firefox.desktop +application/xhtml+xml=firefox.desktop +application/x-extension-xhtml=firefox.desktop +application/x-extension-xht=firefox.desktop +x-scheme-handler/mailto=userapp-Thunderbird-DQE3YZ.desktop +message/rfc822=userapp-Thunderbird-DQE3YZ.desktop +image/jpeg=sxiv.desktop +image/png=sxiv.desktop +x-scheme-handler/discord-409416265891971072=discord-409416265891971072.desktop +x-scheme-handler/eclipse+command=_usr_lib_dbeaver_.desktop + +[Added Associations] +x-scheme-handler/http=firefox.desktop; +x-scheme-handler/https=firefox.desktop; +text/html=firefox.desktop; +application/pdf=org.gnome.Evince.desktop;org.pwmt.zathura-pdf-mupdf.desktop; +text/plain=nvim.desktop; +x-scheme-handler/mailto=userapp-Thunderbird-DQE3YZ.desktop; +message/rfc822=userapp-Thunderbird-DQE3YZ.desktop; +text/x-python=nvim.desktop;gvim.desktop; +application/json=firefox.desktop; +image/jpeg=gimp.desktop;imv.desktop; +text/markdown=nvim.desktop; +image/png=imv.desktop; diff --git a/dot_config/mpv/input.conf b/dot_config/mpv/input.conf index 46ec7cb..93f37ac 100755 --- a/dot_config/mpv/input.conf +++ b/dot_config/mpv/input.conf @@ -1,17 +1,20 @@ # volume -WHEEL_UP add volume 1 -WHEEL_DOWN add volume -1 +WHEEL_UP add volume 5 +WHEEL_DOWN add volume -5 +v cycle mute # speed r set speed 1.0 g set speed 1.6 h set speed 2.4 -s add speed -.2 -d add speed .2 +w add speed -.2 +e add speed .2 # seek -Shift+RIGHT seek 1 -Shift+LEFT seek -1 +Ctrl+RIGHT no-osd seek 0.2 exact +Ctrl+LEFT no-osd seek -0.2 exact +Shift+RIGHT no-osd seek 1 exact +Shift+LEFT no-osd seek -1 exact RIGHT seek 3 LEFT seek -3 UP seek 10 @@ -24,5 +27,7 @@ m revert-seek mark # mark position for revert-seek Shift+m revert-seek # subtitle delay -z add sub-delay +0.25 -Z add sub-delay -0.25 +# z add sub-delay +0.25 +# Z add sub-delay -0.25 +u add sub-delay -0.25 +i add sub-delay +0.25 diff --git a/dot_config/mpv/mpv.conf b/dot_config/mpv/mpv.conf index dc1f891..981fc28 100644 --- a/dot_config/mpv/mpv.conf +++ b/dot_config/mpv/mpv.conf @@ -1,3 +1,5 @@ sub-auto=fuzzy +# volume=25 +# volume=75 ytdl-format=best ytdl-raw-options=sub-format=en,write-srt= diff --git a/dot_config/picom/picom.conf b/dot_config/picom/picom.conf new file mode 100644 index 0000000..1c879db --- /dev/null +++ b/dot_config/picom/picom.conf @@ -0,0 +1,423 @@ +# shadows {{{ # + +# Enabled client-side shadows on windows. Note desktop windows +# (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow, +# unless explicitly requested using the wintypes option. +# +# shadow = false +shadow = true; + +# The blur radius for shadows, in pixels. (defaults to 12) +# shadow-radius = 12 +shadow-radius = 7; + +# The opacity of shadows. (0.0 - 1.0, defaults to 0.75) +# shadow-opacity = .75 + +# The left offset for shadows, in pixels. (defaults to -15) +# shadow-offset-x = -15 +shadow-offset-x = -7; + +# The top offset for shadows, in pixels. (defaults to -15) +# shadow-offset-y = -15 +shadow-offset-y = -7; + +# Avoid drawing shadows on dock/panel windows. This option is deprecated, +# you should use the *wintypes* option in your config file instead. +# +# no-dock-shadow = false + +# Don't draw shadows on drag-and-drop windows. This option is deprecated, +# you should use the *wintypes* option in your config file instead. +# +# no-dnd-shadow = false + +# Red color value of shadow (0.0 - 1.0, defaults to 0). +# shadow-red = 0 + +# Green color value of shadow (0.0 - 1.0, defaults to 0). +# shadow-green = 0 + +# Blue color value of shadow (0.0 - 1.0, defaults to 0). +# shadow-blue = 0 + +# Do not paint shadows on shaped windows. Note shaped windows +# here means windows setting its shape through X Shape extension. +# Those using ARGB background is beyond our control. +# Deprecated, use +# shadow-exclude = 'bounding_shaped' +# or +# shadow-exclude = 'bounding_shaped && !rounded_corners' +# instead. +# +# shadow-ignore-shaped = '' + +# Specify a list of conditions of windows that should have no shadow. +# +# examples: +# shadow-exclude = "n:e:Notification"; +# +# shadow-exclude = [] +shadow-exclude = [ + "name = 'Notification'", + "class_g = 'Conky'", + "class_g ?= 'Notify-osd'", + "class_g = 'Cairo-clock'", + "_GTK_FRAME_EXTENTS@:c" +]; + +# Specify a X geometry that describes the region in which shadow should not +# be painted in, such as a dock window region. Use +# shadow-exclude-reg = "x10+0+0" +# for example, if the 10 pixels on the bottom of the screen should not have shadows painted on. +# +# shadow-exclude-reg = "" + +# Crop shadow of a window fully on a particular Xinerama screen to the screen. +# xinerama-shadow-crop = false + +# }}} shadows # + +# fading {{{ # + + +# Fade windows in/out when opening/closing and when opacity changes, +# unless no-fading-openclose is used. +fading = false +# fading = true + +# Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028) +# fade-in-step = 0.028 +fade-in-step = 0.03; + +# Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03) +# fade-out-step = 0.03 +fade-out-step = 0.03; + +# The time between steps in fade step, in milliseconds. (> 0, defaults to 10) +# fade-delta = 10 + +# Specify a list of conditions of windows that should not be faded. +# fade-exclude = [] + +# Do not fade on window open/close. +# no-fading-openclose = true + +# Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc. +# no-fading-destroyed-argb = false + +# }}} fading # + +# transparency/opacity {{{ # + +# Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0) +inactive-opacity = 1 +# inactive-opacity = 0.9; + +# Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default) +# frame-opacity = 1.0 +frame-opacity = 0.7; + +# Default opacity for dropdown menus and popup menus. (0.0 - 1.0, defaults to 1.0) +# menu-opacity = 1.0 + +# Let inactive opacity set by -i override the '_NET_WM_OPACITY' values of windows. +# inactive-opacity-override = true +inactive-opacity-override = false; + +# Default opacity for active windows. (0.0 - 1.0, defaults to 1.0) +# active-opacity = 1.0 + +# Dim inactive windows. (0.0 - 1.0, defaults to 0.0) +# inactive-dim = 0.0 + +# Specify a list of conditions of windows that should always be considered focused. +# focus-exclude = [] +focus-exclude = [ "class_g = 'Cairo-clock'" ]; + +# Use fixed inactive dim value, instead of adjusting according to window opacity. +# inactive-dim-fixed = 1.0 + +# Specify a list of opacity rules, in the format `PERCENT:PATTERN`, +# like `50:name *= "Firefox"`. picom-trans is recommended over this. +# Note we don't make any guarantee about possible conflicts with other +# programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows. +# example: +# opacity-rule = [ "80:class_g = 'URxvt'" ]; +# +# opacity-rule = [] + +# }}} transparency/opacity # + +# bg blurring {{{ # + +# Parameters for background blurring, see the *BLUR* section for more information. +# blur-method = +# blur-size = 12 +# +# blur-deviation = false + +# Blur background of semi-transparent / ARGB windows. +# Bad in performance, with driver-dependent behavior. +# The name of the switch may change without prior notifications. +# +# blur-background = false + +# Blur background of windows when the window frame is not opaque. +# Implies: +# blur-background +# Bad in performance, with driver-dependent behavior. The name may change. +# +# blur-background-frame = false + + +# Use fixed blur strength rather than adjusting according to window opacity. +# blur-background-fixed = false + + +# Specify the blur convolution kernel, with the following format: +# example: +# blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"; +# +# blur-kern = '' +blur-kern = "3x3box"; + + +# Exclude conditions for background blur. +# blur-background-exclude = [] +blur-background-exclude = [ + "window_type = 'dock'", + "window_type = 'desktop'", + "_GTK_FRAME_EXTENTS@:c" +]; + +# }}} bg blurring # + +# general {{{ # + +# Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers. +# daemon = false + +# Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`. +# `xrender` is the default one. +# +# backend = 'glx' +backend = "xrender"; + +# Enable/disable VSync. +# vsync = false +vsync = true + +# Enable remote control via D-Bus. See the *D-BUS API* section below for more details. +# dbus = false + +# Try to detect WM windows (a non-override-redirect window with no +# child that has 'WM_STATE') and mark them as active. +# +# mark-wmwin-focused = false +mark-wmwin-focused = true; + +# Mark override-redirect windows that doesn't have a child window with 'WM_STATE' focused. +# mark-ovredir-focused = false +mark-ovredir-focused = true; + +# Try to detect windows with rounded corners and don't consider them +# shaped windows. The accuracy is not very high, unfortunately. +# +# detect-rounded-corners = false +detect-rounded-corners = true; + +# Detect '_NET_WM_OPACITY' on client windows, useful for window managers +# not passing '_NET_WM_OPACITY' of client windows to frame windows. +# +# detect-client-opacity = false +detect-client-opacity = true; + +# Specify refresh rate of the screen. If not specified or 0, picom will +# try detecting this with X RandR extension. +# +# refresh-rate = 60 +refresh-rate = 0 + +# Limit picom to repaint at most once every 1 / 'refresh_rate' second to +# boost performance. This should not be used with +# vsync drm/opengl/opengl-oml +# as they essentially does sw-opti's job already, +# unless you wish to specify a lower refresh rate than the actual value. +# +# sw-opti = + +# Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window, +# rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy, +# provided that the WM supports it. +# +# use-ewmh-active-win = false + +# Unredirect all windows if a full-screen opaque window is detected, +# to maximize performance for full-screen windows. Known to cause flickering +# when redirecting/unredirecting windows. +# +# unredir-if-possible = false + +# Delay before unredirecting the window, in milliseconds. Defaults to 0. +# unredir-if-possible-delay = 0 + +# Conditions of windows that shouldn't be considered full-screen for unredirecting screen. +# unredir-if-possible-exclude = [] + +# Use 'WM_TRANSIENT_FOR' to group windows, and consider windows +# in the same group focused at the same time. +# +# detect-transient = false +detect-transient = true + +# Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same +# group focused at the same time. 'WM_TRANSIENT_FOR' has higher priority if +# detect-transient is enabled, too. +# +# detect-client-leader = false +detect-client-leader = true + +# Resize damaged region by a specific number of pixels. +# A positive value enlarges it while a negative one shrinks it. +# If the value is positive, those additional pixels will not be actually painted +# to screen, only used in blur calculation, and such. (Due to technical limitations, +# with use-damage, those pixels will still be incorrectly painted to screen.) +# Primarily used to fix the line corruption issues of blur, +# in which case you should use the blur radius value here +# (e.g. with a 3x3 kernel, you should use `--resize-damage 1`, +# with a 5x5 one you use `--resize-damage 2`, and so on). +# May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly. +# +# resize-damage = 1 + +# Specify a list of conditions of windows that should be painted with inverted color. +# Resource-hogging, and is not well tested. +# +# invert-color-include = [] + +# GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer. +# Might cause incorrect opacity when rendering transparent content (but never +# practically happened) and may not work with blur-background. +# My tests show a 15% performance boost. Recommended. +# +# glx-no-stencil = false + +# GLX backend: Avoid rebinding pixmap on window damage. +# Probably could improve performance on rapid window content changes, +# but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.). +# Recommended if it works. +# +# glx-no-rebind-pixmap = false + +# Disable the use of damage information. +# This cause the whole screen to be redrawn everytime, instead of the part of the screen +# has actually changed. Potentially degrades the performance, but might fix some artifacts. +# The opposing option is use-damage +# +# no-use-damage = false +use-damage = true + +# Use X Sync fence to sync clients' draw calls, to make sure all draw +# calls are finished before picom starts drawing. Needed on nvidia-drivers +# with GLX backend for some users. +# +# xrender-sync-fence = false + +# GLX backend: Use specified GLSL fragment shader for rendering window contents. +# See `compton-default-fshader-win.glsl` and `compton-fake-transparency-fshader-win.glsl` +# in the source tree for examples. +# +# glx-fshader-win = '' + +# Force all windows to be painted with blending. Useful if you +# have a glx-fshader-win that could turn opaque pixels transparent. +# +# force-win-blend = false + +# Do not use EWMH to detect fullscreen windows. +# Reverts to checking if a window is fullscreen based only on its size and coordinates. +# +# no-ewmh-fullscreen = false + +# Dimming bright windows so their brightness doesn't exceed this set value. +# Brightness of a window is estimated by averaging all pixels in the window, +# so this could comes with a performance hit. +# Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0) +# +# max-brightness = 1.0 + +# Make transparent windows clip other windows like non-transparent windows do, +# instead of blending on top of them. +# +# transparent-clipping = false + +# Set the log level. Possible values are: +# "trace", "debug", "info", "warn", "error" +# in increasing level of importance. Case doesn't matter. +# If using the "TRACE" log level, it's better to log into a file +# using *--log-file*, since it can generate a huge stream of logs. +# +# log-level = "debug" +log-level = "warn"; + +# Set the log file. +# If *--log-file* is never specified, logs will be written to stderr. +# Otherwise, logs will to written to the given file, though some of the early +# logs might still be written to the stderr. +# When setting this option from the config file, it is recommended to use an absolute path. +# +# log-file = '/path/to/your/log/file' + +# Show all X errors (for debugging) +# show-all-xerrors = false + +# Write process ID to a file. +# write-pid-path = '/path/to/your/log/file' + +# }}} general # + +# window settings {{{ # + +# Window type settings +# +# 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard: +# "unknown", "desktop", "dock", "toolbar", "menu", "utility", +# "splash", "dialog", "normal", "dropdown_menu", "popup_menu", +# "tooltip", "notification", "combo", and "dnd". +# +# Following per window-type options are available: :: +# +# fade, shadow::: +# Controls window-type-specific shadow and fade settings. +# +# opacity::: +# Controls default opacity of the window type. +# +# focus::: +# Controls whether the window of this type is to be always considered focused. +# (By default, all window types except "normal" and "dialog" has this on.) +# +# full-shadow::: +# Controls whether shadow is drawn under the parts of the window that you +# normally won't be able to see. Useful when the window has parts of it +# transparent, and you want shadows in those areas. +# +# redir-ignore::: +# Controls whether this type of windows should cause screen to become +# redirected again after been unredirected. If you have unredir-if-possible +# set, and doesn't want certain window to cause unnecessary screen redirection, +# you can set this to `true`. +# +wintypes: +{ + tooltip = { fade = true; shadow = true; opacity = 0.75; focus = true; full-shadow = false; }; + dock = { shadow = false; } + dnd = { shadow = false; } + # popup_menu = { opacity = 1; } + popup_menu = { opacity = .95; } + # dropdown_menu = { opacity = 1; } + dropdown_menu = { opacity = .9; } +}; + +# }}} window settings # diff --git a/dot_config/ranger/plugins/__init__.py b/dot_config/ranger/plugins/__init__.py deleted file mode 100755 index 8d1c8b6..0000000 --- a/dot_config/ranger/plugins/__init__.py +++ /dev/null @@ -1 +0,0 @@ - diff --git a/dot_config/ranger/rc.conf.tmpl b/dot_config/ranger/rc.conf.tmpl index 9e90a2f..0ab45b7 100755 --- a/dot_config/ranger/rc.conf.tmpl +++ b/dot_config/ranger/rc.conf.tmpl @@ -166,8 +166,9 @@ set autoupdate_cumulative_size false set show_cursor false # One of: size, natural, basename, atime, ctime, mtime, type, random -set sort natural +# set sort natural # set sort extension +set sort mtime # Additional sorting options set sort_reverse false @@ -666,9 +667,10 @@ set preview_images true # * urxvt-full: # The same as urxvt but utilizing not only the preview pane but the # whole terminal window. -set preview_images_method w3m +# set preview_images_method w3m # set preview_images_method ueberzug -# set preview_images_method urxvt +# set preview_images_method kitty +set preview_images_method urxvt # set preview_images_method urxvt-full # ]]] image preview # @@ -681,7 +683,8 @@ map rr source ~/.config/ranger/rc.conf # backgrounds [[[ # -map w shell /usr/bin/wal -i %f && sudo ~/st/make-st.sh +# map w shell /usr/bin/wal -i %f && sudo ~/st/make-st.sh +map w shell /usr/bin/wal -i %f map bde shell mv %f /home/kevin/Pictures/Backgrounds/dim/editing map bdn shell mv %f /home/kevin/Pictures/Backgrounds/dim/non-editing map bbe shell mv %f /home/kevin/Pictures/Backgrounds/bright/editing diff --git a/dot_config/spotify/Users/polarbier-user/prefs.tmpl b/dot_config/spotify/Users/polarbier-user/prefs.tmpl index c8f45f7..c713cff 100644 --- a/dot_config/spotify/Users/polarbier-user/prefs.tmpl +++ b/dot_config/spotify/Users/polarbier-user/prefs.tmpl @@ -1,8 +1,13 @@ -audio.crossfade_v2=true +audio.play_bitrate_non_metered_migrated=true audio.sync_bitrate_enumeration=4 +audio.crossfade_v2=true +gaia.attached_device_id="6ca6cdc7bc677d43534460982c3a13959dd1939c" +audio.play_bitrate_enumeration=4 +ui.hide_hpto=true ui.track_notifications_enabled=false +audio.play_bitrate_non_metered_enumeration=4 +audio.normalize_v2=false ui.show_friend_feed=false -audio.play_bitrate_enumeration=4 app.player.volume=40000 {{ if eq .chezmoi.hostname "x1-carbon" }} app.browser.zoom-level=300 diff --git a/dot_gitconfig.tmpl b/dot_gitconfig.tmpl index 9ae849b..005bc00 100644 --- a/dot_gitconfig.tmpl +++ b/dot_gitconfig.tmpl @@ -1,7 +1,7 @@ [user] - email = kevin.mok@live.ca + email = kevin.mok@mail.utoronto.ca name = Kevin Mok - signingkey = AEA75288DC135CF5 + signingkey = C072BD80DB66DE18 [color] ui = auto [core] @@ -32,3 +32,10 @@ s = status st = stash r = remote +[init] + defaultBranch = main +[filter "lfs"] + clean = git-lfs clean -- %f + smudge = git-lfs smudge -- %f + process = git-lfs filter-process + required = true diff --git a/dot_imwheelrc b/dot_imwheelrc index cc82f29..aafd913 100644 --- a/dot_imwheelrc +++ b/dot_imwheelrc @@ -1,3 +1,5 @@ ".*" -None, Up, Button4, 3 -None, Down, Button5, 3 +/* None, Up, Button4, 3 */ +/* None, Down, Button5, 3 */ +None, Up, Button4, 1 +None, Down, Button5, 1 diff --git a/dot_minikube/config/config.json b/dot_minikube/config/config.json new file mode 100644 index 0000000..fb5faac --- /dev/null +++ b/dot_minikube/config/config.json @@ -0,0 +1,3 @@ +{ + "driver": "docker" +} \ No newline at end of file diff --git a/dot_taskrc b/dot_taskrc index 399316f..b5743b9 100644 --- a/dot_taskrc +++ b/dot_taskrc @@ -15,6 +15,7 @@ # }}} info # data.location=~/.task +# rc.debug=1 # Color theme (uncomment one to use){{{ #include /usr/share/doc/task/rc/light-16.theme @@ -41,34 +42,50 @@ include /usr/share/doc/task/rc/dark-16.theme taskd.certificate=\/home\/kevin\/.task\/do.cert.pem taskd.key=\/home\/kevin\/.task\/do.key.pem taskd.ca=\/home\/kevin\/.task\/ca.cert.pem -taskd.server=taskd.khkm.tk:53589 +taskd.server=taskd.khkm.gq:53589 taskd.credentials=Hevin\/Kevin\/eb6225dc-80fb-4721-8b03-9114c6c4423d -recurrence=no # }}} server # # urgency {{{ # -urgency.user.project.codm.coefficient=-2 +urgency.due.coefficient=18 +urgency.user.project.codm.coefficient=2 +urgency.user.project.crim.coefficient=1 +urgency.user.project.fn.coefficient=5 +urgency.user.project.mny.coefficient=10 urgency.user.project.ms.coefficient=3 -urgency.user.project.pey.coefficient=5 +urgency.user.project.pey.coefficient=10 +urgency.user.project.pogo.coefficient=0 urgency.user.project.sch.coefficient=7 urgency.uda.priority.H.coefficient=10 +urgency.uda.priority.M.coefficient=4 urgency.uda.priority.L.coefficient=-7 urgency.uda.priority..coefficient=1 -urgency.user.tag.nx.coefficient=15 +urgency.user.tag.helm.coefficient=5 +urgency.user.tag.jira.coefficient=5 +# urgency.user.tag.nx.coefficient=15 +urgency.user.tag.nexus.coefficient=3 + +report.ready.sort=urgency- # }}} urgency # # context {{{ # # context.home=project.not:ieas project.not:out project.not:sch tag.not:amn -context.home=project.not:ieas project.not:out tag.not:amn +context.home=project.not:ieas project.not:out +context.ieas=project:ieas +context.not-pey=project.not:pey project.not:sch context.out=project:out +context.mny=project:mny +context.pey=project:pey context.sch=project:sch -context=home +# context=home # context=out # context=sch - +context=mny +# context=pey +# context=not-pey # }}} context # diff --git a/dot_tmux.conf b/dot_tmux.conf index 2646f60..3bbef67 100644 --- a/dot_tmux.conf +++ b/dot_tmux.conf @@ -31,12 +31,12 @@ bind-key -n M-h if-shell "$is_vim" "send-keys M-h" "select-pane -L" bind-key -n M-j if-shell "$is_vim" "send-keys M-j" "select-pane -D" bind-key -n M-k if-shell "$is_vim" "send-keys M-k" "select-pane -U" bind-key -n M-l if-shell "$is_vim" "send-keys M-l" "select-pane -R" -bind-key -n M-\ if-shell "$is_vim" "send-keys M-\\" "select-pane -l" +# bind-key -n M-\ if-shell "$is_vim" "send-keys M-\\" "select-pane -l" bind-key -T copy-mode-vi M-h select-pane -L bind-key -T copy-mode-vi M-j select-pane -D bind-key -T copy-mode-vi M-k select-pane -U bind-key -T copy-mode-vi M-l select-pane -R -bind-key -T copy-mode-vi M-\ select-pane -l +# bind-key -T copy-mode-vi M-\ select-pane -l bind-key -n M-Enter split-window -h # bind-key -n M-v split-window -h @@ -57,8 +57,8 @@ bind-key -n M-a command-prompt "rename-window '%%'" bind-key -n M-p previous-window bind-key -n M-n next-window -bind-key -n C-Left swap-window -t -1 -bind-key -n C-Right swap-window -t +1 +bind-key -n C-Left swap-window -t -1\; previous-window +bind-key -n C-Right swap-window -t +1\; next-window # }}} windows # diff --git a/dot_vimrc.tmpl b/dot_vimrc.tmpl index 5a751f6..7b5e54f 100644 --- a/dot_vimrc.tmpl +++ b/dot_vimrc.tmpl @@ -14,11 +14,12 @@ set expandtab " set foldmethod=indent set foldmethod=marker set hlsearch -set ignorecase +" set ignorecase set linebreak set linespace=5 set mouse=a " set mouse=c +set nofixendofline " set noswapfile set relativenumber set shiftwidth=4 @@ -26,11 +27,11 @@ set smartcase set tabstop=4 " set t_Co=256 " set termguicolors -" set timeoutlen=350 -set timeoutlen=200 -" set tw=80 +set timeoutlen=350 +" set timeoutlen=200 " set tw=75 -set tw=70 +" set tw=70 +set tw=60 set undodir=~/.vim/undo set undofile " set updatetime=1000 @@ -58,15 +59,19 @@ autocmd CursorHold * if !bufexists("[Command Line]") | checktime | endif autocmd BufNewFile,BufRead .* set syntax=sh autocmd BufRead,BufNewFile /tmp/calcurse*,~/.calcurse/notes/* set filetype=markdown -autocmd FileType *css,gitcommit,haskell,htmldjango,html,javascript,json,lisp, - \markdown,racket,tex,text,yaml set ts=2 sw=2 +autocmd FileType *css,gitcommit,haskell,htmldjango,html,graphql,javascript,javascriptreact,json,lisp,markdown, + \racket,tex,text,yaml set tabstop=2 shiftwidth=2 " autocmd BufNewFile,BufRead *.md set filetype=markdown " autocmd Filetype markdown set textwidth=0 " autocmd Filetype html set foldmarker=0 autocmd BufNewFile,BufRead *.gd set expandtab! -autocmd Filetype go set expandtab! sw=4 -autocmd FileType javascript,python,lua set fdm=indent -autocmd Filetype markdown set commentstring= +autocmd Filetype go set noexpandtab sw=4 +" autocmd FileType go,html,java,javascript,python,lua set fdm=indent +" autocmd FileType go,html,java,javascript,javascriptreact,Jenkinsfile,python,lua set fdm=indent +autocmd FileType go,html,java,Jenkinsfile,python,lua set fdm=indent +" autocmd FileType html,javascript,Jenkinsfile,python,lua set fdm=indent +autocmd BufNewFile,BufRead *.gql setfiletype graphql +autocmd Filetype markdown let g:AutoPairs = {'(':')', '[':']', '{':'}','"':'"', "`":"`", '```':'```', '"""':'"""', "'''":"'''", "*":"*"} " autocmd Filetype markdown map :LivedownToggle autocmd Filetype markdown let g:AutoPairs={'(':')', '[':']', '{':'}','"':'"', "`":"`", '```':'```', '"""':'"""', "'''":"'''","*":"*"} autocmd Filetype markdown map :InstantMarkdownPreview @@ -77,6 +82,7 @@ autocmd Filetype markdown inoremap < < >>A autocmd Filetype markdown inoremap >> > +" autocmd Filetype markdown set commentstring= " format options [[[ " " a = auto-format paragraphs @@ -88,16 +94,15 @@ autocmd Filetype markdown inoremap >> > " v = break lines in insert " w = whitespace continues paragraph " ]]] format options " -" autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=cjMqtvw -autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=acjMqtvw -" autocmd FileType tex,text set spell spelllang=en_us formatoptions=acjMqtvw +" autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=acjMqtvw +autocmd FileType markdown,tex,text set spell spelllang=en_us formatoptions=cjMqtvw +autocmd Filetype groovy,Jenkinsfile,taskdata set tw=0 autocmd Filetype json nnoremap j :%!python -m json.tool autocmd Filetype json set foldmethod=marker autocmd Filetype racket set commentstring=;%s; -autocmd Filetype racket let g:AutoPairs={'(':')', '[':']', '{':'}','"':'"', "`":"`", '```':'```', '"""':'"""', "'''":"'''"} +autocmd Filetype racket let g:AutoPairs = {'(':')', '[':']', '{':'}','"':'"', "`":"`", '```':'```', '"""':'"""', "'''":"'''"} autocmd FileType sh map :!clear && shellcheck % -autocmd Filetype taskdata set tw=0 -autocmd FileType tex set updatetime=1000 timeoutlen=300 tw=65 +autocmd FileType tex set updatetime=1000 timeoutlen=300 autocmd FileType tex map :VimtexCompile autocmd VimEnter *.tex VimtexCompile autocmd VimLeave *.tex !tex-clean %:p @@ -132,7 +137,7 @@ autocmd BufNewFile,BufRead key_* map :w:silent !sync-shortcuts " ]]] commands for specific files " -" vim-plug [[[ +" vim-plug [[[ " plug auto-install if empty(glob('~/.vim/autoload/plug.vim')) silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs @@ -172,18 +177,27 @@ Plug 'lervag/vimtex' " au BufWritePost *.tex silent call Tex_RunLaTeX() au BufWritePost *.tex silent !pkill -USR1 xdvi.bin let g:Tex_MultipleCompileFormats = 'dvi,pdf' + " let g:vimtex_view_general_viewer = 'evince' let g:vimtex_view_general_viewer = 'zathura' - let g:vimtex_quickfix_latexlog = { - \ 'overfull' : 0, - \ 'underfull' : 0, - \ 'global' : 0, - \ 'references' : 0, - \ 'unused' : 0, - \} + " let g:vimtex_quickfix_latexlog = { + " \ 'overfull' : 0, + " \ 'underfull' : 0, + " \ 'global' : 0, + " \ 'packages' : { + " \ 'biblatex' : 0, + " \ 'gensymb' : 0, + " \ }, + " \ 'references' : 0, + " \ 'unused' : 0, + " \} + let g:vimtex_quickfix_ignore_filters = [ + \'Overfull', + \] let g:vimtex_quickfix_autoclose_after_keystrokes = 5 - " let g:vimtex_compiler_latexmk = { + let g:vimtex_compiler_latexmk = { + \ 'continuous' : 1, + \} " \ 'continuous' : 0, - " \} {{ if not (eq .chezmoi.username "root") }} " auto-completion for various languages @@ -261,16 +275,19 @@ Plug 'jiangmiao/auto-pairs' Plug 'henrik/vim-indexed-search' Plug 'PotatoesMaster/i3-vim-syntax' " vim file explorer -Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } Plug 'terryma/vim-multiple-cursors' " let g:multi_cursor_select_all_word_key='' let g:multi_cursor_exit_from_visual_mode=0 let g:multi_cursor_exit_from_insert_mode=0 Plug 'dag/vim-fish' " live preview Markdown" -" Plug 'shime/vim-livedown' Plug 'suan/vim-instant-markdown', {'for': 'markdown'} let g:instant_markdown_autostart = 0 + let g:instant_markdown_port = 8888 +" Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install' } + " let g:mkdp_auto_start = 1 + " let g:mkdp_browser = 'firefox' + " let g:mkdp_echo_preview_url = 1 " git helper Plug 'tpope/vim-fugitive' " auto reload file @@ -292,11 +309,11 @@ Plug 'kana/vim-textobj-user' Plug 'rbonvall/vim-textobj-latex' " swap words Plug 'tommcdo/vim-exchange' -Plug 'scrooloose/nerdtree' - let NERDTreeQuitOnOpen=1 - let NERDTreeShowHidden=1 -Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } - Plug 'junegunn/fzf.vim' +" Plug 'scrooloose/nerdtree' + " let NERDTreeQuitOnOpen=1 + " let NERDTreeShowHidden=1 +" Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' } + " Plug 'junegunn/fzf.vim' Plug 'christoomey/vim-tmux-navigator' " mappings [[[ " @@ -322,7 +339,23 @@ Plug 'junegunn/vim-easy-align' " Start interactive EasyAlign for a motion/text object (e.g. gaip) nmap ga (EasyAlign) Plug 'wlangstroth/vim-racket' +Plug 'neovimhaskell/haskell-vim' Plug 'masukomi/vim-markdown-folding' + autocmd FileType markdown set foldexpr=NestedMarkdownFolds() +Plug 'cespare/vim-toml' +Plug 'dpelle/vim-LanguageTool' +" increment dates with C-a +Plug 'tpope/vim-speeddating' +Plug 'martinda/Jenkinsfile-vim-syntax' +Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } + let g:go_fmt_command = "" +Plug 'buoto/gotests-vim' +Plug 'tomlion/vim-solidity' +Plug 'jparise/vim-graphql' +Plug 'maxmellon/vim-jsx-pretty' +Plug 'mlaursen/vim-react-snippets', { 'branch': 'main' } +Plug 'cristianoliveira/vim-react-html-snippets' +Plug 'jidn/vim-dbml' " ]]] vim-plug " " Mappings [[[ " @@ -372,7 +405,8 @@ nnoremap dg ggdG " delete entire line nnoremap dl 0d$ " delete lines matching pattern -nnoremap dls :g//d +" nnoremap dls :g//d +nnoremap dls q:ig//d " show docstring for cur word nnoremap do :YcmCompleter GetDoc " delete line into system clipboard @@ -392,11 +426,15 @@ nnoremap fi :YcmCompleter FixIt nnoremap ft :se ft? " check todo's nnoremap ftd /TODO -nnoremap g :YcmCompleter GoTo +" nnoremap g :YcmCompleter GoTo +nnoremap g :vs \| YcmCompleter GoTo +" nnoremap gb +nnoremap gb :Git blame " vimdiff split nnoremap gd :Gvdiff -nnoremap gdh :Gvdiff HEAD~ +nnoremap gdh :Gvdiff HEAD^ nnoremap gdm :Gvdiff master +nnoremap gdo :Gvdiff orig/master " toggle search highlighting nnoremap h :set hlsearch! hlsearch? " help @@ -404,9 +442,13 @@ nnoremap he :vert help nnoremap ht :set tabstop=2 shiftwidth=2 expandtab nnoremap vhe :vert help " don't add space when joining lines " -nnoremap j gJ +" nnoremap j gJ +" jump forward +nnoremap j " join all paragraphs into single line " nnoremap jl :set tw=9999999gggqG +" jump back +nnoremap k " format current line nnoremap l Vgq " format this and next line @@ -416,6 +458,8 @@ nnoremap ll Vjgq nnoremap m :vert Man " apply normal command to selection vnoremap n q:anorm +" turn off autoformat" +nnoremap na :set spell spelllang=en_us formatoptions=cjMqtvw nnoremap nt :NERDTree " check if in neovim nnoremap nv :echo has('nvim') @@ -434,17 +478,19 @@ nnoremap plu :PlugUpdate " don't break lines nnoremap py :set tw=0 " replace in next x lines -nnoremap r q:i.,.+s///gFsi +" nnoremap r q:i.,.+s///gFsi " replace in line -nnoremap rl q:i.s///g +nnoremap r q:i.s///g " replace in visual selection +vnoremap r q:is///g3ha +" replace in entire file +" nnoremap R q:i%s///g2F/i +nnoremap ra q:i%s///g2F/i " remove italics tags nnoremap rmi :%s/<\/\?i>//g +nnoremap rs :res " reload vim config nnoremap rv :source $MYVIMRC -vnoremap r q:is///g3ha -" replace in entire file -nnoremap R q:i%s///g2F/i vnoremap s :sort nnoremap sc :set spell spelllang=en_us " run current file in shell @@ -460,6 +506,10 @@ nnoremap sys :set syn=sh vnoremap t :!tac " capitalize letter nnoremap u vU +" comment visual block +" nnoremap vcc Vcc +" uncomment visual block +" nnoremap vcu Vcu " horizontal split " nnoremap vs :vs " open vimrc in vertical split @@ -560,21 +610,38 @@ autocmd Filetype c inoremap uc unsigned char autocmd BufNewFile,BufRead *.h nnoremap x 0iextern f{hc$; +autocmd BufNewFile,BufRead ~/.habitctl/log nnoremap d Gy3kGp5e3j$rnj.j.j$. +autocmd BufNewFile,BufRead ~/.habitctl/log nnoremap n $rn +autocmd BufNewFile,BufRead ~/.habitctl/log nnoremap y $ry + autocmd Filetype fish inoremap 1 $argv[1] autocmd Filetype fish inoremap 2 $argv[2] autocmd Filetype javascript inoremap x process.exit() -" autocmd Filetype markdown inoremap bc because -autocmd Filetype markdown inoremap cb - [ ] +autocmd Filetype markdown inoremap c - [ ] +autocmd Filetype markdown nnoremap e 0f[lr +autocmd Filetype markdown inoremap t TODO: +autocmd Filetype markdown vnoremap r q:is/\[x/[ /g:set nohlsearch +autocmd Filetype markdown vnoremap x q:is/\[ /[x/g:set nohlsearch autocmd Filetype markdown nnoremap x 0f[lrx " nnoremap x 0f[lrx +autocmd Filetype go nnoremap f :GoTestFunc +autocmd Filetype go nnoremap l :GoLint +autocmd Filetype go nnoremap m :GoTests +autocmd Filetype go nnoremap r yawq:iGoRename p +autocmd Filetype go nnoremap t :GoTest + autocmd Filetype go-template inoremap e {{"{{ else }}"}} autocmd Filetype go-template inoremap hd {{"{{ .chezmoi.homeDir }}"}} autocmd Filetype go-template nnoremap fp :%s/{{"{{{"}}/[[[/g:%s/}}}/]]]/g +autocmd Filetype Jenkinsfile nnoremap q :.s/"/'/g +autocmd Filetype Jenkinsfile vnoremap q :s/"/'/g + autocmd Filetype python inoremap bp breakpoint() +autocmd Filetype python inoremap ip from pprint import pprint autocmd Filetype python inoremap s self. " ]]] Local Mappings " diff --git a/dot_xinitrc.tmpl b/dot_xinitrc.tmpl index aa22620..28a692b 100644 --- a/dot_xinitrc.tmpl +++ b/dot_xinitrc.tmpl @@ -1,5 +1,6 @@ xrandr --setprovideroutputsource modesetting NVIDIA-0 -[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources +# [[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources +[[ -f ~/.Xresources ]] && xrdb ~/.Xresources # xrandr --auto {{ if .ext_kb }} xmodmap ~/.Xmodmap @@ -7,7 +8,8 @@ xmodmap ~/.Xmodmap # xmodmap ~/.Xmodmap-laptop xmodmap ~/tmp/.Xmodmap-laptop {{ end }} -redshift -O 2000 +# redshift -O 2000 +redshift -O 3000 xset r rate $XSET_DELAY $XSET_RATE # exec /home/kevin/Downloads/dwm/reload-dwm.sh @@ -19,7 +21,8 @@ numlockx on & start-pulseaudio-x11 & # wal -i "$(/home/kevin/scripts/shuffler \"$HOME/Pictures/Backgrounds/dim/non-editing\")" && /home/kevin/st/make-st.sh & -wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") & +# wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/non-editing") & +wal -i $(/home/kevin/scripts/shuffler "$HOME/Pictures/Backgrounds/dim/editing") & {{ end }} exec i3 diff --git a/private_dot_calcurse/conf b/private_dot_calcurse/conf index 955db8f..63aeb1d 100644 --- a/private_dot_calcurse/conf +++ b/private_dot_calcurse/conf @@ -1,4 +1,4 @@ -appearance.calendarview=weekly +appearance.calendarview=monthly appearance.compactpanels=yes appearance.defaultpanel=calendar appearance.layout=3 diff --git a/scripts/executable_backup b/scripts/executable_backup index c613496..1495033 100755 --- a/scripts/executable_backup +++ b/scripts/executable_backup @@ -1,6 +1,7 @@ #!/bin/bash -mount_dir="/run/media/kevin/backup-hd" +# mount_dir="/run/media/kevin/backup-hd" +mount_dir="/mnt/linux-files-2" # Backup destination case $1 in nzxt ) @@ -23,9 +24,9 @@ case $2 in sudo tar -czpvf "$backup_file" --exclude-from="$exclude_dirs_list" --exclude=/home / ;; - full ) - sudo rsync -PraAX --exclude-from="$exclude_dirs_list_full" / "$backup_dest/full" - ;; + # full ) + # sudo rsync -PraAX --exclude-from="$exclude_dirs_list_full" / "$backup_dest/full" + # ;; home ) sudo rsync -PraAX --exclude-from="$exclude_dirs_list_full" /home "$backup_dest/full" esac diff --git a/scripts/executable_dmenu-twitch b/scripts/executable_dmenu-twitch new file mode 100644 index 0000000..a6b1767 --- /dev/null +++ b/scripts/executable_dmenu-twitch @@ -0,0 +1,3 @@ +#!/bin/bash + +cat ~/Documents/twitch-emotes.md | dmenu -i | sed -z 's/\n/ /' | xclip -selection clipboard diff --git a/scripts/executable_spotify-clean b/scripts/executable_spotify-clean new file mode 100644 index 0000000..041a849 --- /dev/null +++ b/scripts/executable_spotify-clean @@ -0,0 +1,3 @@ +#!/bin/dash + +sqlite3 ~/.cache/spotify/mercury.db 'VACUUM;' && spotify diff --git a/scripts/executable_ticker b/scripts/executable_ticker new file mode 100755 index 0000000..2adc1ea --- /dev/null +++ b/scripts/executable_ticker @@ -0,0 +1,101 @@ +#!/usr/bin/env bash +set -e + +LANG=C +LC_NUMERIC=C + +SYMBOLS=("$@") + +if ! $(type jq > /dev/null 2>&1); then + echo "'jq' is not in the PATH. (See: https://stedolan.github.io/jq/)" + exit 1 +fi + +if [ -z "$SYMBOLS" ]; then + echo "Usage: ./ticker.sh AAPL MSFT GOOG BTC-USD" + exit +fi + +FIELDS=(symbol marketState regularMarketPrice regularMarketChange regularMarketChangePercent \ + preMarketPrice preMarketChange preMarketChangePercent postMarketPrice postMarketChange postMarketChangePercent) +API_ENDPOINT="https://query1.finance.yahoo.com/v7/finance/quote?lang=en-US®ion=US&corsDomain=finance.yahoo.com" + +if [ -z "$NO_COLOR" ]; then + : "${COLOR_BOLD:=\e[1;37m}" + : "${COLOR_GREEN:=\e[32m}" + : "${COLOR_RED:=\e[31m}" + : "${COLOR_RESET:=\e[00m}" +fi + +symbols=$(IFS=,; echo "${SYMBOLS[*]}") +fields=$(IFS=,; echo "${FIELDS[*]}") + +results=$(curl --silent "$API_ENDPOINT&fields=$fields&symbols=$symbols" \ + | jq '.quoteResponse .result') + +query () { + echo $results | jq -r ".[] | select(.symbol == \"$1\") | .$2" +} + +for symbol in $(IFS=' '; echo "${SYMBOLS[*]}" | tr '[:lower:]' '[:upper:]'); do + marketState="$(query $symbol 'marketState')" + + if [ -z $marketState ]; then + printf 'No results for symbol "%s"\n' $symbol + continue + fi + + preMarketChange="$(query $symbol 'preMarketChange')" + postMarketChange="$(query $symbol 'postMarketChange')" + + if [ $marketState == "PRE" ] \ + && [ $preMarketChange != "0" ] \ + && [ $preMarketChange != "null" ]; then + nonRegularMarketSign='*' + price=$(query $symbol 'preMarketPrice') + diff=$preMarketChange + percent=$(query $symbol 'preMarketChangePercent') + elif [ $marketState != "REGULAR" ] \ + && [ $postMarketChange != "0" ] \ + && [ $postMarketChange != "null" ]; then + nonRegularMarketSign='*' + price=$(query $symbol 'postMarketPrice') + diff=$postMarketChange + percent=$(query $symbol 'postMarketChangePercent') + else + nonRegularMarketSign='' + price=$(query $symbol 'regularMarketPrice') + diff=$(query $symbol 'regularMarketChange') + percent=$(query $symbol 'regularMarketChangePercent') + fi + + if [ "$diff" == "0" ]; then + color= + elif ( echo "$diff" | grep -q ^- ); then + color=$COLOR_RED + else + color=$COLOR_GREEN + fi + + if [ "$price" != "null" ]; then + # printf "%-10s$COLOR_BOLD%8.2f$COLOR_RESET" $symbol $price + # printf "$color%10.2f%12s$COLOR_RESET" $diff $(printf "(%.2f%%)" $percent) + # printf " %s\n" "$nonRegularMarketSign" + # echo \$$price + # echo $price + hour=$(date +"%H") + if [[ "$symbol" == "USDCAD=X" ]]; then + printf "%0.4f\n" "$price" + elif [[ "$symbol" == "BTC-USD" || "$symbol" == "ETH-USD" ]]; then + # echo "$price" | cut -c 2-3 + echo "$price" | cut -c -3 + elif (( $(echo "$price > 10000" | bc -l) )); then + printf "%'0.0f\n" "$price" | cut -c 2-4 + # elif (( $(echo "$price < 1" | bc -l) )); then + # printf "%0.3f\n" "$price" + else + printf "%0.2f\n" "$price" | cut -c 3- + # printf "%0.2f\n" "$price" + fi + fi +done diff --git a/scripts/executable_twem b/scripts/executable_twem index dcd0c61..13eb37f 100644 --- a/scripts/executable_twem +++ b/scripts/executable_twem @@ -1,7 +1,13 @@ -#!/bin/bash +#!/bin/dash +# for i in {1..4} ; do + # xdotool key Left +# done sleep .3 xdotool type 'https://twem.gq/.png' -for i in {1..4} ; do +i=0 +while [ "$i" -ne 4 ] +do xdotool key Left + i=$((i + 1)) done diff --git a/scripts/executable_twitchy-game b/scripts/executable_twitchy-game new file mode 100644 index 0000000..0f7671a --- /dev/null +++ b/scripts/executable_twitchy-game @@ -0,0 +1,8 @@ +#!/usr/bin/fish + +set TEMP_CSV /tmp/twitchy-fortnite.csv +set HEADER "Game,Channel,Viewers,Uptime,Title" + +echo $HEADER > $TEMP_CSV +twitchy --non-interactive >> $TEMP_CSV +xsv search -is1 $argv[1] $TEMP_CSV | xsv sort -NRs3 | xsv table diff --git a/txt/exclude-dirs-backup-full.txt b/txt/exclude-dirs-backup-full.txt index aee3c59..5053c1a 100644 --- a/txt/exclude-dirs-backup-full.txt +++ b/txt/exclude-dirs-backup-full.txt @@ -1,4 +1,5 @@ /dev/* +/home/kevin/.cache/* /lost+found /media/* /mnt/* diff --git a/txt/exclude-dirs-backup.txt.tmpl b/txt/exclude-dirs-backup.txt.tmpl index 954342d..b8df534 100644 --- a/txt/exclude-dirs-backup.txt.tmpl +++ b/txt/exclude-dirs-backup.txt.tmpl @@ -19,3 +19,6 @@ /tmp /var/cache/pacman /var/lib/systemd/coredump +/var/lib/dhcpcd/proc +/var/lib/docker/overlay2 +/var/log/journal diff --git a/txt/nzxt-all.txt b/txt/nzxt-all.txt index 289e1f7..bf4f6d5 100644 --- a/txt/nzxt-all.txt +++ b/txt/nzxt-all.txt @@ -2,14 +2,18 @@ acestream-engine acestream-player alsa-utils android-file-transfer +angular-cli antimicro apache arch-install-scripts arno-iptables-firewall +asciinema asp +audacity aurvote autoconf automake +baka-mplayer bash bat bc @@ -19,7 +23,7 @@ bison bookworm broadcom-wl browserpass -bukuserver +buku-git bzip2 calcurse certbot @@ -30,6 +34,7 @@ cliqz-bin cloc cmake cmatrix +code colordiff compton-tryone-git coreutils @@ -37,6 +42,7 @@ cowsay cronie cryptsetup curseradio-git +dash dateutils device-mapper dhcpcd @@ -44,10 +50,12 @@ dialog diffutils discord dmenu +docker doxygen dragon-drag-and-drop-git dunst e2fsprogs +eclipse-java ecryptfs-simple ecryptfs-utils electrum @@ -55,6 +63,7 @@ emacs encfs evince fakeroot +fbreader fd feh ffcast @@ -66,6 +75,7 @@ fish flashplugin flashplugin-focusfix flex +flowblade fortune-mod fzf gawk @@ -75,14 +85,13 @@ gdb gettext gimp git +git-lfs glibc -godot-bin gotop-bin gradle grep grub gzip -habitctl-git handbrake hdf5 heroku-cli @@ -103,9 +112,12 @@ intellij-idea-community-edition iproute2 iputils irrlicht +itch +jdk-openjdk jfsutils jmtpfs jp2a +jre-openjdk-headless junit kitty less @@ -116,10 +128,11 @@ licenses linux linux-firmware linux-headers -linux-kevin -linux-kevin-headers +linux-lts +linux-lts-headers linux-nzxt linux-nzxt-headers +lmms logrotate lolcat lsd @@ -127,6 +140,7 @@ lsof lua-cjson lvm2 lxappearance +maim make man-db man-pages @@ -155,9 +169,12 @@ numlockx nvidia-dkms nvidia-settings nx3-all +obs-studio openshot openssh +openvpn os-prober +otf-ipafont p7zip pacman pacman-contrib @@ -170,19 +187,27 @@ pdfgrep peaclock peek perl +perl-file-mimeinfo perl-image-exiftool +pfetch-git pgadmin4 pipes.sh pkgconf +podman postgresql procps-ng psmisc pulseaudio pycp +pyenv pyside2 python-dbus +python-discord python-numpy python-pip +python-praw +python-prettytable +python-pynvim python-pywal python-setuptools python-tinydb @@ -210,6 +235,7 @@ qt5-scxml qt5-serialbus qt5-serialport qt5-speech +qt5-styleplugins qt5-tools qt5-translations qt5-virtualkeyboard @@ -219,25 +245,31 @@ qt5-webglplugin qt5-websockets qt5-webview qt5-xmlpatterns +racket ranger redshift reiserfsprogs riot-desktop ripgrep robo3t-bin +rot13 rsync -rxvt-unicode-patched +runelite +rxvt-unicode-pixbuf-patched s-nail sc-im +scrcpy scrot sdcv sed shadow +shadowfox-updater shellcheck simple-mtpfs sl slack-desktop-dark smartmontools +soundcloud-dl-git spatialindex spotify spotify-now-git @@ -263,12 +295,11 @@ tasksh tcpdump termdown texinfo +texlive-bibtexextra texlive-core texlive-local-adjustbox texlive-local-algorithmicx texlive-local-algorithms -texlive-local-biblatex -texlive-local-biblatex-apa texlive-local-capt-of texlive-local-collectbox texlive-local-csquotes @@ -281,11 +312,11 @@ texlive-local-forest texlive-local-gfsdidot texlive-local-ifmtarg texlive-local-inlinedef -texlive-local-logreq texlive-local-multirow texlive-local-numprint texlive-local-pgfopts texlive-local-pgfplots +texlive-local-preprint texlive-local-siunitx texlive-local-sourcesanspro texlive-local-tcolorbox @@ -296,11 +327,11 @@ texlive-local-tkz-euclide texlive-local-trimspaces texlive-local-was texlive-local-xifthen -texlive-localmanager-git the_silver_searcher thunderbird tidy time +tk tmux tor traceroute @@ -309,6 +340,7 @@ transmission-gtk trizen ttf-dejavu ttf-font-awesome +ttf-hack ttf-joypixels ttf-ubuntu-font-family udisks2 @@ -386,6 +418,7 @@ xorg-xvinfo xorg-xwd xorg-xwininfo xorg-xwud +xsv xvkbd yad yay @@ -396,3 +429,4 @@ zathura-pdf-mupdf zbar zip zsh +zulip-desktop-git diff --git a/txt/nzxt-aur.txt b/txt/nzxt-aur.txt index 90983b5..af17554 100644 --- a/txt/nzxt-aur.txt +++ b/txt/nzxt-aur.txt @@ -1,30 +1,30 @@ acestream-engine acestream-player +angular-cli antimicro arno-iptables-firewall aurvote bear -bukuserver +buku-git chromium-widevine cliqz-bin compton-tryone-git curseradio-git dragon-drag-and-drop-git +eclipse-java ecryptfs-simple ffcast flashplugin-focusfix -godot-bin +flowblade gotop-bin -habitctl-git heroku-cli htop-vim-git i3-gaps-rounded i3blocks-git insomnia +itch jmtpfs libavutil-52 -linux-kevin -linux-kevin-headers linux-nzxt linux-nzxt-headers lua-cjson @@ -35,26 +35,32 @@ nerd-fonts-dejavu-complete nerd-fonts-hack nx3-all peaclock +pfetch-git pipes.sh pycp +python-discord python-tinydb qdirstat robo3t-bin -rxvt-unicode-patched +rot13 +runelite +rxvt-unicode-pixbuf-patched sc-im +scrcpy +shadowfox-updater simple-mtpfs slack-desktop-dark +soundcloud-dl-git spotify spotify-now-git steamos-xpad-dkms +surf systemd-numlockontty taskopen tasksh texlive-local-adjustbox texlive-local-algorithmicx texlive-local-algorithms -texlive-local-biblatex -texlive-local-biblatex-apa texlive-local-capt-of texlive-local-collectbox texlive-local-csquotes @@ -67,11 +73,11 @@ texlive-local-forest texlive-local-gfsdidot texlive-local-ifmtarg texlive-local-inlinedef -texlive-local-logreq texlive-local-multirow texlive-local-numprint texlive-local-pgfopts texlive-local-pgfplots +texlive-local-preprint texlive-local-siunitx texlive-local-sourcesanspro texlive-local-tcolorbox @@ -82,13 +88,16 @@ texlive-local-tkz-euclide texlive-local-trimspaces texlive-local-was texlive-local-xifthen -texlive-localmanager-git trizen urxvt-resize-font-git vidir weechat-vimode-git wego wpa_actiond +xbindkeys +xf86-input-keyboard +xf86-input-mouse +xsv xvkbd -yad yay +zulip-desktop-git diff --git a/txt/nzxt-pkgs.txt b/txt/nzxt-pkgs.txt index a4d0240..160dec0 100644 --- a/txt/nzxt-pkgs.txt +++ b/txt/nzxt-pkgs.txt @@ -2,9 +2,12 @@ alsa-utils android-file-transfer apache arch-install-scripts +asciinema asp +audacity autoconf automake +baka-mplayer bash bat bc @@ -21,11 +24,13 @@ chromium cloc cmake cmatrix +code colordiff coreutils cowsay cronie cryptsetup +dash dateutils device-mapper dhcpcd @@ -33,6 +38,7 @@ dialog diffutils discord dmenu +docker doxygen dunst e2fsprogs @@ -42,6 +48,7 @@ emacs encfs evince fakeroot +fbreader fd feh file @@ -60,6 +67,7 @@ gdb gettext gimp git +git-lfs glibc gradle grep @@ -80,8 +88,10 @@ intellij-idea-community-edition iproute2 iputils irrlicht +jdk-openjdk jfsutils jp2a +jre-openjdk-headless junit kitty less @@ -91,12 +101,16 @@ licenses linux linux-firmware linux-headers +linux-lts +linux-lts-headers +lmms logrotate lolcat lsd lsof lvm2 lxappearance +maim make man-db man-pages @@ -119,9 +133,12 @@ ntp numlockx nvidia-dkms nvidia-settings +obs-studio openshot openssh +openvpn os-prober +otf-ipafont p7zip pacman pacman-contrib @@ -133,17 +150,23 @@ pcmanfm pdfgrep peek perl +perl-file-mimeinfo perl-image-exiftool pgadmin4 pkgconf +podman postgresql procps-ng psmisc pulseaudio +pyenv pyside2 python-dbus python-numpy python-pip +python-praw +python-prettytable +python-pynvim python-pywal python-setuptools qalculate-gtk @@ -169,6 +192,7 @@ qt5-scxml qt5-serialbus qt5-serialport qt5-speech +qt5-styleplugins qt5-tools qt5-translations qt5-virtualkeyboard @@ -178,6 +202,7 @@ qt5-webglplugin qt5-websockets qt5-webview qt5-xmlpatterns +racket ranger redshift reiserfsprogs @@ -201,7 +226,6 @@ steam-native-runtime stow subtitleeditor sudo -surf sxiv sysfsutils sysstat @@ -211,11 +235,13 @@ task tcpdump termdown texinfo +texlive-bibtexextra texlive-core the_silver_searcher thunderbird tidy time +tk tmux tor traceroute @@ -223,6 +249,7 @@ transmission-cli transmission-gtk ttf-dejavu ttf-font-awesome +ttf-hack ttf-joypixels ttf-ubuntu-font-family udisks2 @@ -242,12 +269,9 @@ wireless_tools wkhtmltopdf wpa_supplicant xautomation -xbindkeys xclip xdotool xf86-input-evdev -xf86-input-keyboard -xf86-input-mouse xf86-input-synaptics xf86-input-vmmouse xf86-input-void @@ -295,6 +319,7 @@ xorg-xvinfo xorg-xwd xorg-xwininfo xorg-xwud +yad youtube-dl youtube-viewer zathura