add version to help screen

This commit is contained in:
Jorge Morante 2017-04-07 09:26:04 +02:00
parent d7f8541f7e
commit b61ea77cd2
1 changed files with 5 additions and 1 deletions

View File

@ -3,12 +3,16 @@
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source $CURRENT_DIR/utils.sh
pushd $CURRENT_DIR
FINGERS_VERSION=$(git describe --tags | sed "s/-.*//g")
popd
function show_help() {
fingers_pane_id=$1
clear_screen "$fingers_pane_id"
cat << ENDOFHELP
tmux-fingers help:
tmux-fingers ( $FINGERS_VERSION ) help:
- a-z: yank a highlighted hint
- <space>: toggle compact hints on/off