add some fish configs

This commit is contained in:
Barak Michener 2022-03-08 14:36:17 -08:00
parent d2210226d8
commit 1b9408c46e
8 changed files with 3238 additions and 0 deletions

View file

@ -0,0 +1,12 @@
# There a several different implementations of netcat.
# Try to figure out which is the current used one
# and load the right set of completions.
set -l flavor
if string match -rq -- '^OpenBSD netcat' (netcat -h 2>&1)[1]
set flavor nc.openbsd
else
set flavor (basename (realpath (command -v netcat)))
end
__fish_complete_netcat netcat $flavor