summaryrefslogtreecommitdiff
path: root/src/content/tils/2020/11/12/useful-bashvars.adoc
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-04-16 11:20:43 -0300
committerEuAndreh <eu@euandre.org>2025-04-16 11:20:43 -0300
commitd36c2e459a74ec67e523539eb98b78b95b01432a (patch)
treea7099fbfbdab6a21f59b6efe095bffb40ceae646 /src/content/tils/2020/11/12/useful-bashvars.adoc
parentsrc/content/style.css: Show header on hover only (diff)
downloadeuandre.org-d36c2e459a74ec67e523539eb98b78b95b01432a.tar.gz
euandre.org-d36c2e459a74ec67e523539eb98b78b95b01432a.tar.xz
src/content/: Normalize [source,$lang] code blocks
Diffstat (limited to 'src/content/tils/2020/11/12/useful-bashvars.adoc')
-rw-r--r--src/content/tils/2020/11/12/useful-bashvars.adoc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/content/tils/2020/11/12/useful-bashvars.adoc b/src/content/tils/2020/11/12/useful-bashvars.adoc
index 84b93c3..fb148fb 100644
--- a/src/content/tils/2020/11/12/useful-bashvars.adoc
+++ b/src/content/tils/2020/11/12/useful-bashvars.adoc
@@ -13,7 +13,7 @@ on the terminal.
The {bash-bang-bang}[`!!` variable] refers to the previous command, and I find
useful when following chains for symlinks:
-[source,shell]
+[source,sh]
----
$ which git
/run/current-system/sw/bin/git
@@ -25,7 +25,7 @@ readlink $(which git)
It is also useful when you forget to prefix `sudo` to a command that requires
it:
-[source,shell]
+[source,sh]
----
$ requires-sudo.sh
requires-sudo.sh: Permission denied
@@ -43,7 +43,7 @@ The {bash-dollar-underscore}[`$_` variable] will give you the most recent
parameter you provided to a previous argument, which can save you typing
sometimes:
-[source,shell]
+[source,sh]
----
# instead of...
$ mkdir -p a/b/c/d/