Add formatting variable to new tmux sessions
This commit is contained in:
parent
b6222e3682
commit
53ef5f0d54
1 changed files with 3 additions and 2 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
session_name=${PWD##*/}
|
||||
project_directory="$HOME/development/$session_name"
|
||||
enable_formatting=""
|
||||
enable_formatting="false"
|
||||
|
||||
tmux has-session -t $session_name
|
||||
|
||||
|
|
@ -11,7 +11,8 @@ then
|
|||
tmux new-session \
|
||||
-c $project_directory \
|
||||
-ds $session_name \
|
||||
-e "project_dir=$project_directory"
|
||||
-e "project_dir=$project_directory" \
|
||||
-e "enable_formatting=$enable_formatting"
|
||||
|
||||
# FIRST WINDOW
|
||||
tmux send-keys -t $session_name:0 'source ./env/bin/activate' C-m
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue