My own personal configuration files and scripts for various commandline-based tools and apps. Also serves as the lgarron/lgarron
Homebrew tap.
- Open
Terminal.app
- Trigger Xcode commandline tool installation by trying to use
git
git
- Check out the dotfiles repo.
git clone https://github.com/lgarron/dotfiles ~/Code/git/github.com/lgarron/dotfiles
cd ~/Code/git/github.com/lgarron/dotfiles
- Drag & drop
Terminal.app
into the following permissions in System Settings → Privacy & Security:- Full Disk Access
- Media and Apple Music
Reveal Privacy & Security
and Terminal.app
like this:
open /System/Library/PreferencePanes/Security.prefPane
open -R /System/Applications/Utilities/Terminal.app
- Install dotfiles:
export PATH="$PATH:/opt/homebrew/bin"
make mac-common
Note that make mac-common
is what actually installs Homebrew, but the previous line ensures that Homebrew binaries are on the path for the later setup steps.
See ./exported/
for files that must be manually exported/imported.
- Install
bun
from: https://bun.sh/ - Run:
sudo apt install git make
git clone https://github.com/lgarron/dotfiles ~/Code/git/github.com/lgarron/dotfiles
cd ~/Code/git/github.com/lgarron/dotfiles
make linux-setup
fish
bun
for TypeScript- Rust
- Homebrew
In addition:
bash
is needed for two bootstrapping scripts (one for macOS and one for Linux).- Ruby is needed for Homebrew formulas.
- Swift is used for macOS scripts where it is difficult to implement an alternative correctly and safely.
Known compatibility chart: https://wiki.archlinux.org/index.php/XDG_Base_Directory_support
This repo serves as the Homebrew tap lgarron/lgarron
, so it can be used to install my scripts (from inside this repo) and programs (from various repos):
# Example
brew install --HEAD lgarron/lgarron/sd-card-backup
This uses a trick: Homebrew accepts repository redirect, and https://github.com/lgarron/Homebrew-lgarron redirects to https://github.com/lgarron/dotfiles (due to moving the repo from the latter to the former and back).
Scripts are listed in the ./scripts
folder.
MPL