aboutsummaryrefslogtreecommitdiff
path: root/content/blog/2022-07-31-bash-it.org
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2025-11-11 22:49:13 -0600
committerChristian Cleberg <[email protected]>2025-11-11 22:49:13 -0600
commit51a7a02f0c96d49b68fbcc155414c218207fa270 (patch)
tree845af8aad0e8769352efc02fcd1044eed9cc1ec1 /content/blog/2022-07-31-bash-it.org
parent7d3e80ebf1dc770eac0e21890b74f18ba2d15a6b (diff)
downloadcleberg.net-51a7a02f0c96d49b68fbcc155414c218207fa270.tar.gz
cleberg.net-51a7a02f0c96d49b68fbcc155414c218207fa270.tar.bz2
cleberg.net-51a7a02f0c96d49b68fbcc155414c218207fa270.zip
fix grammar in 2022 posts
Diffstat (limited to 'content/blog/2022-07-31-bash-it.org')
-rw-r--r--content/blog/2022-07-31-bash-it.org123
1 files changed, 57 insertions, 66 deletions
diff --git a/content/blog/2022-07-31-bash-it.org b/content/blog/2022-07-31-bash-it.org
index d32e973..2d04d7b 100644
--- a/content/blog/2022-07-31-bash-it.org
+++ b/content/blog/2022-07-31-bash-it.org
@@ -5,14 +5,12 @@
* Bash
-For those who are not familiar,
-[[https://en.wikipedia.org/wiki/Bash_(Unix_shell)][Bash]] is a Unix
-shell that is used as the default login shell for most Linux
-distributions. This shell and command processor should be familiar if
-you've used Linux (or older version of macOS) before.
+For those who are not familiar, [[https://en.wikipedia.org/wiki/Bash_(Unix_shell)][Bash]] is a Unix shell that is used as the default
+login shell for most Linux distributions. This shell and command processor
+should be familiar if you've used Linux (or older version of macOS) before.
-However, bash is not the only option. There are numerous other shells
-that exist. Here are some popular examples:
+However, bash is not the only option. There are numerous other shells that
+exist. Here are some popular examples:
- [[https://en.wikipedia.org/wiki/Z_shell][zsh]]
- [[https://en.wikipedia.org/wiki/Fish_(Unix_shell)][fish]]
@@ -20,16 +18,15 @@ that exist. Here are some popular examples:
- [[https://wiki.gentoo.org/wiki/Mksh][mksh]]
- [[https://en.wikipedia.org/wiki/Debian_Almquist_shell][dash]]
-While each shell has its differences, bash is POSIX compliant and the
-default for many Linux users. Because of this, I am going to explore a
-program called =bash-it= below that helps bash users increase the
-utility of their shell without installing a completely new shell.
+While each shell has its differences, bash is POSIX compliant and the default
+for many Linux users. Because of this, I am going to explore a program called
+=bash-it= below that helps bash users increase the utility of their shell
+without installing a completely new shell.
** Installation
-First, if bash is not already installed on your system, you can
-[[https://www.gnu.org/software/bash/][download bash from GNU]] or use
-your package manager to install it.
+First, if bash is not already installed on your system, you can [[https://www.gnu.org/software/bash/][download bash
+from GNU]] or use your package manager to install it.
For example, this is how you can install bash on Fedora Linux:
@@ -37,19 +34,19 @@ For example, this is how you can install bash on Fedora Linux:
sudo dnf install bash
#+end_src
-If you are not using bash as your default shell, use the =chsh= command
-to change your shell:
+If you are not using bash as your default shell, use the =chsh= command to
+change your shell:
#+begin_src sh
chsh
#+end_src
-You should see a prompt like the one below. If the brackets (=[]=)
-contain =bash= already, you're done, and you can simply continue by
-hitting the Enter key.
+You should see a prompt like the one below. If the brackets (=[]=) contain
+=bash= already, you're done, and you can simply continue by hitting the Enter
+key.
-If the brackets contain another shell path (e.g. =/usr/bin/zsh=), enter
-the path to the bash program on your system (it's most likely located at
+If the brackets contain another shell path (e.g. =/usr/bin/zsh=), enter the path
+to the bash program on your system (it's most likely located at
=/usr/bin/bash=).
#+begin_src sh
@@ -57,9 +54,9 @@ Changing shell for <user>.
New shell [/usr/bin/bash]:
#+end_src
-You must log out or restart the machine in order for the login shell to
-be refreshed. You can do it now or wait until you're finished
-customizing the shell.
+You must log out or restart the machine in order for the login shell to be
+refreshed. You can do it now or wait until you're finished customizing the
+shell.
#+begin_src sh
sudo reboot now
@@ -67,31 +64,30 @@ sudo reboot now
* Bash-it
-As noted on the [[https://github.com/Bash-it/bash-it][Bash-it]]
-repository:
+As noted on the [[https://github.com/Bash-it/bash-it][Bash-it]] repository:
#+begin_quote
Bash-it is a collection of community Bash commands and scripts for Bash
3.2+. (And a shameless ripoff of oh-my-zsh 😃)
#+end_quote
-Bash-it makes it easy to install plugins, set up aliases for common
-commands, and easily change the visual theme of your shell.
+Bash-it makes it easy to install plugins, set up aliases for common commands,
+and easily change the visual theme of your shell.
** Installation
To install the framework, simply copy the repository files and use the
-=install.sh= script provided. If you want, you can (and should!) inspect
-the contents of the installation script before you run it.
+=install.sh= script provided. If you want, you can (and should!) inspect the
+contents of the installation script before you run it.
#+begin_src sh
git clone --depth=1 https://github.com/Bash-it/bash-it.git ~/.bash_it
~/.bash_it/install.sh
#+end_src
-If you didn't restart your session after making bash the default, and
-are currently working within another shell, be sure to enter a bash
-session before using =bash-it=:
+If you didn't restart your session after making bash the default, and are
+currently working within another shell, be sure to enter a bash session before
+using =bash-it=:
#+begin_src sh
bash
@@ -100,16 +96,16 @@ bash
** Aliases
Bash-it contains a number of aliases for common commands to help improve
-efficiency in the terminal. To list all available options, use the
-following command:
+efficiency in the terminal. To list all available options, use the following
+command:
#+begin_src sh
bash-it show aliases
#+end_src
-This will provide you a list that looks like the following text block.
-Within this screen, you will be able to see all available options and
-which ones are currently enabled.
+This will provide you a list that looks like the following text block. Within
+this screen, you will be able to see all available options and which ones are
+currently enabled.
#+begin_src txt
Alias Enabled? Description
@@ -140,9 +136,8 @@ bash-it disable alias <alias name> [alias name]... -or- $ bash-it disable alias
** Plugins
-Similar to aliases, plugins are available with bash-it. You can find a
-complete list of plugins in the same way as aliases. Simply execute the
-following:
+Similar to aliases, plugins are available with bash-it. You can find a complete
+list of plugins in the same way as aliases. Simply execute the following:
#+begin_src sh
bash-it show plugins
@@ -177,9 +172,7 @@ bash-it disable plugin <plugin name> [plugin name]... -or- $ bash-it disable plu
** Themes
-There are quite a few pre-defined
-[[https://bash-it.readthedocs.io/en/latest/themes-list/#list-of-themes][themes]]
-available with bash-it.
+There are quite a few pre-defined [[https://bash-it.readthedocs.io/en/latest/themes-list/#list-of-themes][themes]] available with bash-it.
To list all themes:
@@ -187,9 +180,8 @@ To list all themes:
ls ~/.bash_it/themes/
#+end_src
-To use a new theme, you'll need to edit =.bashrc= and alter the
-=BASH_IT_THEME= variable to your desired theme. For example, I am using
-the =zork= theme.
+To use a new theme, you'll need to edit =.bashrc= and alter the =BASH_IT_THEME=
+variable to your desired theme. For example, I am using the =zork= theme.
#+begin_src sh
nano ~/.bashrc
@@ -199,23 +191,22 @@ nano ~/.bashrc
export BASH_IT_THEME='zork'
#+end_src
-Once you save your changes, you just need to exit your terminal and
-create a new one in order to see your changes to the =.bashrc= file. You
-can also =source= the file to see changes, but I recommend starting a
-completely new shell instead.
+Once you save your changes, you just need to exit your terminal and create a new
+one in order to see your changes to the =.bashrc= file. You can also =source=
+the file to see changes, but I recommend starting a completely new shell
+instead.
*** ble.sh
-One big feature I was missing in Bash that both =zsh= and =fish= have is
-an autosuggestion feature. To explain: as you type, an autosuggestion
-feature in the shell will offer suggestions in a lighter font color
-beyond the characters already typed. Once you see the command you want,
-you can click the right arrow and have the shell auto-complete that line
-for you.
+One big feature I was missing in Bash that both =zsh= and =fish= have is an
+autosuggestion feature. To explain: as you type, an autosuggestion feature in
+the shell will offer suggestions in a lighter font color beyond the characters
+already typed. Once you see the command you want, you can click the right arrow
+and have the shell auto-complete that line for you.
-Luckily, the [[https://github.com/akinomyoga/ble.sh][Bash Line Editor]]
-(ble.sh) exists! This program provides a wonderful autosuggestions
-feature perfectly, among other features that I haven't tested yet.
+Luckily, the [[https://github.com/akinomyoga/ble.sh][Bash Line Editor]] (ble.sh) exists! This program provides a wonderful
+autosuggestions feature perfectly, among other features that I haven't tested
+yet.
In order to install ble.sh, execute the following:
@@ -225,16 +216,16 @@ make -C ble.sh install PREFIX=~/.local
echo 'source ~/.local/share/blesh/ble.sh' >> ~/.bashrc
#+end_src
-Again, exit the terminal and open a new one in order to see the
-newly-configured shell.
+Again, exit the terminal and open a new one in order to see the newly-configured
+shell.
* Restart the Session
-Finally, as mentioned above, you'll need to restart the session to
-ensure that your user is using bash by default.
+Finally, as mentioned above, you'll need to restart the session to ensure that
+your user is using bash by default.
-You will also need to exit and re-open a shell (e.g., terminal or
-terminal tab) any time you make changes to the =.bashrc= file.
+You will also need to exit and re-open a shell (e.g., terminal or terminal tab)
+any time you make changes to the =.bashrc= file.
#+begin_src sh
sudo reboot now