diff --git a/.zshrc b/.zshrc index 568a6af..e0d840f 100644 --- a/.zshrc +++ b/.zshrc @@ -292,4 +292,7 @@ command -v zoxide &> /dev/null && eval "$(zoxide init zsh)" # Short jump alias; expands at use time after zoxide defines `z`. alias j="z" -alias k="k -h" # show human readable file sizes, in kb, mb etc +# k plugin ships a `k` function; only alias when it actually loaded. +if (( $+functions[k] )); then + alias k="k -h" # human-readable sizes +fi