Forked from Caarlos0 dotfiles
First, make sure you have all those things installed:
git: to clone the repocurl: to download some stufftar: to extract downloaded stufffish: the shellsudo: some configs may need that
Then, run these steps:
git clone https://github.com/stvmachine/dotfiles_v2 ~/.dotfiles
cd ~/.dotfiles
./script/bootstrap.fishRun brew bundle from macos folder
cd macos
brew bundleAll changed files will be backed up with a
.backupsuffix.
To update, you just need to git pull and run the bootstrap script again:
cd ~/.dotfiles
git pull origin master
./script/bootstrap.fishReverting is not totally automated, but it pretty much consists in removing the fish config and dotfiles folder, as well as moving back some config files.
rm -rf ~/.dotfiles $__fish_config_dirThe bootstrap script would have created a bunch of symlinks that will now be broken.
You will have to investigate those manually.
In cases a file already existed, the boostrap script should have created a .backup file with the same name.
All tools below are compatible with Fish shell and Starship prompt:
bata cat(1) clone with wings;fzffor a fuzzy-finder (with Fish integration);ghfor more GitHub integration with the terminal;grcto colorize command's outputs;starship.rsthe prompt we are using (Fish is the shell);
Facing the setup of a new machine (or the need to reinstall after a fresh OS install or the like), here's a very brief and basic list of the usual suspects, related to the setup of a mac computer to work with (mostly related to a scripting languages context).
The package manager is the default first thing I always install. Simply following the default steps. Homebrew should download and install the Command Line Tools for Xcode automatically, but if it doesn't work, you can install them manually:
xcode-select --installInstall brew and install apps
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew bundle --file ~/.dotfiles/macos/Brewfile You use it by running:
~/.dotfiles/macos/set-defaults.shAnd logging out and in again or restart.
Thanks to alexramirez: https://github.com/alexramirez/mac-setup