-
-
Save mbbroberg/012dc04bcc4a90345f813ef8e61a0c3d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
function ct | |
# infer a session name from the current dir and normalize it for a valid tmux session name | |
set -g session (basename (pwd) | sed 's/[\.\-]/_/g') | |
tmux attach -t $session; or tmux new-session -s $session | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment