Skip to content

Commit a585e4f

Browse files
tmux: fixed loading tmux version specific config
1 parent 606a10a commit a585e4f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Simplify tmux version (eg: not 3.5a but 3.5)
2+
_tmux_version="$(tmux -V | command awk '{print $2}')"
3+
export TMUX_VERSION="$(command awk -v version="${_tmux_version}" "BEGIN { print substr(version,1,3) }")"

.tmux.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@
4343
# Boostrap
4444
################################################################################
4545

46-
#Set tmux version
46+
#Set tmux version (replaced by oh-my-shellrc's tmux's TMUX_VERSION environment)
4747
# - 3.3 => 3.3
4848
# - 3.3a => 3.3
49-
run-shell 'export TERM_PROGRAM_VERSION; tmux setenv -g TMUX_VERSION $(/usr/bin/awk -v var="$TERM_PROGRAM_VERSION" "BEGIN { print substr(var,1,3) }")'
49+
#run-shell 'export TERM_PROGRAM_VERSION; tmux setenv -g TMUX_VERSION $(/usr/bin/awk -v var="$TERM_PROGRAM_VERSION" "BEGIN { print substr(var,1,3) }")'
5050

5151
# PREFIX remapping
5252
# Forbidden prefixes keys:

0 commit comments

Comments
 (0)