Support only Tmux v1.9 or greater

Closes #1
This commit is contained in:
Bruno Sutic
2014-08-26 15:47:31 +02:00
parent 5c2853a55f
commit 732d53cede
5 changed files with 94 additions and 2 deletions

View File

@ -2,6 +2,8 @@
default_sessions_dir="$HOME/.tmux/sessions"
sessions_dir_option="@sessions-dir"
SUPPORTED_VERSION="1.9"
# helper functions
get_tmux_option() {
local option="$1"
@ -39,6 +41,13 @@ display_message() {
tmux set-option -gq display-time "$saved_display_time"
}
supported_tmux_version_ok() {
$CURRENT_DIR/check_tmux_version.sh "$SUPPORTED_VERSION"
}
# path helpers
sessions_dir() {
echo $(get_tmux_option "$sessions_dir_option" "$default_sessions_dir")
}