Skip to content

Instantly share code, notes, and snippets.

View bbassett's full-sized avatar

Brandon Bassett bbassett

View GitHub Profile
#!/usr/bin/env zsh
# Get current tmux session name
SESSION_NAME=$(tmux display-message -p '#S')
PROJECT_DIR="$HOME/Projects/$SESSION_NAME/.projects"
# If no .projects dir for current session, let user pick a project folder
if [[ ! -d "$PROJECT_DIR" ]]; then
new_session=$(
PROJECT_NAME="hatch-elixir"
PROJECT_DIR="$HOME/Projects/hatch/hatch-elixir"
project_layout() {
tmux new-window -n "$PROJECT_NAME" -c "$PROJECT_DIR"
tmux split-window -p 20 -c "$PROJECT_DIR"
tmux select-pane -t 0
tmux split-window -h -p 30 -c "$PROJECT_DIR"