Collection of dotfiles that can be used to quickly setup a new macOS.
This repo requires both git and stow to be installed on the target machine.
If so, run:
export $DOTFILES_REPO_DIR=$HOME/dotfiles
git clone git@github.com:pasquale95/dotfiles.git $DOTFILES_REPO_DIR
cd $DOTFILES_REPO_DIR
# install dotfiles (without the deps)
./install.shThe installation process fails if there are conflicting files. In that case, run:
# backs up conflicting files and forces installation
./install.sh --forceSome aliases and functions require some packages to be installed. If you want, you can install them by running:
# install dotfiles and dependencies through "brew"
./install.sh --depsNOTE: the external packages that are needed are installed via brew on both macOS and Linux, to share the same user experience across the platforms.
To uninstall:
./uninstall.shBy installing this repo, you will get some shell functions that can be useful to handle the dotfiles within your shell.
dot allows to quickly go into the dotfiles folder:
# go to $DOTFILES_REPO_DIR from anywhere
dotTo install dotfiles, run:
dot-installTo remove dotfiles, run:
dot-uninstallTo get the latest dotfiles and install them, run:
dot-syncYou can add a shared environment variable, run:
# this env variable will be synced with the other machines
dot-add-env NEW_ENV_VAR=new_value
# or
dot-add-env NEW_ENV_VAR new_valueIf you want to add an environment variable only for the local machine, run:
# this env variable will not be synced with the other machines
dot-add-env --local NEW_ENV_VAR=new_value
# or
dot-add-env --local NEW_ENV_VAR new_value