tat command now works in directories with periods

- Running `tat` in the robots.thoughtbot.com directory was throwing a
'bad session name' tmux error
- See http://sourceforge.net/p/tmux/tickets/109/
This commit is contained in:
Ian C. Anderson 2014-07-11 09:47:34 -04:00
parent f5dc48659f
commit 48873f79cb

View file

@ -1,6 +1,5 @@
#!/bin/sh
#
# Attach or create tmux session named the same as current directory.
#
tmux new-session -As `basename $PWD`
tmux new-session -As "$(basename "$PWD" | tr . -)"