From 3eae2889cd0c50621b7219dc1c6b79f488b90021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 8 Apr 2021 11:13:49 +0200 Subject: Move most of the shellrc files outside of /etc The /etc is not updated automatically as that is place for configuration files. Deploying it to different location makes a lot of more sense. --- bashrc.d/shellrc | 2 +- install | 8 ++++---- zshrc.d/shellrc | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/bashrc.d/shellrc b/bashrc.d/shellrc index 9aef21c..e938444 100644 --- a/bashrc.d/shellrc +++ b/bashrc.d/shellrc @@ -1,5 +1,5 @@ # vim: ft=sh -for sh in /etc/shellrc.d/*; do +for sh in /usr/share/shellrc/*; do [ -r "$sh" ] && . "$sh" done diff --git a/install b/install index 422eaf0..cd42670 100755 --- a/install +++ b/install @@ -54,13 +54,13 @@ done # Install shellrc if $U_BASE; then - mkdir -p "$I_PREFIX/etc/shellrc.d" - cp -r shellrc.d/. "$I_PREFIX/etc/shellrc.d" + mkdir -p "$I_PREFIX/usr/share/shellrc" + cp -r shellrc.d/. "$I_PREFIX/usr/share/shellrc/" fi if $U_DESKTOP; then - mkdir -p "$I_PREFIX/etc/shellrc.d" - cp -r shellrc.d-desktop/. "$I_PREFIX/etc/shellrc.d" + mkdir -p "$I_PREFIX/usr/share/shellrc" + cp -r shellrc.d-desktop/. "$I_PREFIX/usr/share/shellrc/" fi if $U_BASH; then diff --git a/zshrc.d/shellrc b/zshrc.d/shellrc index b3162f7..049e5fc 100644 --- a/zshrc.d/shellrc +++ b/zshrc.d/shellrc @@ -1,5 +1,5 @@ # vim: ft=zsh -for sh in /etc/shellrc.d/*; do +for sh in /usr/share/shellrc/*; do [ -r "$sh" ] && . "$sh" done -- cgit v1.2.3