tmux-resurrect/tests/helpers/resurrect_helpers.sh
2015-02-22 21:53:33 +01:00

19 lines
447 B
Bash

install_tmux_resurrect_helper() {
rm -rf ~/.tmux/plugins/tmux-resurrect/
cd "$CURRENT_DIR"
git clone --recursive ../ ~/.tmux/plugins/tmux-resurrect/ >/dev/null 2>&1
cd - >/dev/null
}
# 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 ]
}