dotfiles/dot_tmux/plugins/tmux-copycat/scripts/executable_copycat_mode_start.sh

21 lines
424 B
Bash
Raw Normal View History

2023-11-13 13:48:17 +01:00
#!/usr/bin/env bash
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
SUPPORTED_VERSION="1.9"
PATTERN="$1"
supported_tmux_version_ok() {
$CURRENT_DIR/check_tmux_version.sh "$SUPPORTED_VERSION"
}
main() {
local pattern="$1"
if supported_tmux_version_ok; then
$CURRENT_DIR/copycat_generate_results.sh "$pattern" # will `exit 0` if no results
$CURRENT_DIR/copycat_jump.sh 'next'
fi
}
main "$PATTERN"