SixArm.com » Bash shell » /etc/bash* system configuration files
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bash_aliases.d
bash_completion.d
bash_functions.d
bash_on_cygwin.d
bash_on_darwin.d
bash_on_linux.d
bash_scripts.d
CODEOWNERS
CONTRIBUTING.md
README.md
bash_aliases
bash_completion
bash_functions
bash_on_cygwin
bash_on_darwin
bash_on_linux
bash_scripts
bashrc
install

README.md

SixArm.com → Bash shell →
/etc/bash* files for system setup

This repo has bash shell files, aliases, completions, functions, scripts, etc.

Install

To install for your user account:

git clone https://github.com/SixArm/sixarm_bash_etc_files.git
cd sixarm_bash_etc_files
... look through the files and copy anything you like to your own .bashrc ...

To install for all user accounts and potentially overwrite system bash files:

git clone https://github.com/SixArm/sixarm_bash_etc_files.git
sudo cp -R sixarm_bash_etc_files/bash* /etc

Contents

We create these files and directories in /etc:

bashrc
bash_aliases
bash_aliases.d/
bash_completions
bash_completions.d/
bash_functions
bash_functions.d/
bash_scripts
bash_scripts.d/

Platforms

Platform-specific code goes in platform-specific files:

bash_on_cygwin
bash_on_cygwin.d/
bash_on_darwin
bash_on_darwin.d/
bash_on_linux
bash_on_linux.d/

Locations

The main bashrc script will source all the above, if they exist:

/etc/bash_scripts 
/etc/bash_scripts.d/*
~/.bash_scripts
~/.bash_scripts.d/*

And so on for the other areas.