Move Tmux automatic load from ZSH to Foot

This commit is contained in:
Fabio Scotto di Santolo
2025-08-29 00:06:35 +02:00
parent 3f76100964
commit c461bcf1fd
8 changed files with 12 additions and 10 deletions

View File

@@ -1,6 +1,6 @@
# === General settings === # === General settings ===
[main] [main]
shell=/bin/zsh # Default shell to launch in the terminal shell=/bin/zsh -c "exec ~/.profile.d/tmux.sh" # Default shell to launch in the terminal
font=0xProto Nerd Font:size=14 # Font family and size used in the terminal font=0xProto Nerd Font:size=14 # Font family and size used in the terminal
initial-window-size-chars=160x45 # Initial size in character columns x rows initial-window-size-chars=160x45 # Initial size in character columns x rows
selection-target=clipboard # Copy selected text directly to system clipboard selection-target=clipboard # Copy selected text directly to system clipboard

0
zsh/.profile.d/cargo.sh Normal file → Executable file
View File

0
zsh/.profile.d/golang.sh Normal file → Executable file
View File

0
zsh/.profile.d/java.sh Normal file → Executable file
View File

0
zsh/.profile.d/mise.sh Normal file → Executable file
View File

5
zsh/.profile.d/tmux.sh Executable file
View File

@@ -0,0 +1,5 @@
#!/usr/bin/env zsh
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
tmux attach-session -t default || tmux new-session -s default
fi

0
zsh/.profile.d/zoxide.sh Normal file → Executable file
View File

View File

@@ -84,6 +84,3 @@ alias userlist="cut -d: -f1 /etc/passwd | sort"
alias ip='ip -color' alias ip='ip -color'
alias stow='stow -d $DOTFILES ' alias stow='stow -d $DOTFILES '
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
tmux attach-session -t default || tmux new-session -s default
fi