summaryrefslogtreecommitdiff
path: root/misc/dotfiles/bashrc.j2
blob: 4a872fc44f2ec4449f7d5048a0da8d7776c9e981 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Source system-wide settings of there are any.
if [ -f /etc/bashrc ]; then
    . /etc/bashrc
fi

{% if ansible_facts['os_family'] == "Darwin" %}
# Specific settings for macOS.
if [[ "$OSTYPE" == "darwin"* ]]; then

# Silence bash deprecation warning.
export BASH_SILENCE_DEPRECATION_WARNING=1

# Enable colors for `ls` output.
export CLICOLOR=1

# Get GitHub token from keychain to avoid homebrew rate limiting on GitHub
# side.
export HOMEBREW_GITHUB_API_TOKEN=`security \
    find-generic-password -s "Homebrew GitHub Token" -w`

fi
{% endif %}