mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2024-11-24 05:48:48 +00:00
Use more 'tmux-test' functions
This commit is contained in:
parent
d9ac38bef9
commit
d4ec690610
@ -1,9 +1,3 @@
|
||||
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
|
||||
|
@ -16,15 +16,12 @@ setup_before_restore() {
|
||||
}
|
||||
|
||||
restore_tmux_environment_and_save_again() {
|
||||
set_tmux_conf_helper<<-HERE
|
||||
run-shell '~/.tmux/plugins/tmux-resurrect/resurrect.tmux'
|
||||
HERE
|
||||
set_screen_dimensions_helper
|
||||
$CURRENT_DIR/helpers/restore_and_save_tmux_test_environment.exp
|
||||
}
|
||||
|
||||
main() {
|
||||
install_tmux_resurrect_helper
|
||||
install_tmux_plugin_under_test_helper
|
||||
setup_before_restore
|
||||
restore_tmux_environment_and_save_again
|
||||
|
||||
|
@ -6,15 +6,13 @@ source $CURRENT_DIR/helpers/helpers.sh
|
||||
source $CURRENT_DIR/helpers/resurrect_helpers.sh
|
||||
|
||||
create_tmux_test_environment_and_save() {
|
||||
set_tmux_conf_helper<<-HERE
|
||||
run-shell '~/.tmux/plugins/tmux-resurrect/resurrect.tmux'
|
||||
HERE
|
||||
set_screen_dimensions_helper
|
||||
$CURRENT_DIR/helpers/create_and_save_tmux_test_environment.exp
|
||||
}
|
||||
|
||||
main() {
|
||||
install_tmux_resurrect_helper
|
||||
install_tmux_plugin_under_test_helper
|
||||
install_tmux_plugin_under_test_helper
|
||||
mkdir -p /tmp/bar # setup required dirs
|
||||
create_tmux_test_environment_and_save
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user