Files
borgBackup-Docker/bash-config/.bashrc
T
daniel156161 338ca43328
Build and Push Docker Container / build-and-push (push) Successful in 58s
fix environment file to not fill with duplicate values with restart container
2026-04-17 16:21:51 +02:00

37 lines
1.1 KiB
Bash

if grep -q "USE_TMUX_SHELL" /etc/environment && [[ -t 0 ]] && [ -z "$TMUX" ]; then
tmux attach || tmux new-session
exit
fi
alias update='sudo apk update && sudo apk upgrade'
export HISTTIMEFORMAT="%d/%m/%y %T "
export PS1='\u@\h:\W \$ '
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'
export PS1="\[\e[31m\][\[\e[m\]\[\e[38;5;172m\]\u\[\e[m\]@\[\e[38;5;153m\]\h\[\e[m\] \[\e[38;5;214m\]\W\[\e[m\]\[\e[31m\]]\[\e[m\]\\$ "
###############################################################################
# Functions
###############################################################################
source "/variables.sh"
if command -v tput >/dev/null 2>&1; then
COLUMNS=$(tput cols)
fi
function print_container_info {
sepurator
echo "BorgServer powered by $BORG_VERSION - Image Hostname: $HOSTNAME | Image Version: $DOCKER_IMAGE_VERSION"
sepurator
}
###############################################################################
# Run Code
###############################################################################
print_container_info
if command -v fastfetch >/dev/null 2>&1; then
fastfetch --config neofetch
fi