Skip to content

daniel-trevino/dotfiles

Repository files navigation

Conventional Commits

dotfiles

My dotfiles for Mac and Ubuntu setup.

Highlights

Packages Overview

Installation

On a sparkling fresh installation of macOS:

sudo softwareupdate -i -a
xcode-select --install

The Xcode Command Line Tools includes git and make (not available on stock macOS). Now there are two options:

  1. Install this repo with curl available:
bash -c "`curl -fsSL https://raw.githubusercontent.com/daniel-trevino/dotfiles/master/remote-install.sh`"

This will clone or download, this repo to ~/.dotfiles depending on the availability of git, curl or wget.

  1. Alternatively, clone manually into the desired location:
git clone https://github.com/daniel-trevino/dotfiles.git ~/.dotfiles

Use the Makefile to install everything listed above, and symlink runcom and config (using stow):

cd ~/.dotfiles
make

The installation process in the Makefile is tested on every push and every week in this GitHub Action.

Post-Installation

  1. Close that terminal that you are using and open a new one. Then you can run the following commands
  2. Compile zinit via zinit self-update
  • dotfiles dock (set Dock items)
  • dotfiles macos (set macOS defaults)
  • Mackup
    • Log in to Dropbox (and wait until synced)
    • ln -s ~/.config/mackup/.mackup.cfg ~ (until #632 is fixed)
    • mackup restore
  • Remove Spotlight and add setup Alfred command
  • Set Aerial screen saver. Open System Preferences -> Desktop & Screen Saver -> Screen Saver

The dotfiles command

$ dotfiles help
Usage: dotfiles <command>

Commands:
    clean            Clean up caches (brew, npm, gem, rvm)
    dock             Apply macOS Dock settings
    edit             Open dotfiles in IDE (code) and Git GUI (stree)
    help             This help message
    macos            Apply macOS system defaults
    test             Run tests
    update           Update packages and pkg managers (OS, brew, npm, gem)

Customize

You can put your custom settings, such as Git credentials in the system/.custom file which will be sourced from .bash_profile automatically. This file is in .gitignore.

Alternatively, you can have an additional, personal dotfiles repo at ~/.extra. The runcom .bash_profile sources all ~/.extra/runcom/*.sh files.

Additional Resources

FAQ

  • * existing target is not owned by stow: .bash_profile You might have done the make command without having this repository on ~/.dotfiles location. To fix it you have to move this repository to ~/.dotfiles and manually remove the symlinks for those files that have that error using rm -f symlink_to_dir/. Then run make again.

  • warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory You might have spelled the locale wrong. Check how the format of the locale is supposed to be written.

  • How to add new VSCode Plugins? Add the name of the plugin on /install/VSCodePlugins. Look at the Unique Identifier for each plugin at: VSCode Marketplace

  • How to add new mac software? Add the name of it on /install/Caskfile. Look at the names at: Homebrew Cask

Credits

Many thanks to the dotfiles community. Code structure and inspiration by: webpro