Skip to content

Commit

Permalink
added init function to start tmux
Browse files Browse the repository at this point in the history
  • Loading branch information
eagledb14 committed Dec 18, 2024
1 parent c9935fc commit fdc9413
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,15 @@ function sf {
cd $(find ~ -type d 2> /dev/null | fzf --preview "ls {}")
}

function init {
tmux new-session -d
name=$(tmux list-sessions -F '#{session_name}' | tail -n 1)

tmux new-window -t "$name:2"
tmux new-window -t "$name:3"

tmux select-window -t "$name:1"
tmux attach-session -t "$name"
}

[[ ${BLE_VERSION-} ]] && ble-attach

0 comments on commit fdc9413

Please sign in to comment.