Created
September 15, 2022 10:15
-
-
Save Aminejvm/4f176e2799f500132743c3727963753a to your computer and use it in GitHub Desktop.
Raycast script used to start my workspace as a tmux session
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Required parameters: | |
# @raycast.schemaVersion 1 | |
# @raycast.title Start Slate Extension | |
# @raycast.mode silent | |
# Optional parameters: | |
# @raycast.icon 🪨 | |
# Documentation: | |
# @raycast.author Amine | |
session="slate-extension" | |
tmux new-session -d -s $session | |
window=0 | |
tmux rename-window -t $session:$window 'hot-reloading' | |
tmux send-keys -t $session:$window 'cd ~/Documents/filecoin/slate-web-extension' C-m | |
tmux send-keys -t $session:$window 'npm run watch' C-m | |
window=1 | |
tmux new-window -t $session:$window -n 'lazygit' | |
tmux send-keys -t $session:$window 'cd ~/Documents/filecoin/slate-web-extension' C-m | |
tmux send-keys -t $session:$window 'lazygit' C-m | |
window=2 | |
tmux new-window -t $session:$window -n 'nvim' | |
tmux send-keys -t $session:$window 'cd ~/Documents/filecoin/slate-web-extension' C-m | |
tmux send-keys -t $session:$window 'nvim' C-m | |
tmux attach-session -t $session | |
echo "Slate's extension is starting..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment