diff --git a/lib/diagnostics.zsh b/lib/diagnostics.zsh index d67e6fab4..1a6e3b31f 100644 --- a/lib/diagnostics.zsh +++ b/lib/diagnostics.zsh @@ -131,7 +131,7 @@ function _omz_diag_dump_one_big_text() { sha_str=$sha_str[1] extra_str+=" SHA $sha_str" fi - if [[ -h "$progfile" ]]; then + if [[ -L "$progfile" ]]; then extra_str+=" ( -> ${progfile:A} )" fi fi @@ -199,7 +199,7 @@ function _omz_diag_dump_one_big_text() { builtin echo if [[ -e $ZSH_CUSTOM ]]; then local custom_dir=$ZSH_CUSTOM - if [[ -h $custom_dir ]]; then + if [[ -L $custom_dir ]]; then custom_dir=$(builtin cd $custom_dir && pwd -P) fi builtin echo "oh-my-zsh custom dir:" @@ -309,9 +309,9 @@ function _omz_diag_dump_check_core_commands() { function _omz_diag_dump_echo_file_w_header() { local file=$1 - if [[ ( -f $file || -h $file ) ]]; then + if [[ ( -f $file || -L $file ) ]]; then builtin echo "========== $file ==========" - if [[ -h $file ]]; then + if [[ -L $file ]]; then builtin echo "========== ( => ${file:A} ) ==========" fi command cat $file diff --git a/plugins/chruby/chruby.plugin.zsh b/plugins/chruby/chruby.plugin.zsh index 1210897c4..585e17b50 100644 --- a/plugins/chruby/chruby.plugin.zsh +++ b/plugins/chruby/chruby.plugin.zsh @@ -20,7 +20,7 @@ _source-from-homebrew() { local _brew_prefix # check default brew prefix - if [[ -h /usr/local/opt/chruby ]];then + if [[ -L /usr/local/opt/chruby ]];then _brew_prefix="/usr/local/opt/chruby" else # ok , it is not default prefix diff --git a/plugins/rbfu/rbfu.plugin.zsh b/plugins/rbfu/rbfu.plugin.zsh index 27dc3eec6..d1772ff41 100644 --- a/plugins/rbfu/rbfu.plugin.zsh +++ b/plugins/rbfu/rbfu.plugin.zsh @@ -18,7 +18,7 @@ function _rbfu_rubies_print() { rb_out="$rb" # If the ruby is a symlink, add @ to the name. - if [[ -h "$1" ]]; then + if [[ -L "$1" ]]; then rb_out="${rb_out}${fg[green]}@${reset_color}" fi