Skip to content

Commit 52c0b12

Browse files
committed
Remove dj_liverun - this should be customized in every project.
1 parent b7f487f commit 52c0b12

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

bashrc_django.sh

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -48,36 +48,3 @@ _dj() {
4848
return 0
4949
}
5050
complete -F _dj dj
51-
52-
53-
function dj_liverun() {
54-
55-
vactivate || return 1
56-
_dj_init
57-
58-
let session_name='dj_liverun'
59-
60-
if ! tmux has-session -t $session_name 2>/dev/null; then
61-
62-
tmux new-session -d -s $session_name
63-
64-
tmux split-window -v
65-
tmux split-window -v
66-
tmux select-pane -t 2 # Select Pane 2 (bottom pane)
67-
tmux split-window -h # Split Pane 2 horizontally: creates Pane 3 beside Pane 2
68-
69-
tmux select-pane -t 1
70-
tmux send-keys 'while true; do dj runserver 0.0.0.0:8000; done' C-m
71-
72-
tmux select-pane -t 2
73-
tmux send-keys 'dj livereload' C-m
74-
75-
tmux select-pane -t 3
76-
tmux resize-pane -R 20
77-
tmux send-keys 'npm run tailwind' C-m
78-
79-
tmux select-pane -t 0
80-
fi
81-
82-
tmux attach-session -t $session_name
83-
}

0 commit comments

Comments
 (0)