Skip to content

yougotwill/dotfiles

Repository files navigation

yougotwill dotfiles

you got dotfiles!

my macOS setup

My .zshrc

My .aliases

My neovim configuration .vimrc.

My git configuration .gitconfig.

For some of the custom scripts that I use check out the [bin](bin folder) folder.

Check out the various Brewfiles for the list of various CLIs and apps that I use (includes apps installed from the Apple App Store and VS Code extensions).

Check out the .default files for global packages installed under asdf.

Applications

Special Mentions

  • Amethyst (My Window Manager of choice)
  • Discord
  • Firefox
  • Iina
  • Kitty
  • LibreOffice
  • Logseq
  • Loop
  • Nimble Commander
  • Session
  • Spotify
  • Thunderbird
  • Typora
  • Visual Studio Code

How I manage my dotfiles

Inspired by https://www.atlassian.com/git/tutorials/dotfiles

There are various ways to manage your dotfiles but I thought that this method had the least dependencies and was pretty clean.

How to install

  1. Open your favourite terminal then copy and paste the code below into it.

    Feel free to paste the code into a script first and then run that.

/usr/bin/git clone --bare /~https://github.com/yougotwill/dotfiles.git $HOME/.dotfiles
function config {
  /usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
mkdir -p .dotfiles-backup
config checkout
if [ $? = 0 ]; then
 echo "dotfiles loaded successfully";
 else
  echo "Backing up pre-existing dot files.";
  config checkout 2>&1 | egrep "\s+\." | awk {'print $1'} | xargs -I{} mv {} .dotfiles-backup/{}
fi;
config checkout
config config status.showUntrackedFiles no
echo "dotfiles are setup!"
echo "Go back to /~https://github.com/yougotwill/dotfiles/blob/master/README.md and read further instructions." 
  1. Trust in the force.
  2. If it succeeds you should receive the message dotfiles are setup!.
  3. Install Homebrew by copying and pasting again into your terminal the code below.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  1. Install ohmyzsh by copying and pasting again into your terminal the code below.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
  1. Install zsh-autosuggestions` by copying and pasting again into your terminal the code below.
/usr/bin/git clone /~https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  1. Install the spaceship prompt by copying and pasting again into your terminal the code below.
/usr/bin/git clone /~https://github.com/spaceship-prompt/spaceship-prompt.git "$ZSH_CUSTOM/themes/spaceship-prompt" --depth=1
ln -s "$ZSH_CUSTOM/themes/spaceship-prompt/spaceship.zsh-theme" "$ZSH_CUSTOM/themes/spaceship.zsh-theme"
  1. Install asdf by copying and pasting again into your terminal the code below.
/usr/bin/git clone /~https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0
  1. Run brestore. This will install all the packages, applications and VS Code extensions using Homebrew. You can install them incrementally using the brestore- aliases see my aliases for more info.
  2. Grab a coffee or go for that run you keep procrastinating because this might take a while.
  3. Run pip install -r requirements.txt.
  4. Run pipx-import.
  5. To install the global npm packages install node and run npx backup-global file.
  6. That's it you should be finished!🎉