feat: added base files
This commit is contained in:
parent
ea94102c9b
commit
2c57a2bc76
10
run_main_tmux_if_it_is_not_running.sh
Normal file
10
run_main_tmux_if_it_is_not_running.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/usr/bin/bash
|
||||||
|
|
||||||
|
# service ssh start
|
||||||
|
# Run frontend development server in main tmux.
|
||||||
|
tmux_sessions_list=$(tmux ls 2>&1)
|
||||||
|
tmux_list_output_with_main_string=$(echo "$tmux_sessions_list" | grep 'main')
|
||||||
|
|
||||||
|
if [ "$tmux_list_output_with_main_string" == "" ]; then
|
||||||
|
tmux new-session -d -s main "tmux set -g status off && fish"
|
||||||
|
fi
|
||||||
Loading…
Reference in New Issue
Block a user