autostart tmux

This commit is contained in:
Daniel Bauer
2025-08-01 16:24:52 +02:00
parent b2582dde84
commit ced9a3c088
2 changed files with 39 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
# autostart tmux if possible
if command -v tmux &> /dev/null && [ -z "$TMUX" ]; then
exec tmux
fi
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
@@ -17,6 +22,8 @@ LOCAL_ENV_FILE="$HOME/.environment.local"
ALIAS_FILE="$HOME/.aliases"
LOCAL_ALIAS_FILE="$HOME/.aliases.local"
source $ENV_FILE
if [ -f $LOCAL_ENV_FILE ]; then
source $LOCAL_ENV_FILE
@@ -43,5 +50,3 @@ export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
[ -s "$HOME/.cargo/env" ] && \. "$HOME/.cargo/env" # Load cargo env