Files
dotfiles/setup_mac.sh

36 lines
1.1 KiB
Bash
Raw Normal View History

2023-06-01 14:32:58 +02:00
#! /bin/zsh
2022-07-06 11:39:50 +02:00
#
# setup_mac.sh
# Copyright (C) 2022 fabian <fabian@FordPrefect.home>
#
# Distributed under terms of the MIT license.
#
2024-02-28 11:47:29 +01:00
brew install neovim tmux alacritty coreutils cmake golang npm virtualenvwrapper
source /opt/homebrew/bin/virtualenvwrapper.sh
mkvirtualenv neovim
pip3 install pynvim
npm install -g neovim
2022-10-07 09:01:35 +02:00
echo For alacritty to work seemlessly with tmux, we will have to add '/usr/local/bin'\
to the path. This will require your root password.
sudo launchctl config user path /usr/bin:/bin:/usr/sbin:/sbin:/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
2022-07-06 11:39:50 +02:00
./clone_and_link_mac.sh
2022-10-07 09:01:35 +02:00
2024-12-22 12:29:28 +01:00
for filename in zsh/.*_mac.example(N); do
gln -Tsvf $PWD/$filename $PWD/${filename:0:-12}
2022-10-07 09:01:35 +02:00
done
2024-12-22 12:29:28 +01:00
for filename in tmux/.*_mac.example(N); do
gln -Tsvf $PWD/$filename $PWD/${filename:0:-12}
2022-10-07 09:01:35 +02:00
done
2024-12-22 12:29:28 +01:00
for filename in vim/.*_mac.example(N); do
gln -Tsvf $PWD/$filename $PWD/${filename:0:-12}
2022-10-07 09:01:35 +02:00
done
2023-06-01 14:32:58 +02:00
open fonts/*.ttf
2022-10-07 09:01:35 +02:00
echo "You should now start tmux (and zsh) and nvim for automatic plugin installation."