diff options
author | Karel Kočí <cynerd@email.cz> | 2021-04-08 11:13:49 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2021-04-08 11:13:49 +0200 |
commit | 3eae2889cd0c50621b7219dc1c6b79f488b90021 (patch) | |
tree | 9030973b389ad30decc2b40b0a87a62307bee611 | |
parent | bdbceacf4c2070912ad4875ff6d901e667b6a5f4 (diff) | |
download | shellrc-0.8.0.tar.gz shellrc-0.8.0.tar.bz2 shellrc-0.8.0.zip |
Move most of the shellrc files outside of /etcv0.8.0
The /etc is not updated automatically as that is place for configuration
files. Deploying it to different location makes a lot of more sense.
-rw-r--r-- | bashrc.d/shellrc | 2 | ||||
-rwxr-xr-x | install | 8 | ||||
-rw-r--r-- | 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 @@ -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 |