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'] }}
|
2019-03-08 11:33:28 +01:00
|
|
|
{% if install_keychain %}
|
|
|
|
{{ bash['keychain'] }}
|
|
|
|
{% endif %}
|
2018-11-15 15:04:18 +01:00
|
|
|
|
2019-03-15 11:17:38 +01:00
|
|
|
{{ extra_bashrc }}
|
|
|
|
|
2018-11-15 10:26:52 +01:00
|
|
|
# User specific aliases and functions
|
|
|
|
alias ll="ls -all"
|
|
|
|
|