Files
dotfiles/term/.bashrc
T
2026-09-21 22:56:30 +02:00

49 lines
1.2 KiB
Bash

#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
alias grep='grep --color=auto'
# PS1='[\u@\h \W]> '
if [ -f /usr/share/git/completion/git-prompt.sh ]; then
. /usr/share/git/completion/git-prompt.sh
fi
# Farben
RED="\[\e[31m\]"
GREEN="\[\e[32m\]"
BLUE="\[\e[34m\]"
YELLOW="\[\e[33m\]"
RESET="\[\e[0m\]"
# export PS1="${GREEN}\u@\h${RESET}:${BLUE}\w${YELLOW}"$(__git_ps1 ' (%s)')${RESET}'\n>'
# export PS1='\u@\h:\w$(__git_ps1 " (%s)")\$ '
# Git-Prompt Script laden (falls noch nicht geschehen)
# Farbige PS1, __git_ps1 wird bei jeder Ausgabe ausgewertet
export PS1='\[\e[32m\]\u@\h\[\e[0m\]:\[\e[34m\]\w\[\e[33m\]$(__git_ps1 " (%s)")\[\e[0m\]\n> '
if [ -f /usr/share/git/completion/git-prompt.sh ]; then
. /usr/share/git/completion/git-prompt.sh
fi
export DATAFLEX_BACKEND_REPO="/c/_Master/202602 DataFleX/repos/flexibility_platform_backend/"
export PATH="$HOME/.local/bin:$PATH"
# Central theme (basic/.config/themes): single source of truth for colors.
if [ -f "$HOME/.config/themes/current/theme.env.sh" ]; then
. "$HOME/.config/themes/current/theme.env.sh"
fi
if command -v fastfetch >/dev/null 2>&1; then
fastfetch --config ~/.config/fastfetch/config.jsonc
fi