https://github.com/ggldnl/bash
My collection of bash functions and aliases
https://github.com/ggldnl/bash
aliases bash functions
Last synced: about 2 months ago
JSON representation
My collection of bash functions and aliases
- Host: GitHub
- URL: https://github.com/ggldnl/bash
- Owner: ggldnl
- Created: 2022-05-17T19:35:34.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-15T09:47:25.000Z (over 3 years ago)
- Last Synced: 2025-03-03T16:49:00.130Z (over 1 year ago)
- Topics: aliases, bash, functions
- Language: Shell
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My collection of bash functions and aliases
This is my collection of bash functions and aliases. Some of the functions are os specific so before sourcing the files we will need to set two variables (well, actually only `OS_NAME` is strictly required) in order to import only the ones that we will actually need on the current system:
```bash
echo "export OS_NAME=\$(head -n 1 /etc/os-release | sed -e 's/^.*=//' -e 's/\"//g')" >> .bashrc
echo "export VERBOSE_SCRIPT=false" >> .bashrc
```
After doing that:
```bash
echo "# aliases & functions" >> .bashrc
echo "source ~/.bash_aliases" >> .bashrc
echo "source ~/.bash_functions" >> .bashrc
```