mirror of
https://github.com/tmux-plugins/tmux-continuum.git
synced 2025-09-09 04:28:54 +00:00
Enable easy 'tmux auto start' configuration
This commit is contained in:
28
scripts/handle_tmux_automatic_start.sh
Executable file
28
scripts/handle_tmux_automatic_start.sh
Executable file
@ -0,0 +1,28 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
source "$CURRENT_DIR/helpers.sh"
|
||||
source "$CURRENT_DIR/variables.sh"
|
||||
|
||||
is_tmux_automatic_start_enabled() {
|
||||
local auto_start_value="$(get_tmux_option "$auto_start_option" "$auto_start_default")"
|
||||
[ "$auto_start_value" == "on" ]
|
||||
}
|
||||
|
||||
is_osx() {
|
||||
[ $(uname) == "Darwin" ]
|
||||
}
|
||||
|
||||
main() {
|
||||
if is_tmux_automatic_start_enabled; then
|
||||
if is_osx; then
|
||||
$CURRENT_DIR/handle_tmux_automatic_start/osx_enable.sh
|
||||
fi
|
||||
else
|
||||
if is_osx; then
|
||||
$CURRENT_DIR/handle_tmux_automatic_start/osx_disable.sh
|
||||
fi
|
||||
fi
|
||||
}
|
||||
main
|
Reference in New Issue
Block a user