From 965c47efef3151e307a7a778980a9d83e91eb3d7 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Tue, 17 Jan 2023 10:00:49 +0200 Subject: [PATCH] zshrc: secret exports, alias and functions files --- config/git/gitignore | 1 + zshrc | 2 ++ 2 files changed, 3 insertions(+) diff --git a/config/git/gitignore b/config/git/gitignore index 034456e..1536119 100644 --- a/config/git/gitignore +++ b/config/git/gitignore @@ -4,6 +4,7 @@ *.cache *~ +*-secret __secret __ignored __test_*.php diff --git a/zshrc b/zshrc index 9da2d04..eca584a 100644 --- a/zshrc +++ b/zshrc @@ -48,7 +48,9 @@ function x-load-configs() # Load the shell dotfiles, and then some: for file in ~/.dotfiles/config/{exports,alias,functions}; do [ -r "$file" ] && [ -f "$file" ] && source "$file" + [ -r "$file-secret" ] && [ -f "$file-secret" ] && source "$file-secret" [ -r "$file-$HOSTNAME" ] && [ -f "$file-$HOSTNAME" ] && source "$file-$HOSTNAME" + [ -r "$file-$HOSTNAME-secret" ] && [ -f "$file-$HOSTNAME-secret" ] && source "$file-$HOSTNAME-secret" done } x-load-configs