https://github.com/bryik/dotfiles
Helpful Bash customizations.
https://github.com/bryik/dotfiles
bash wsl
Last synced: about 1 month ago
JSON representation
Helpful Bash customizations.
- Host: GitHub
- URL: https://github.com/bryik/dotfiles
- Owner: bryik
- Created: 2018-10-07T01:37:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-19T01:00:01.000Z (about 7 years ago)
- Last Synced: 2025-05-29T12:10:28.121Z (about 1 year ago)
- Topics: bash, wsl
- Language: Shell
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bash-functions
A collection of Bash customizations.
## Install
### In `~/.bashrc`
Copy and paste any function or alias directly into `~/.bashrc` and then run `exec bash` (or just close and re-open your terminal).
### In separate files
I like to separate my aliases and functions into separate files: `~/.bash_aliases` and `~/.bash_functions`.
These can be "imported" into `~/.bashrc` with:
```bash
# Alias definitions.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# Function definitions.
if [ -f ~/.bash_functions ]; then
. ~/.bash_functions
fi
```