2015-02-22 19:49:59 +00:00
|
|
|
install_tmux_resurrect_helper() {
|
2015-02-22 21:45:06 +00:00
|
|
|
local plugin_path="${HOME}/.tmux/plugins/tmux-resurrect/"
|
|
|
|
rm -rf "$plugin_path"
|
|
|
|
if [ -n "$TRAVIS" ]; then
|
|
|
|
git clone --recursive https://github.com/tmux-plugins/tmux-resurrect --branch "$TRAVIS_BRANCH" "$plugin_path" >/dev/null 2>&1
|
|
|
|
else # used on vagrant
|
|
|
|
git clone --recursive "${CURRENT_DIR}/../" "$plugin_path" >/dev/null 2>&1
|
|
|
|
fi
|
2015-02-22 19:49:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
# we want "fixed" dimensions no matter the size of real display
|
2015-02-22 20:53:33 +00:00
|
|
|
set_screen_dimensions_helper() {
|
2015-02-22 19:49:59 +00:00
|
|
|
stty cols 200
|
|
|
|
stty rows 50
|
|
|
|
}
|
2015-02-22 20:53:33 +00:00
|
|
|
|
|
|
|
last_save_file_differs_helper() {
|
|
|
|
local original_file="$1"
|
|
|
|
diff "$original_file" "${HOME}/.tmux/resurrect/last"
|
|
|
|
[ $? -ne 0 ]
|
|
|
|
}
|