Enable tmuxinator
This is a potential replacement for my custom `.tmux` files.
This commit is contained in:
parent
6287b83d33
commit
f2db3d29f7
5
bin/t
5
bin/t
|
@ -53,7 +53,10 @@ if tmux has-session -t "${session_name}" 2> /dev/null; then
|
|||
fi
|
||||
|
||||
# If a .tmux file exists, run it with the generated session name and path.
|
||||
if [[ -e "${session_path}/.tmux" ]]; then
|
||||
if [[ -e "${session_path}/.tmuxinator.yml" ]]; then
|
||||
cd "${session_path}" && tmuxinator start
|
||||
exit
|
||||
elif [[ -e "${session_path}/.tmux" ]]; then
|
||||
"${session_path}/.tmux" "${session_name}" "${session_path}"
|
||||
exit
|
||||
elif [[ -e "${session_path}/.ignored/.tmux" ]]; then
|
||||
|
|
|
@ -4,6 +4,8 @@ in {
|
|||
programs.tmux = {
|
||||
enable = true;
|
||||
|
||||
tmuxinator.enable = true;
|
||||
|
||||
terminal = "tmux-256color";
|
||||
|
||||
extraConfig = ''
|
||||
|
|
Loading…
Reference in a new issue