Corrected «Bash» to «bash» (finally)

This commit is contained in:
Kenneth John Odle 2024-06-13 20:26:23 -04:00
parent eed6502ae0
commit df93f92e98

View File

@ -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;
}