Home is where the dotfiles are.
-
Clone the repository in some directory:
git clone https://github.com/niksy/dotfiles.git ~/.dotfiles
-
Enter the directory where you’ve cloned dotfiles and run install script with
link
argument:sh dotfiles link
The script will symlink/copy all the necessary files to
~
directory. Follow instructions after the job is done. -
To remove created symlinks and/or remove copied files, run same install script inside
dotfiles
directory, but withunlink
argument:sh dotfiles unlink
.extra
and .gitconfig_extra
can be used to add custom commands without the need to change core files or to add the commands you don’t want to commit to a public repository (e.g. company related information). You put them inside your ~
directory.
.macos_extra
file contains some modifications for installed packages and applications.
.bash_prompt
and everything related to coloring of display is customized to work with Solarized Light theme (specifically, fork by @tomislav). You can find my current macOS terminal preferences inside .init
directory. Typeface in the screenshot is Consolas.
These are some macOS defaults I use, but larger collection can be found in .macos
defaults by Mathias Bynens and in the comments at the top of the file in my repository.
Run the supplied install script with following command (remember, this will work only on macOS):
source ~/.dotfiles/.macos
Installing Homebrew will save your sanity while trying to install packages not available by default on macOS.
If you want the same control for standard macOS apps, try using Homebrew Cask.
Automatic package installation can be done with .brew
script. This will install standard and binary (Cask) packages.
~/.dotfiles/.brew
Before installing Homebrew, you should install Xcode CLI Tools.
If you’re on Mavericks, simply enter xcode-select --install
inside Terminal window and follow instructions.
If you’re on earlier version of macOS, log in to Apple Developer page and find Command Line Tools package (not the whole Xcode).
To verify that CLI tools are installed, check version of some CLI-tools-provided tool, e.g. gcc
, via gcc --version
. If everything is OK, you should see GCC version in your Terminal screen.
The code was taken from many sources and used dotfiles by Mathias Bynens as starting point.
Other sources and inspiration include:
- Paul Irish
- Nicolas Gallagher
- Mislav Marohnić
- Ben Alman
- Henrik Nyh
- Jan Moesen
- Christian Wesselhoeft
- These articles on how to create better bash prompt