Skip to content

bashrc.d collects some alias, path, ps1, and editor definitions

License

Notifications You must be signed in to change notification settings

lifuzu/bashrc.d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bashrc.d

bashrc.d collects some alias, path, ps1, and editor definitions

###Setup

  1. Clone the repo to your $HOME directory:

cd ~
git clone https://github.com/lifuzu/bashrc.d.git .bashrc.d 
  1. Append the following content to your ~/.bashrc

OS=$( uname | tr '[:upper:]' '[:lower:]')
if [ -d $HOME/.bashrc.d ]; then
    for SCRIPT in $( ls $HOME/.bashrc.d/${OS}/* ); do
        . ${SCRIPT}
    done
fi
  1. Enable it run the command:

source ~/.bashrc
  1. Or open a new terminal
  2. Done!

###Validate

  1. Go into ~/.bashrc.d

cd ~/.bashrc.d 
  1. Try run 'gs', which trigger 'git status' command.

gs 
  1. Enjoy!

About

bashrc.d collects some alias, path, ps1, and editor definitions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published