commit 88355fede24d72b0e67c7aec944d3797a6a2c414 parent acfe778cb0baa9662e1fc5a104e0228709d2e83a Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe> Date: Wed, 2 Feb 2022 09:58:28 -0500 fix: imca tmux search for browsers Now, search for firefox or firefox-developer-edition. Diffstat:
| M | home/.bin/imca | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/home/.bin/imca b/home/.bin/imca @@ -10,7 +10,8 @@ tmux send-keys -t imca:0.0 'vim -S ~/.vim/session/imca.vim' C-m tmux send-keys -t imca:0.1 'source venv/bin/activate' C-m tmux send-keys -t imca:0.1 'export FLASK_ENV=development' C-m tmux send-keys -t imca:0.1 'export FLASK_APP=flask_imca' C-m -tmux send-keys -t imca:0.1 'sleep 2s && firefox-developer-edition 127.0.0.1:5000 &' C-m +command -v firefox-developer-edition >/dev/null 2>&1 && tmux send-keys -t imca:0.1 'sleep 3s && firefox-developer-edition 127.0.0.1:5000 &' C-m || +command -v firefox >/dev/null 2>&1 && tmux send-keys -t imca:0.1 'sleep 3s && firefox 127.0.0.1:5000 &' C-m tmux send-keys -t imca:0.1 'flask run --host 0.0.0.0' C-m tmux send-keys -t imca:0.2 'source venv/bin/activate' C-m