From d32c1cc6341582324be7e12280ebc3dbfed1f0a5 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Fri, 16 Aug 2024 21:07:54 +0300 Subject: [PATCH] Help : Fix bashrc location. --- home/program/bash/module/Help.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/program/bash/module/Help.nix b/home/program/bash/module/Help.nix index 933c83d2..1949c923 100644 --- a/home/program/bash/module/Help.nix +++ b/home/program/bash/module/Help.nix @@ -10,7 +10,7 @@ return 2 fi - cat /etc/bashrc | sed -n -e "/^function ''${fun}()/q;p" | tac | sed -n -e "/^[^#]/q;p" | tac | sed -e "s/^# \+//" -e "\$i \ " | sed "1{/^$/d}" | sed "1{/^ *$/d}" + cat ~/.bashrc | sed -n -e "/^function ''${fun}()/q;p" | tac | sed -n -e "/^[^#]/q;p" | tac | sed -e "s/^# \+//" -e "\$i \ " | sed "1{/^$/d}" | sed "1{/^ *$/d}" } # Short for help.