https://github.com/davidjguru/scripting_for_bash
Some bash scripting for daily life.
https://github.com/davidjguru/scripting_for_bash
Last synced: 3 months ago
JSON representation
Some bash scripting for daily life.
- Host: GitHub
- URL: https://github.com/davidjguru/scripting_for_bash
- Owner: davidjguru
- Created: 2021-09-07T09:35:19.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-18T16:19:00.000Z (9 months ago)
- Last Synced: 2025-04-02T02:55:05.147Z (9 months ago)
- Language: Shell
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# scripting_for_bash
Some bash scripting for daily life.
# Use
Just go to your /home and edit .bashrc main file. Then just add:
```
# Alias definitions.
# You may want to put all your additions into a separate file like
# ~/.bash_aliases, instead of adding them here directly.
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
if [ -f ~/.bash_functions ]; then
. ~/.bash_functions
fi
```
And finally reload the main .bashrc file by doing:
```
$ source .bashrc
```
Now you will have all the aliases and functions available from your prompt. Check new features with a single example, cleaning your console:
```
$ c
```
This alias is for command `clear` and if it clean your console, It works! enjoy and happy hacking!
@davidjguru, davidjguru@gmail.com 2021 - 2022