Configuration files.
Run the following commands, and then restart your terminal. If you get any errors about already existing files, manually back them up and remove them.
git clone --recurse-submodules https://github.com/k-papadakis/dotfiles ~/projects/personal/dotfiles
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
brew_bin=/home/linuxbrew/.linuxbrew/bin/brew
elif [[ "$OSTYPE" == "darwin"* ]]; then
brew_bin=/opt/homebrew/bin/brew
fi
eval "\$($brew_bin shellenv)"
echo "eval \$($brew_bin shellenv)" \
>>~/projects/personal/dotfiles/home/dot-config/zsh/.zprofile
brew bundle install --file \
~/projects/personal/dotfiles/home/dot-config/homebrew/Brewfile
mkdir ~/.config
stow --verbose --restow --target="$HOME" \
--dir ~/projects/personal/dotfiles --dotfiles home
bat cache --build
mkdir ~/.config/zsh/zfunc
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup completions zsh >~/.config/zsh/zfunc/_rustup
rustup completions zsh cargo >~/.config/zsh/zfunc/_cargo
gh auth login
gh extension install github/gh-copilot
Fix font rendering for Alacritty by running
defaults write org.alacritty AppleFontSmoothing -int 0
Enable touch id authentication for sudo
, including from within TMUX, by
running
sudo echo \
"auth optional $(brew --prefix)/lib/pam/pam_reattach.so ignore_ssh
auth sufficient pam_tid.so" > /etc/pam.d/sudo_local
To give the required privileges to Karabiner, follow the post installation instructions
For an installation on WSL, run the following, then restart your terminal, and then run the script of the MacOS section.
sudo add-apt-repository ppa:wslutilities/wslu
sudo add-apt-repository ppa:git-core/ppa
sudo apt update -y
sudo apt install -y \
zsh \
wslu \
xclip \
pkg-config \
libssl-dev \
git \
build-essential \
direnv \
;
chsh --shell "$(which zsh)"