aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2021-04-08 11:13:49 +0200
committerKarel Kočí <cynerd@email.cz>2021-04-08 11:13:49 +0200
commit3eae2889cd0c50621b7219dc1c6b79f488b90021 (patch)
tree9030973b389ad30decc2b40b0a87a62307bee611
parentbdbceacf4c2070912ad4875ff6d901e667b6a5f4 (diff)
downloadshellrc-3eae2889cd0c50621b7219dc1c6b79f488b90021.tar.gz
shellrc-3eae2889cd0c50621b7219dc1c6b79f488b90021.tar.bz2
shellrc-3eae2889cd0c50621b7219dc1c6b79f488b90021.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/shellrc2
-rwxr-xr-xinstall8
-rw-r--r--zshrc.d/shellrc2
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