Skip to content

j8seangel/dotfiles-bash

 
 

Repository files navigation

j8seangel dotfiles

My own dotfiles based on David Inga’s dotfiles.

Alt text

Installation

First, install the Command Line Tools:

xcode-select --install

and Homebrew.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Then we can install brew dependencies:

./brew.sh

Add the new shell to the list of legit shells:

sudo bash -c "echo /usr/local/bin/bash >> /private/etc/shells"

Change the shell for the user

chsh -s /usr/local/bin/bash

Usage

You can clone the repository wherever you want. The bootstrapper script will pull in the latest version and copy the files to your home folder.

git clone https://github.com/j8seangel/dotfiles.git && cd dotfiles && source install.sh

To update, cd into your local dotfiles repository and then:

source install.sh

To setup the macosx configuration, run:

source macosx.sh

Add files

If ~/.path exists, it will be sourced along with the other files, before any feature testing (such as detecting which version of ls is being used) takes place.

Here’s an example ~/.path file that adds /usr/local/bin to the $PATH:

export PATH="/usr/local/bin:$PATH"

If ~/.extra exists, it will be sourced along with the other files. You can use this to add a few custom commands without the need to fork this entire repository, or to add commands you don’t want to commit to a public repository.

My ~/.extra looks something like this:

GIT_AUTHOR_NAME="Your name"
GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME"
git config --global user.name "$GIT_AUTHOR_NAME"
GIT_AUTHOR_EMAIL="[email protected]"
GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL"
git config --global user.email "$GIT_AUTHOR_EMAIL"

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b feature/my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin feature/my-new-feature
  5. Submit a pull request :D

About

my own dotfiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 95.4%
  • Vim Script 4.6%