-
Open
System Settings
>Keyboard
open -b com.apple.systempreferences /System/Library/PreferencePanes/Keyboard.prefPane
-
Open
Keyboard Shortcuts
-
Ctrl + Space
(This shortcut it going to be used to accept autosuggestion in fish)-
Go to
Input Sources
tab -
Unselect shortcuts
Description Shortcut Select the previous input source ⌃Space
Select next source in input menu ⌃⌥Space
-
-
Cmd + Space
(This shortcut is being used by Alfred)-
Go to
Spotlight
tab -
Unselect shortcuts
Description Shortcut Show Spotlight search ⌘Space
Show Finder search window ⌥⌘Space
-
-
set --export --global PROJECTS_PATH "$HOME/Projects/github.com"
set --export --global MY_PROJECTS_PATH "$PROJECTS_PATH/bartsmykla"
set --export --global DOTFILES_REPO "git@github.com:bartsmykla/.dotfiles.git"
set --export --global DOTFILES_PATH "$MY_PROJECTS_PATH/.dotfiles"
set --local TAPS \
homebrew/cask-fonts \
homebrew/cask-versions \
helm/tap \
set --local CASK_FORMULAS \
alacritty \
alfred \
discord \
firefox-developer-edition \
font-fira-code \
font-fira-code-nerd-font \
google-cloud-sdk \
gpg-suite \
jetbrains-toolbox \
obsidian \
rectangle \
send-to-kindle \
signal \
set --local FORMULAS \
ack \
awscli \
bash \
bat \
broot \
chart-releaser \
coreutils \
direnv \
docker \
docker-completion \
eza \
fd \
fish \
fzf \
gh \
git-crypt \
gnu-sed \
gnu-tar \
gnupg \
gnutls \
helm \
jump \
jq \
k3d \
k9s \
kubernetes-cli \
lua \
orbstack \
saml2aws \
shellcheck \
starship \
terraform \
tmux \
tmuxinator \
vim \
yq \
for tap in $TAPS
brew tap "$tap"
end
for formula in $CASK_FORMULAS
brew install --cask "$formula"
end
for formula in $FORMULAS
brew install "$formula"
end
# Checking dependencies
! git --version >/dev/null 2>&1 \
&& echo "No git. Exiting" >&2; exit 1
! git-crypt --version >/dev/null 2>&1 \
&& echo "No git-crypt. Exiting" >&2; exit 1
! [[ -d "$MY_PROJECTS_PATH" ]] && mkdir -p "$MY_PROJECTS_PATH"
if ! [[ -d "$DOTFILES_PATH" ]]; then
git clone "$DOTFILES_REPO" "$DOTFILES_PATH"
git submodule update --init --recursive
(cd "$DOTFILES_PATH"; git-crypt unlock)
fi
ln -sfv "$DOTFILES_PATH/.alacritty.yml" ~/.alacritty.yml
ln -sfv "$DOTFILES_PATH/.config/broot" ~/.config/broot
ln -sfv "$DOTFILES_PATH/.tmux" ~/.tmux
ln -sfv "$DOTFILES_PATH/.tmux.conf" ~/.tmux.conf
ln -sfv "$DOTFILES_PATH/.vimrc" ~/.vimrc
ln -sfv "$DOTFILES_PATH/.vim" ~/.vim
ln -sfv "$DOTFILES_PATH/.config/exercism" ~/.config/exercism
ln -sfv "$DOTFILES_PATH/.config/tmuxinator" ~/.config/tmuxinator
ln -sfv "$DOTFILES_PATH/.config/starship.toml" ~/.config/starship.toml
ln -sfv "$DOTFILES_PATH/.gnupg/gpg.conf" ~/.gnupg/gpg.conf
ln -sfv "$DOTFILES_PATH/.gnupg/gpg-agent.conf" ~/.gnupg/gpg-agent.conf
git config --global gpg.program /usr/local/MacGPG2/bin/gpg2
From https://www.rust-lang.org/tools/install
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
defaults write com.apple.dock static-only -bool true; killall Dock