Skip to content

Instantly share code, notes, and snippets.

@mbbroberg
Forked from tlockney/ct.fish
Created August 1, 2016 01:57
Show Gist options
  • Save mbbroberg/012dc04bcc4a90345f813ef8e61a0c3d to your computer and use it in GitHub Desktop.
Save mbbroberg/012dc04bcc4a90345f813ef8e61a0c3d to your computer and use it in GitHub Desktop.
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