export SHELL # Source the system-wide file. source /etc/bashrc # Adjust the prompt depending on whether we're in 'guix environment'. if [ -n "$GUIX_ENVIRONMENT" ] then export PS1="\w [env]\$ " else export PS1="\[$(tput bold; tput setaf 4;)\]\w \$ \[$(tput sgr0)\]" # Direnv eval "$(direnv hook bash)" fi alias ls='ls -p --color=auto' alias ll='ls -l' alias grep='grep --color=auto' # set a fancy prompt (non-color, unless we know we "want" color) case "$TERM" in xterm-color|*-256color) color_prompt=yes;; esac # colored GCC warnings and errors export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' export PYTHONSTARTUP="${HOME}/.pythonrc" export PYTHONIOENCODING="UTF-8" if [ "$DISTRO" == "Debian" ]; then if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi if ! shopt -oq posix; then if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi fi if [ -f ~/.bash_profile ]; then . ~/.bash_profile fi # Welcome message printf "Welcome to bash shell\n\n"