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/caarlos0/dotfiles.fish.git ~/.dotfiles
$ cd ~/.dotfiles
$ ./script/bootstrap.fish
All changed files will be backed up with a
.backup
suffix.
To update, you just need to git pull
and run the bootstrap script again:
$ cd ~/.dotfiles
$ git pull origin master
$ ./script/bootstrap.fish
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.
Remove the folders:
$ rm -rf ~/.dotfiles ~/.config/fish
Some config files were changed, you can find them using fd
:
$ fd -e backup -e local -H -E Library -d 3 .
And then manually inspect/revert them.
For macOS, I recommend:
- iTerm: a better terminal emulator;
For both Linux and macOS:
exa
a modern replacement forls
;fd
a simple, fast and user-friendly alternative tofind
;fzf
for a fuzzy-finder, used in,t
on vim, for example;gh
for more GitHub integration with the terminal;grc
to colorize command's outputs;starship.rs
the shell we are using;ripgrep
a fastergrep
;
To install them all with brew
:
On Ubuntu:
sh -c "$(curl -fsSL https://starship.rs/install.sh)"
sudo apt install fish grc fzf
You use it by running:
~/.dotfiles/macos/set-defaults.sh
And logging out and in again or restart.
Theme is Dracula and font is Inconsolata Nerd Font.