commit 22b592dc2621acca5e25d91f12c34c8337547f4f
parent 7bdaf322cbab6e2652e8cf8be64f44da376518f3
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date: Tue, 18 Jun 2024 21:32:46 -0500
bin: leticia now enter to venv automatically
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.local/bin/leticia b/.local/bin/leticia
@@ -3,11 +3,12 @@ cd ~/dox/dev/leticia
[ -d leticia/.git ] || git clone git@github.com:pablo-cardenas/leticia.git
[ -d libleticia/.git ] || git clone git@github.com:pablo-cardenas/libleticia.git
-if ! tmux has-session -t leticia; then
+if ! tmux has-session -t leticia 2>/dev/null; then
tmux new-session -s leticia -n main -d
tmux send-keys -t leticia:0.0 'vim -S ~/.vim/session/leticia.vim' C-m
tmux new-window -d -n 'python-leticia' -t leticia:1 -c leticia
+ tmux send-keys -t leticia:1.0 '. venv/bin/activate; clear' C-m
tmux new-window -d -n 'libleticia' -t leticia:2 -c libleticia
fi