From 2b29e812468ae2f33a4d37e2e280b7080f11ee86 Mon Sep 17 00:00:00 2001 From: Dmitry Ilvokhin Date: Sat, 24 Feb 2024 18:36:32 +0000 Subject: Add simple dotfiles management playbook --- misc/dotfiles/bashrc.j2 | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 misc/dotfiles/bashrc.j2 (limited to 'misc/dotfiles/bashrc.j2') diff --git a/misc/dotfiles/bashrc.j2 b/misc/dotfiles/bashrc.j2 new file mode 100644 index 0000000..4a872fc --- /dev/null +++ b/misc/dotfiles/bashrc.j2 @@ -0,0 +1,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 %} -- cgit v1.2.3-70-g09d2