34 lines
1.1 KiB
Bash
Executable File
34 lines
1.1 KiB
Bash
Executable File
#! /bin/zsh
|
|
#
|
|
# setup_mac.sh
|
|
# Copyright (C) 2022 fabian <fabian@FordPrefect.home>
|
|
#
|
|
# Distributed under terms of the MIT license.
|
|
#
|
|
|
|
brew install neovim tmux coreutils cmake golang jq npm virtualenvwrapper
|
|
./install_alacritty_mac.sh
|
|
BREW_PREFIX="$(brew --prefix)"
|
|
source "$BREW_PREFIX/bin/virtualenvwrapper.sh"
|
|
mkvirtualenv neovim
|
|
pip3 install pynvim
|
|
npm install -g neovim
|
|
echo For alacritty to work seamlessly with tmux, we will add the Homebrew bin directory\
|
|
to the path. This will require your root password.
|
|
sudo launchctl config user path /usr/bin:/bin:/usr/sbin:/sbin:"$BREW_PREFIX/bin":/usr/local/bin
|
|
cp $PWD/nvim/scheme.vim.template $PWD/nvim/scheme.vim
|
|
cp $PWD/.config/alacritty/schemes.yml.template $PWD/.config/alacritty/schemes.yml
|
|
./clone_and_link_mac.sh
|
|
|
|
for filename in zsh/.*_mac.example(N); do
|
|
gln -Tsvf $PWD/$filename $PWD/${filename:0:-12}
|
|
done
|
|
|
|
for filename in tmux/.*_mac.example(N); do
|
|
gln -Tsvf $PWD/$filename $PWD/${filename:0:-12}
|
|
done
|
|
|
|
open fonts/*.ttf
|
|
|
|
echo "You should now start tmux (and zsh) and nvim for automatic plugin installation."
|