Add .bashrc

This commit is contained in:
2026-02-17 01:30:35 +00:00
parent e850a5f4cc
commit 0ac39f763a

25
.bashrc Normal file
View File

@@ -0,0 +1,25 @@
# ~/.bashrc: executed by bash(1) for non-login shells.
# Note: PS1 is set in /etc/profile, and the default umask is defined
# in /etc/login.defs. You should not need this unless you want different
# defaults for root.
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
# umask 022
# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='--color=auto'
eval "$(dircolors)"
alias ls='ls $LS_OPTIONS'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
if command -v tmux &> /dev/null && [ -n "$PS1" ] && [[ ! "$TERM" =~ screen ]] && [[ ! "$TERM" =~ tmux ]] && [ -z "$TMUX" ] && [[ "$(tty)" == "/dev/tty1" ]]; then
tmux new-session -d -s "ResoniteSetup"
tmux send-keys -t "ResoniteSetup" "./firstlogin.sh" Enter
tmux attach-session -t "ResoniteSetup"
fi