misc-tools/.bashrc

25 lines
650 B
Bash

# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
# User specific aliases and functions
parse_git_branch() {
repo_branch=$(git branch --show-current 2> /dev/null)
[ ${#repo_branch} != 0 ] && echo "://[${repo_branch}]"
}
#export PS1='\[\e[1;92m\][\u@\h \W]$\[\e[0m\] '
export PS1='\[\e[120;92m\]\u\[\e[120;90m\]@\[\e[120;93m\]\H\[\e[120;90m\] :: \d \t \[\e[0;32m\]\w$(parse_git_branch)\[\e[0m\]\n\[\e[1;92m\] $\[\e[0m\] '
# Path
#PATH=$PATH:$HOME/.local/bin:$HOME/bin:.
PATH=$PATH:~/.local/bin:.