From df93f92e98541e528da05d5ece80347e5f7e86ec Mon Sep 17 00:00:00 2001 From: Kenneth Odle Date: Thu, 13 Jun 2024 20:26:23 -0400 Subject: [PATCH] =?UTF-8?q?Corrected=20=C2=ABBash=C2=BB=20to=20=C2=ABbash?= =?UTF-8?q?=C2=BB=20(finally)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 004/codex-004.tex | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/004/codex-004.tex b/004/codex-004.tex index 92fdb74..9f0cf5d 100644 --- a/004/codex-004.tex +++ b/004/codex-004.tex @@ -317,7 +317,7 @@ Back in issue \#2 I talked about using bash aliases to make your life easier. I' \newpage -\begin{Verbatim}[frame=lines, numbers=left, xleftmargin=5mm, framesep=3mm, breaklines=true, label=\fbox{Bash aliases for git}] +\begin{Verbatim}[frame=lines, numbers=left, xleftmargin=5mm, framesep=3mm, breaklines=true, label=\fbox{bash aliases for git}] alias gits="git status" alias gita="git add *" alias gitx="git add *.tex" @@ -339,7 +339,7 @@ alias giti="git add .gitignore" Of course, if I were changing my \textit{.gitignore} file that often, I would start to quite rightly question some of the other choices I've been making with my life. -\section{Bash Commands for \textit{git}} +\section{bash Commands for \textit{git}} It would be nice if we could do the same sort of thing for \texttt{git commit}, but we can't, because we need to add a message to our commit. In other words, it requires an \textit{argument}. So for that, we need to add a \textit{function} to bash. @@ -377,7 +377,7 @@ Admittedly, this doesn't save us a ton of keystrokes every time we use it, but i As it turns out, you can add more than a single command to a bash function. For example, you can use this -\begin{Verbatim}[frame=lines, numbers=left, xleftmargin=5mm, framesep=3mm, breaklines=true, label=\fbox{Bash function with multiple commands}] +\begin{Verbatim}[frame=lines, numbers=left, xleftmargin=5mm, framesep=3mm, breaklines=true, label=\fbox{bash function with multiple commands}] cdl() { cd "$1" && ls -ahl; }