Skip to content

stvmachine/dotfiles_v2

Repository files navigation

Forked from Caarlos0 dotfiles

Installation

Dependencies

First, make sure you have all those things installed:

  • git: to clone the repo
  • curl: to download some stuff
  • tar: to extract downloaded stuff
  • fish: the shell
  • sudo: some configs may need that

Install

Then, run these steps:

git clone https://github.com/stvmachine/dotfiles_v2 ~/.dotfiles
cd ~/.dotfiles
./script/bootstrap.fish

Mac brew install

Run brew bundle from macos folder

cd macos
brew bundle

All changed files will be backed up with a .backup suffix.

Update

To update, you just need to git pull and run the bootstrap script again:

cd ~/.dotfiles
git pull origin master
./script/bootstrap.fish

Revert

Reverting 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_dir

The 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.

Recommended Software

All tools below are compatible with Fish shell and Starship prompt:

  • bat a cat(1) clone with wings;
  • fzf for a fuzzy-finder (with Fish integration);
  • gh for more GitHub integration with the terminal;
  • grc to colorize command's outputs;
  • starship.rs the prompt we are using (Fish is the shell);

Mac Setup

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 --install

Install brew and install apps

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

brew bundle --file ~/.dotfiles/macos/Brewfile 

macOS defaults

You use it by running:

~/.dotfiles/macos/set-defaults.sh

And logging out and in again or restart.

Acknowledge

Thanks to alexramirez: https://github.com/alexramirez/mac-setup

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Contributors 8