Skip to content

bartsmykla/.dotfiles

Repository files navigation

.dotfiles

Turn off macOS' conflicting keyboard shortcuts

  1. Open System Settings > Keyboard

    open -b com.apple.systempreferences /System/Library/PreferencePanes/Keyboard.prefPane
  2. Open Keyboard Shortcuts

    1. Ctrl + Space (This shortcut it going to be used to accept autosuggestion in fish)

      1. Go to Input Sources tab

        Show Screenshot System Settings > Keybord > Keyboard Shortcuts > Input Sources
      2. Unselect shortcuts

        Description Shortcut
        Select the previous input source ⌃Space
        Select next source in input menu ⌃⌥Space
    2. Cmd + Space (This shortcut is being used by Alfred)

      1. Go to Spotlight tab

        Show Screenshot System Settings > Keybord > Keyboard Shortcuts > Spotlight
      2. Unselect shortcuts

        Description Shortcut
        Show Spotlight search ⌘Space
        Show Finder search window ⌥⌘Space

Install tools

set --export --global PROJECTS_PATH "$HOME/Projects/github.com"
set --export --global MY_PROJECTS_PATH "$PROJECTS_PATH/bartsmykla"
set --export --global DOTFILES_REPO "[email protected]: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

Install rust

From https://www.rust-lang.org/tools/install

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Show only active apps in MacOS' dock

defaults write com.apple.dock static-only -bool true; killall Dock

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published