dotfiles/system/.bashrc
Severin Kaderli c42bd33b8c Document bash files in system/
Signed-off-by: Severin Kaderli <severin.kaderli@gmail.com>
2018-12-13 23:11:10 +01:00

51 lines
No EOL
1 KiB
Bash

#!/bin/bash
#
# SCRIPT NAME:
# .bashrc
#
# AUTHOR:
# Severin Kaderli <severin.kaderli@gmail.com>
#
# DESCRIPTION:
# This script is called when you start a new shell.
#
# USAGE:
# This script is automatically executed when you start a new shell.
# Bash configuration
shopt -s histappend
shopt -s checkwinsize
shopt -s globstar
# set a fancy prompt (non-color, unless we know we "want" color)
#case "$TERM" in
# xterm|xterm-color|*-256color) color_prompt=yes;;
#esac
#unset color_prompt force_color_prompt
# Enable color support of ls
if [ -f "${HOME}/.dircolors" ]; then
dircolors -b "${HOME}/.dircolors" > /dev/null 2>&1
fi
# Sourcing alias definitions
if [ -f "${HOME}/.aliases" ]; then
. "${HOME}/.aliases"
fi
# Source git-prompt script
if [ -f "/usr/share/git/completion/git-prompt.sh" ]; then
. "/usr/share/git/completion/git-prompt.sh"
fi
# Enable autocompletion features
if [ -f "/etc/bash_completion" ]; then
/etc/bash_completion
fi
complete -cf sudo
# Sourcing alias definitions
if [ -f "${HOME}/.env" ]; then
. "${HOME}/.env"
fi