Last active
June 27, 2025 21:58
-
-
Save bcatubig/e887e66a4b7546d411392fb5075d92ee to your computer and use it in GitHub Desktop.
Tmux Helper Functions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tnew() { | |
local session_name="$1" | |
tmux new-session -d -s "${session_name}" "nvim" >/dev/null | |
tmux rename-window -t "${session_name}":1 "vim" | |
tmux new-window -t "${session_name}" | |
tmux rename-window -t "${session_name}":2 "terminal" | |
tmux select-window -t "${session_name}":1 | |
tmux a -t "${session_name}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment