Skip to content

Instantly share code, notes, and snippets.

@Aminejvm
Created September 15, 2022 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Aminejvm/4f176e2799f500132743c3727963753a to your computer and use it in GitHub Desktop.
Save Aminejvm/4f176e2799f500132743c3727963753a to your computer and use it in GitHub Desktop.
Raycast script used to start my workspace as a tmux session
#!/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