Skip to content

Instantly share code, notes, and snippets.

@vladdancer
Created June 21, 2023 09:38
Show Gist options
  • Save vladdancer/ec9916b9a2e4bd8382f0bfcfb62645f6 to your computer and use it in GitHub Desktop.
Save vladdancer/ec9916b9a2e4bd8382f0bfcfb62645f6 to your computer and use it in GitHub Desktop.
tmux
tmux наше все у такі часи))
https://www.makeuseof.com/install-tmux-linux/
thisComp/projects $ ssh user@remote.server
# simple rule for session name: who-did-what
remoteServer/projects/myProj $ tmux new -s migrate-update-event
tmuxSession $ drush mim migration_id --update
# Ctrl+B and type ":" and enter "detach" word
remoteServer/projects/myProj $ exit
# later, after a "sun" comes back
thisComp/projects $ ssh user@remote.server
remoteServer/projects/myProj $ tmux attach -t migrate-update-event
tmuxSession $ drush ms migration_id
tmuxSession $ exit
remoteServer/projects/myProj $ tmux kill-session -t who-did-what
:)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment