File git-50-845b509c9a005340a0455cb8a7fe084d1b8f1946.patch of Package aaa_base.37831
From 845b509c9a005340a0455cb8a7fe084d1b8f1946 Mon Sep 17 00:00:00 2001 From: Werner Fink <werner@suse.de> Date: Mon, 11 Mar 2024 13:32:58 +0100 Subject: [PATCH] Add mc helpers for both tcsh and bash resources boo#1203617 Signed-off-by: Werner Fink <werner@suse.de> --- files/etc/bash.bashrc | 6 ++++++ files/etc/csh.cshrc | 5 ++++- 2 files changed, 10 insertions(+), 1 deletion(-) --- a/files/etc/bash.bashrc +++ b/files/etc/bash.bashrc 2024-11-11 12:11:51.041184190 +0000 @@ -92,6 +92,12 @@ test -z "$EUID" && readonly EUID=`_path test -s /etc/profile.d/ls.bash && . /etc/profile.d/ls.bash +if test -s /etc/profile.d/mc.sh +then . /etc/profile.d/mc.sh +elif test -s /usr/share/mc/mc.sh +then . /usr/share/mc/mc.sh +fi + # # Avoid trouble with Emacs shell mode # --- a/files/etc/csh.cshrc +++ b/files/etc/csh.cshrc 2024-11-11 12:20:08.940111809 +0000 @@ -4,6 +4,8 @@ # # This file sources /etc/profile.d/complete.tcsh and # /etc/profile.d/bindkey.tcsh used especially by tcsh. +# For Midnight Commander (mc) also /etc/profile.d/mc.csh +# is sourced. # # PLEASE DO NOT CHANGE /etc/csh.cshrc. There are chances that your changes # will be lost during system upgrades. Instead use /etc/csh.cshrc.local for @@ -106,8 +108,9 @@ unset autologout unset ignoreeof if (-r /etc/profile.d/ls.tcsh) source /etc/profile.d/ls.tcsh - if (-r /etc/profile.d/alias.tcsh) source /etc/profile.d/alias.tcsh +if (-r /etc/profile.d/mc.csh) source /etc/profile.d/mc.csh + # # Prompting and Xterm title #