1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_dotfiles.git synced 2024-08-16 16:09:49 +02:00
ansible_role_dotfiles/templates/bashrc

22 lines
724 B
Bash
Raw Normal View History

2018-11-15 10:26:52 +01:00
# .bashrc
# Source global definitions
2018-11-18 16:21:06 +01:00
if [ -f /etc/bash.bashrc ]; then
. /etc/bash.bashrc
2018-11-15 10:26:52 +01:00
fi
# User specific environment
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
export PATH
# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=
PS1='$(if [[ $(id -u) -ne 0 ]];then echo "\[\033[01;33m\]"; else echo "\[\033[01;31m\]"; fi) $(if [[ $? == 0 ]]; then printf "\xE2\x9D\xA4"; fi) \[\033[01;32m\]\u\[\033[01;36m\]@\[\033[01;32m\]\H\[\033[01;34m\] <\A> \[\033[01;35m\] \j \[\033[01;36m\] \w \[\033[01;33m\]\n\[\033[01;33m\] $(git branch 2>/dev/null | sed -n "s/* \(.*\)/\1 /p")$\[\033[01;00m\] '
2019-01-19 00:15:14 +01:00
{{ bash['bashrc'] }}
2018-11-15 15:04:18 +01:00
2018-11-15 10:26:52 +01:00
# User specific aliases and functions
alias ll="ls -all"