Created
July 30, 2016 18:19
-
-
Save tlockney/ea3b9528d9c55e100ad0460f3674c3ec to your computer and use it in GitHub Desktop.
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
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