From a9e9194a21d2874bc2743d9e31b783ba19cea0a9 Mon Sep 17 00:00:00 2001 From: wyattscarpenter Date: Fri, 20 Sep 2024 17:16:40 -0700 Subject: [PATCH] add bashrc variable --- utilrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/utilrc b/utilrc index ebb071d..281fc92 100755 --- a/utilrc +++ b/utilrc @@ -35,4 +35,9 @@ mkcd() { #MaKe, and Change to, a Directory. See also https://stackoverflow.com/q # Please note that this is case-sensitive. I have not aliased all the case variants; out of personal taste (I always write my REM lines with REM in caps, for visual distinctness), and also so that (*checks notes*) the rem command of the remind package will not conflict with this. This alias also does not end in a space, so the command after it will not be alias-expanded. This particular omission is on purpose (in the rest of the file the omissions were not carefully considered), because REM is supposed to be a comment so the less that is done in there the better. alias REM='#' +# This variable is set just because I dislike typing out ~/.bashrc every time I want to look at my bashrc. (The mess of punctuation slows me down.) +# Note that it will not intelligently track your bashrc location or anything like that. +# The $(echo ) stuff is because tilde expansion won't happen otherwise anywhere in the chain if you try to type `cat $bashrc`; so we have to pre-expand it here. +bashrc="$(echo ~/.bashrc)" + ipse ~/.ipse # For fun, utilrc runs `ipse` (on shell startup), which is like `fortune`. It runs it on ~/.ipse, which I intend you to symlink to the actual ipse file you care about that lives somewhere else. (Notably, since ipse handles directories in a recursive manner, your .ipse file can be a directory of symlinks to other documents, or even a symlink to a directory of symlinks... etc...) You may also make .ipse an empty file to suppress this behavior.