https://github.com/marcel-haag/bashscriptingdemo
A practical demo to Linux command-line, Bash scripting, and Shell programming
https://github.com/marcel-haag/bashscriptingdemo
bash-scripts command-line shell-scripts tools
Last synced: 19 days ago
JSON representation
A practical demo to Linux command-line, Bash scripting, and Shell programming
- Host: GitHub
- URL: https://github.com/marcel-haag/bashscriptingdemo
- Owner: marcel-haag
- Created: 2021-10-28T12:48:35.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-01T18:09:58.000Z (over 4 years ago)
- Last Synced: 2026-01-01T02:36:55.315Z (5 months ago)
- Topics: bash-scripts, command-line, shell-scripts, tools
- Language: Shell
- Homepage:
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# BashScriptingDemo
A practical demo to Linux command-line, Bash scripting, and Shell programming
## About this Repository
This is the code repository for my own work through of the Mastering Linux Shell Scripting - Second Edition, published by [Packt](https://www.packtpub.com/?utm_source=github). \
It contains the project files from the book from start to finish as well as some additional scripts.
## Configure bash text editor
### vim `$HOME/.vimrc`
`set showmode` \
Ensures we see when we are in insert mode \
`set nohlsearch`\
Does not highlight the words that we have searched for \
`set autoindent` \
We indent our code often; this allows us to return to the last indent level rather than the start of a new line on each line break \
`set tabstop=4` \
Sets a tab to be four spaces \
`set expandtab` \
Converts tab into spaces, which is useful when the file moves to other systems \
`syntax on` \
**Note:** This does not use the `set` command and is used to turn on syntax highlighting
### nano `$HOME/.nanorc`
`set autoindent` \
`set tabsize 4` \
`include /usr/share/nano/sh.nanorc`