Browse Source

tmux: set TMUX_VERSION variable as X*100 + Y

Signed-off-by: Alejandro Mery <amery@geeks.cl>
master
Alejandro Mery 4 years ago
parent
commit
44174bfe1f
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      files/.tmux.conf

+ 7
- 0
files/.tmux.conf

@ -1,3 +1,10 @@
# load TMUX_VERSION
run-shell "\
echo #{version} | sed -e 's|\\.| |g' -e 's|[a-z]*$||' |\
while read x y; do\
tmux set-environment -g TMUX_VERSION \$((x * 100 + y));\
done"
# same prefix as `screen`
set -g prefix C-a
unbind C-b

Loading…
Cancel
Save