Dotfiles
Installation
These instructions are to be followed when installing these dotfiles on a new machine. Do these steps:
-
XCode: If running on a Mac, you need part of XCode. You don't need the whole XCode. Just run any command that is in Apple's Command Line Tools and it will prompt to install them. For example, just open
Terminal.app
and run$ make
. -
Homebrew: install it following the website's instructions.
-
Git: ensure you have
git
installed (it's present by default on macOS). -
zsh: install zsh with
$ brew install zsh
, then add the new installedzsh
to/etc/shells
(so thatchsh
will consider it a "safe" shell) and change to the newly added shell:echo "$(which zsh)" | sudo tee -a /etc/shells > /dev/null chsh -s "$(which zsh)" "$(whoami)"
On macOS, be sure to:
- delete
/etc/zprofile
- empty out
/etc/paths
- remove
path_helper
-related lines from/etc/profile
as they slow things down and mess up with
PATH
. - delete
-
Ensure you have the
$DOTFILES
environment variable set. For example:export DOTFILES="$HOME/dotfiles"
-
Copy SSH keys from 1Password.
-
Clone the dotfiles and run the setup script:
git clone [email protected]:whatyouhide/dotfiles.git "$DOTFILES" cd "$DOTFILES" ./setup
-
You should have
hub
installed (if not,brew install hub
). Go to https://github.com/settings/tokens and generate a new token with allrepo
permissions. Copy the token and use it as a password when runninghub clone SOME_REPO
. Otherwise, paste it into~/.config/hub
. -
asdf: if you're using asdf installed through Homebrew, then figure out the prefix with
brew --prefix asdf
(for example,/usr/local/opt/asdf
) and use that in these lines:-
Add
source /usr/local/opt/asdf/asdf.sh
to~/.zshenv-extra
-
If you want to use Elixir master from a local installation, clone Elixir and then do:
ln -sv /path/to/elixir ~/.asdf/installs/elixir/master asdf reshim elixir master
-