mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 09:06:44 +00:00
fix(shell): fix typos
This commit is contained in:
@@ -35,7 +35,7 @@ _setup-kubectx-completion() {
|
|||||||
local dir="$HOME/.local/share/mise/installs/kubectx/latest/completion"
|
local dir="$HOME/.local/share/mise/installs/kubectx/latest/completion"
|
||||||
local target="$ZSH_COMPLETIONS/_${cmd}"
|
local target="$ZSH_COMPLETIONS/_${cmd}"
|
||||||
|
|
||||||
if [ -f "$target" || ! -d "$dir" ]; then
|
if [[ -f "$target" || ! -d "$dir" ]]; then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
4
zshenv
4
zshenv
@@ -105,8 +105,8 @@ cached-eval() {
|
|||||||
local cache_dir="${ZSH_CACHED_EVAL_DIR:-$HOME/.local/share/zsh/cached-eval}"
|
local cache_dir="${ZSH_CACHED_EVAL_DIR:-$HOME/.local/share/zsh/cached-eval}"
|
||||||
|
|
||||||
if [[ -z "$(command -v "$cmd")" ]]; then
|
if [[ -z "$(command -v "$cmd")" ]]; then
|
||||||
echo "cached-eval: Command not found: $cmd" >&2
|
echo "cached-eval: Command not found: $cmd" >&2
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local cache_hash="$(echo -n "$full_cmd" | md5sum | awk '{print $1}')"
|
local cache_hash="$(echo -n "$full_cmd" | md5sum | awk '{print $1}')"
|
||||||
|
|||||||
Reference in New Issue
Block a user