From f03adf82f0893630f8e4340435e274ac6413b625 Mon Sep 17 00:00:00 2001 From: Ella Grapp Date: Sun, 3 May 2020 16:13:36 -0400 Subject: hostname-specific bashrc file --- dot/bashrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'dot/bashrc') diff --git a/dot/bashrc b/dot/bashrc index d45f398..bef8fc6 100644 --- a/dot/bashrc +++ b/dot/bashrc @@ -404,3 +404,9 @@ newfile() { find . -maxdepth 1 -type f -printf "%T@ %f\0" | sort -z -k1,1 -r | head -z -n1 | cut -d' ' -f2 | xargs -0 printf %s } + +local_bashrc=~/.bashrc.$(hostname) + +if [ -f "$local_bashrc" ]; then + . "$local_bashrc" +fi -- cgit v1.2.3