fix(tmux): match style #390

This commit is contained in:
xero 2023-07-05 09:57:07 -04:00
parent 1c6f516142
commit 56d04ebdb0
No known key found for this signature in database
GPG Key ID: 0DA7AB45AC1D0000
2 changed files with 6 additions and 6 deletions

View File

@ -113,11 +113,11 @@ switch_context() {
choose_context_interactive() {
local choice
local FZF='fzf'
[[ -n "${TMUX-}" ]] && FZF="fzf-tmux"
local fzf='fzf'
[[ -n "${TMUX-}" ]] && fzf="fzf-tmux"
choice="$(_KUBECTX_FORCE_COLOR=1 \
FZF_DEFAULT_COMMAND="${SELF_CMD}" \
${FZF} --ansi --no-preview || true)"
${fzf} --ansi --no-preview || true)"
if [[ -z "${choice}" ]]; then
echo 2>&1 "error: you did not choose any of the options"
exit 1

6
kubens
View File

@ -114,11 +114,11 @@ choose_namespace_interactive() {
fi
local choice
local FZF='fzf'
[[ -n "${TMUX-}" ]] && FZF="fzf-tmux"
local fzf='fzf'
[[ -n "${TMUX-}" ]] && fzf="fzf-tmux"
choice="$(_KUBECTX_FORCE_COLOR=1 \
FZF_DEFAULT_COMMAND="${SELF_CMD}" \
${FZF} --ansi --no-preview || true)"
${fzf} --ansi --no-preview || true)"
if [[ -z "${choice}" ]]; then
echo 2>&1 "error: you did not choose any of the options"
exit 1