Skip to content

Commit

Permalink
make sure to use /usr/bin/infocmp to probe if tmux-256color is availa…
Browse files Browse the repository at this point in the history
…ble system wide (5), fixes gpakosz#626

bail out if default-terminal is already globally set to tmux-256color or tmux-direct
  • Loading branch information
gpakosz committed Feb 22, 2023
1 parent 12f96da commit 537b276
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -690,6 +690,12 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
# }
#
# _apply_tmux_256color() {
# case "$(tmux show -gv default-terminal)" in
# tmux-256color|tmux-direct)
# return
# ;;
# esac
#
# # when tmux-256color is available, use it
# # on macOS though, make sure to use /usr/bin/infocmp to probe if it's availalbe system wide
# case "$_uname_s" in
Expand Down

0 comments on commit 537b276

Please sign in to comment.