Skip to content

Commit

Permalink
Fix version comparison for iTerm 3.5.0 and newer
Browse files Browse the repository at this point in the history
  • Loading branch information
spijet committed Jun 13, 2024
1 parent 6343e52 commit 542e303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/cssh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ is_iterm_350() {
local _ref="3.5.0" _ver="${TERM_PROGRAM_VERSION:-0.0.0}" \
_newest=""

_newest="$(echo -e "${_ref}\n${_ver}" | sort -V | head -n1)"
_newest="$(echo -e "${_ref}\n${_ver}" | sort -V | tail -n1)"

is_iterm && [[ "${_ver}" == "${_newest}" ]]
}
Expand Down

0 comments on commit 542e303

Please sign in to comment.