These are my dotfiles. Take anything you want, but at your own risk.
It mainly targets macOS systems (should install on e.g. Ubuntu as well for many tools, config and aliases etc).
$EDITOR
is GNU nano ($VISUAL
is code
and Git core.editor
is code --wait
)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:
curl
available:bash -c "`curl -fsSL https://raw.githubusercontent.com/webpro/dotfiles/master/remote-install.sh`"
This will clone or download this repo to ~/.dotfiles
(depending on the availability of git
, curl
or wget
).
git clone https://github.com/webpro/dotfiles.git ~/.dotfiles
cd ~/.dotfiles
make
Running make
with the Makefile is idempotent. The installation process in the Makefile is tested on every push and every week in this
GitHub Action. Please file an issue in this repo if there are errors.
git config --global user.name "your name"
git config --global user.email "[email protected]"
git config --global github.user "your-github-username"
dot dock
dot macos
Start Hammerspoon once and set "Launch Hammerspoon at login".
Populate this file with tokens (example: export GITHUB_TOKEN=abc
):
touch ~/.dotfiles/system/.exports
dot
command$ dot help
Usage: dot <command>
Commands:
clean Clean up caches (brew, cargo, gem, pip)
dock Apply macOS Dock settings
edit Open dotfiles in IDE ($VISUAL) and Git GUI ($VISUAL_GIT)
help This help message
macos Apply macOS system defaults
test Run tests
update Update packages and pkg managers (brew, casks, cargo, pip3, npm, gems, macOS)
To customize the dotfiles to your likings, fork it and be the king of your castle!
Many thanks to the dotfiles community.