fix: fix-kubectl incorrect version, load-fzf fixed output

This commit is contained in:
Gal Szkolnik (@bobo) 2023-11-08 23:05:04 -05:00
parent 122ee40042
commit eb821d0bdb
2 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ if [[ -z "${BASE_0}" || "${BASE_0}" == "$BASE_SHELL" ]]; then
if [[ -n "$(type -t 'kubectl-cnpg')" ]]; then
. <( kubectl cnpg completion ${SHELL##*/} )
else
DL_VER=1.18.1
DL_VER=v1.21.1
GH_URL=https://github.com/cloudnative-pg/cloudnative-pg
DL_FILE="kubectl-cnpg_${DL_VER}_linux_x86_64.deb"
URL=${GH_URL}/releases/download/${DL_VER}/${DL_FILE}

View File

@ -10,12 +10,12 @@ if [[ "$1" == "--force" ]]; then
fi
if [[ -z "$(type -t fzf)" || ! -e "$(type -p fzf)" ]]; then
curl -sS https://webi.sh/fzf | bash
curl -sS https://webi.sh/fzf | bash >&2
printf '%s\n' \
'Run the following and then try again:' \
' exec $SHELL -l' \
''
'' >&2
elif [[ -z "${BASE_0}" || "${BASE_0}" == "$BASE_SHELL" ]]; then
FZF_CTRL_T_COMMAND="command find -L . -xdev -mindepth 1 \\( \