1
0
mirror of https://github.com/tmux-plugins/tmux-resurrect.git synced 2024-06-29 08:00:54 +02:00
tmux-resurrect/tests/helpers/resurrect_helpers.sh
2015-02-23 00:46:41 +01:00

18 lines
453 B
Bash

install_tmux_resurrect_helper() {
local plugin_path="${HOME}/.tmux/plugins/tmux-resurrect/"
rm -rf "$plugin_path"
git clone --recursive "${CURRENT_DIR}/../" "$plugin_path" >/dev/null 2>&1
}
# we want "fixed" dimensions no matter the size of real display
set_screen_dimensions_helper() {
stty cols 200
stty rows 50
}
last_save_file_differs_helper() {
local original_file="$1"
diff "$original_file" "${HOME}/.tmux/resurrect/last"
[ $? -ne 0 ]
}