From 9691ca5afeae53c84dd8e9e5d71c58decf7676b4 Mon Sep 17 00:00:00 2001 From: Hippolyte Chauvin Date: Sun, 4 Jun 2023 07:27:17 +0200 Subject: [PATCH] =?UTF-8?q?Remaniement=20:=20cr=C3=A9ation=20du=20dossier?= =?UTF-8?q?=20usr/local/etc/sh/shrc.d?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- home/zshrc | 9 +++++++++ .../bashrc.d => usr/local/etc/sh/shrc.d}/aliases.bashrc | 0 .../local/etc/sh/shrc.d}/functions.bashrc | 0 3 files changed, 9 insertions(+) rename {etc/bash/bashrc.d => usr/local/etc/sh/shrc.d}/aliases.bashrc (100%) rename {etc/bash/bashrc.d => usr/local/etc/sh/shrc.d}/functions.bashrc (100%) diff --git a/home/zshrc b/home/zshrc index 9422bda..bf9f787 100644 --- a/home/zshrc +++ b/home/zshrc @@ -12,6 +12,15 @@ autoload -Uz compinit compinit # End of lines added by compinstall +# Source the system wid bash configuration +shrc_d=/usr/local/etc/sh/shrc.d +if [ -d "$shrc_d" ]; then + for i in "${shrc_d}/"*; do + . "$i" + done +fi +unset shrc_d + # Bindings # create a zkbd compatible hash; # to add other keys to this hash, see: man 5 terminfo diff --git a/etc/bash/bashrc.d/aliases.bashrc b/usr/local/etc/sh/shrc.d/aliases.bashrc similarity index 100% rename from etc/bash/bashrc.d/aliases.bashrc rename to usr/local/etc/sh/shrc.d/aliases.bashrc diff --git a/etc/bash/bashrc.d/functions.bashrc b/usr/local/etc/sh/shrc.d/functions.bashrc similarity index 100% rename from etc/bash/bashrc.d/functions.bashrc rename to usr/local/etc/sh/shrc.d/functions.bashrc