-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstartup.sh
More file actions
executable file
·74 lines (53 loc) · 2.27 KB
/
startup.sh
File metadata and controls
executable file
·74 lines (53 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#!/bin/bash
set -e
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' > $HOME/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
# Regenerate with "brew bundle dump"
brew bundle
brew tap homebrew/cask-fonts
brew install font-hack-nerd-font
# run install step of fzf for command purposes
fzf --fish | source
echo "linking all config files"
dotfiles_dir=$(pwd)
mkdir -p $HOME/.config/fish > /dev/null
ln $dotfiles_dir/config.fish $HOME/.config/fish/ > /dev/null
mkdir -p $HOME/.config/nvim > /dev/null
ln $dotfiles_dir/init.vim $HOME/.config/nvim/ > /dev/null
ln $dotfiles_dir/.tmux.conf $HOME/.tmux.conf > /dev/null
ln $dotfiles_dir/.astylerc $HOME/.astylerc > /dev/null
ln $dotfiles_dir/.ripgreprc $HOME/.ripgreprc > /dev/null
ln $dotfiles_dir/.xvimrc $HOME/.xvimrc > /dev/null
ln $dotfiles_dir/.gitconfig $HOME/.gitconfig > /dev/null
ln $dotfiles_dir/.gitignore $HOME/.gitignore > /dev/null
ln $dotfiles_dir/.ideavimrc $HOME/.ideavimrc > /dev/null
git config --global core.excludesfile ~/.gitignore
pip3 install pynvim virtualfish pdbpp ipython flake8 jupyter --user
nvim +PlugInstall +qall
THIS_DIR=$(pwd)
cd $HOME/.local/share/nvim/plugged/coc.nvim
npm ci
cd $THIS_DIR
nvim +CocInstall coc-clangd +qall
nvim +CocInstall coc-pyright +qall
patch -p1 -d $HOME/.local/share/nvim/plugged/ayu-vim < $dotfiles_dir/dark_background.ayu.vim.diff
# Remove all icons from desktop
defaults write com.apple.finder CreateDesktop false
killall Finder
# Disable font smoothing
defaults -currentHost write -g AppleFontSmoothing -int 0
mkdir -p $HOME/code/
git clone https://github.com/wfxr/forgit.git $HOME/code/forgit
# set fish as your shell
which fish | sudo tee -a /etc/shells
chsh -s $(which fish)
echo "Make sure to change your startup command in iTerm preferences->Profiles->General to be "
echo "tmux attach -t init; or tmux new -s init"
echo "tmux attach -t init || tmux new -s init"
echo ""
echo "set fonts for powerline in Iterm Preferences->Profiles->Text->Non-ASCII Font->Hacker Nerd Font Mono"
echo ""
echo "Allow left alt to scroll in forgit: Iterm Preferences->Profile->Keys->Below the window->Left Option Key = Esc+"
echo ""
echo "Alternatively, try to load the existing profile in the existing json file"