As of ~/.bashrc having space prefixed exclude pattern in HISTIGNORE no need for dedicated file, just add a symlink!
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 18 Sep 2021 23:32:53 +0300
changeset 994 247f27cfcf68
parent 993 43ccab60bb32
child 995 62df95ab609e
As of ~/.bashrc having space prefixed exclude pattern in HISTIGNORE no need for dedicated file, just add a symlink!
.local/share/mc/bashrc
Makefile
--- a/.local/share/mc/bashrc	Sat Sep 18 23:31:05 2021 +0300
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,9 +0,0 @@
-# -*- mode: sh -*-
-
-if [[ -f $HOME/.bashrc ]]; then
-  . $HOME/.bashrc
-fi
-
-# TIP: MC command start with space.
-export HISTIGNORE=$HISTIGNORE:" *"
-
--- a/Makefile	Sat Sep 18 23:31:05 2021 +0300
+++ b/Makefile	Sat Sep 18 23:32:53 2021 +0300
@@ -148,7 +148,7 @@
 	ln -s -f $(HOME)/.bashrc $(HOME)/.bash_profile
 	mkdir -p $(HOME)/.config/mc $(HOME)/.local/share/mc/
 	umask 0117
-	$(INSTALL_DATA) .local/share/mc/bashrc $(HOME)/.local/share/mc/
+	ln -s -f $(HOME)/.bashrc $(HOME)/.local/share/mc/bashrc
 	cat .config/mc/mc.ext /etc/mc/mc.ext > $(HOME)/.config/mc/mc.ext
 ifneq '' '$(filter $(host_os),cygwin linux)'
 	if command -v file 1>/dev/null; then