You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
322 B
Bash
11 lines
322 B
Bash
#!/usr/bin/env bash
|
|
|
|
session=$(find ~/Development ~/src ~/Development/Clients -mindepth 1 -maxdepth 1 -type d | fzf)
|
|
session_name=$(basename "$session" | tr . _)
|
|
|
|
if ! tmux has-session -t "$session_name" &> /dev/null; then
|
|
tmux new-session -s "$session_name" -c "$session" -d
|
|
fi
|
|
|
|
tmux switch-client -t "$session_name"
|