15 lines
394 B
Markdown
15 lines
394 B
Markdown
Snippets you can source from your `.bash_profile`.
|
|
|
|
To install them all, copy them to ~/.bash.d and add this to your shell init script:
|
|
|
|
```
|
|
for partial in $(ls ~/.bash.d/*.sh); do
|
|
source $partial
|
|
done
|
|
```
|
|
|
|
You may also want to ensure you have this near the top of your bashrc, to avoid executing all of these scripts for every non-interactive bash script:
|
|
|
|
```
|
|
[[ $- != *i* ]] && return
|
|
```
|