Skip to content

Instantly share code, notes, and snippets.

View ammar's full-sized avatar

Ammar Ali ammar

  • Ramallah, Palestine
View GitHub Profile
@ammar
ammar / tmate-session
Created August 17, 2017 15:13
Tmux script to setup a tmate session (a rails app directory tree in this case)
#!/bin/bash
tmux_session=pair
tmux rename-session 'pair'
tmux rename-window 'shell'
tmux send-keys -t $session_name:1 'source .env' Enter
tmux new-window -t $tmux_session:2 -n 'root'