From 008d103785a7ccacecc420b2ec1faabcc744d1a4 Mon Sep 17 00:00:00 2001 From: Felix Nehrke Date: Mon, 8 Aug 2022 11:22:17 +0200 Subject: [PATCH] Add possibility to configure local settings Sometimes I have sensitive and system-specific configurations for bash which I want to save. This change is a quick solution to enable this. Maybe another solution involves a setup with encrypted secrets like ansible handles secrets. I should evaluate such a solution in future. --- .bashrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bashrc b/.bashrc index df602be..4c80143 100644 --- a/.bashrc +++ b/.bashrc @@ -73,3 +73,6 @@ alias wiki='vim -c VimwikiIndex -c "cd %:p:h" -c "silent Git pull"' # Enable autocompletion for "config" to manage dotfiles __git_complete config __git_main + +[ -s "$XDG_CONFIG_HOME/bash/local-config" ] && . "$XDG_CONFIG_HOME/bash/local-config" +