git://git.iain.cx/iain
/
profile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e4d2ba0
)
Strip non-numerics from tmux version.
author
Iain Patterson
<me@iain.cx>
Tue, 1 Apr 2014 10:12:23 +0000
(11:12 +0100)
committer
Iain Patterson
<me@iain.cx>
Tue, 1 Apr 2014 10:12:23 +0000
(11:12 +0100)
Version 1.9a was causing the major/minor comparison to barf.
.profile.d/tmux.bashrc
patch
|
blob
|
history
diff --git
a/.profile.d/tmux.bashrc
b/.profile.d/tmux.bashrc
index
2bf7f05
..
3a50641
100644
(file)
--- a/
.profile.d/tmux.bashrc
+++ b/
.profile.d/tmux.bashrc
@@
-15,6
+15,7
@@
if [ $? = 0 ]; then
# tmux 1.8 added -b flag to run-shell. Prior to 1.8 we must detach.
tmux_version=$($tmux -V)
tmux_version=${tmux_version#tmux }
+ tmux_version=${tmux_version//[^0-9]/}
tmux_major=${tmux_version%%.*}
tmux_minor=${tmux_version#*.}
tmux_minor=${tmux_minor%%.*}