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
|
|
|
|
|
2020-11-13 11:30:51 +01:00
|
|
|
# enable color support of ls and also add handy aliases
|
|
|
|
if [ -x /usr/bin/dircolors ]; then
|
|
|
|
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
|
2020-11-13 14:28:57 +01:00
|
|
|
{% for alias in dotfiles__aliases %}
|
2020-11-13 11:30:51 +01:00
|
|
|
{% if alias.color %}
|
|
|
|
alias {{ alias.alias }}="{{ alias.command }} --color=auto"
|
|
|
|
{% endif%}
|
|
|
|
{% endfor %}
|
|
|
|
fi
|
2018-11-15 10:26:52 +01:00
|
|
|
|
2020-11-13 14:28:57 +01:00
|
|
|
{% for alias in dotfiles__aliases %}
|
2020-11-13 11:30:51 +01:00
|
|
|
{% if not alias.color %}
|
|
|
|
alias {{ alias.alias }}="{{ alias.command }}"
|
|
|
|
{% endif%}
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
# hostory controll
|
2020-11-13 14:28:57 +01:00
|
|
|
HISTCONTROL={{ dotfiles__history_control }}
|
2020-11-13 11:30:51 +01:00
|
|
|
shopt -s histappend
|
2020-11-13 14:28:57 +01:00
|
|
|
HISTSIZE={{ dotfiles__history_size }}
|
|
|
|
HISTFILESIZE={{ dotfiles__history_file_size }}
|
2020-11-13 11:30:51 +01:00
|
|
|
|
2020-11-13 14:28:57 +01:00
|
|
|
{% for _row in dotfiles__additional_user_bashrc_lines | default() %}
|
2020-11-13 11:30:51 +01:00
|
|
|
{{ _row }}
|
|
|
|
{% endfor %}
|
|
|
|
|
2020-11-13 14:28:57 +01:00
|
|
|
{% for custom in dotfiles__custom_config %}
|
2020-11-13 11:30:51 +01:00
|
|
|
{% if custom.user == item %}
|
|
|
|
{{ custom.cmd }}
|
2019-03-08 11:33:28 +01:00
|
|
|
{% endif %}
|
2020-11-13 11:30:51 +01:00
|
|
|
{% endfor %}
|
2018-11-15 15:04:18 +01:00
|
|
|
|
2020-11-13 11:30:51 +01:00
|
|
|
# vim:ts=4:sw=4
|