dotfiles/home/user/.bashrc
2024-04-03 14:20:21 +03:00

19 lines
412 B
Bash

#!/usr/bin/env bash
# https://github.com/TheK4n/dotfiles
if \
[ "$(tty)" != "/dev/tty3" ] && \
[ -z "$TMUX" ] && \
[[ ! "$TERM" =~ tmux ]] && \
command -v tmux &>/dev/null
then
if systemctl -q --user is-active tmux; then
exec tmux -N -L "$USER" new
else
exec tmux
fi
fi
if [ -f "$HOME/.config/bash/sourcer" ]; then
source "$HOME/.config/bash/sourcer"
fi