mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-06 02:51:32 +01:00
fix: Use -L to check for symlinks in conditional expressions (#12457)
This avoids conflicting with a somewhat common global `-h` alias recommended by [`bat`](https://github.com/sharkdp/bat?tab=readme-ov-file#highlighting---help-messages) Fixes #12457
This commit is contained in:
parent
057f3ec67e
commit
572dcdab46
3 changed files with 6 additions and 6 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue