feat: setup auto-completion for some commands
This commit is contained in:
parent
fed7f6ab5f
commit
c76b05e400
@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# NOTE (jpd): setup elixir-ls for older versions of elixir
|
||||
# NOTE: (jpd) setup elixir-ls for older versions of elixir
|
||||
if [ ! -d ${LOCAL_SRC_HOME}/elixir-ls/release ]; then
|
||||
echo "setup elixir ls version 0.12.0"
|
||||
/usr/local/bin/elixir-ls-setup v0.12.0
|
||||
@ -9,4 +9,22 @@ if [ ! -d ${LOCAL_SRC_HOME}/elixir-ls/release ]; then
|
||||
/usr/local/bin/elixir-ls-setup v0.14.6
|
||||
fi
|
||||
|
||||
# NOTE: (jpd) create auto-completion
|
||||
if [ ! -d ${XDG_CONFIG_HOME}/fish/completions/kubectl.fish ]; then
|
||||
echo "setup kubectl completion"
|
||||
kubectl completion fish > ${XDG_CONFIG_HOME}/fish/completions/kubectl.fish
|
||||
fi
|
||||
if [ ! -d ${XDG_CONFIG_HOME}/fish/completions/kind.fish ]; then
|
||||
echo "setup kind completion"
|
||||
kind completion fish > ${XDG_CONFIG_HOME}/fish/completions/kind.fish
|
||||
fi
|
||||
if [ ! -d ${XDG_CONFIG_HOME}/fish/completions/k3d.fish ]; then
|
||||
echo "setup k3d completion"
|
||||
k3d completion fish > ${XDG_CONFIG_HOME}/fish/completions/k3d.fish
|
||||
fi
|
||||
if [ ! -d ${XDG_CONFIG_HOME}/fish/completions/helm.fish ]; then
|
||||
echo "setup helm completion"
|
||||
helm completion fish > ${XDG_CONFIG_HOME}/fish/completions/helm.fish
|
||||
fi
|
||||
|
||||
exec "$@"
|
||||
|
Loading…
x
Reference in New Issue
Block a user