X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.profile.d%2Ftmux.bashrc;h=3a5064198ac657b8181b0aa75e243622442fad05;hb=909140c72cfb9c66bcb4189b975f2ccb18c11384;hp=2bf7f05f8b9ad1ebffdfb3b4dccd929f12553881;hpb=f557b85709b56b7798276700850afe9ae2b838a5;p=profile.git diff --git a/.profile.d/tmux.bashrc b/.profile.d/tmux.bashrc index 2bf7f05..3a50641 100644 --- 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%%.*}