Permalink
Fetching contributors…
Cannot retrieve contributors at this time
executable file 11 lines (8 sloc) 216 Bytes
#!/bin/bash
# -polka-
# this is for setting up a workspace in tmux
TARGET_DIR=$(fasd -d $@)
TARGET_NAME=$(basename "$TARGET_DIR")
TMUX=
tmux new -d -s "$TARGET_NAME" -c "$TARGET_DIR"
tmux switchc -t "$TARGET_NAME"