mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2025-09-02 04:26:59 +00:00
Fix tests for travis
This commit is contained in:
@ -34,8 +34,7 @@ new_tmux_window
|
||||
|
||||
# session yellow
|
||||
new_tmux_session "yellow"
|
||||
run_shell_command "mkdir bar"
|
||||
run_shell_command "cd bar"
|
||||
run_shell_command "cd /tmp/bar"
|
||||
|
||||
start_resurrect_save
|
||||
|
||||
|
@ -1,8 +1,11 @@
|
||||
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
|
||||
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
|
||||
}
|
||||
|
||||
# we want "fixed" dimensions no matter the size of real display
|
||||
|
Reference in New Issue
Block a user