55#
66# setup_dependencies
77
8+ # install homebrew
9+ if [[ $( command -v brew) == " " ]]; then
10+ echo " Installing Hombrew..."
11+ bash $HOME /scripts/bash/dotfiles/install_brew
12+ fi
13+
814# permanently turn off analytics tracking
915brew analytics off
1016
11- # cowsay
12- if ! command -v cowsay & > /dev/null
13- then
14- brew install cowsay
15- fi
17+ # # cowsay
18+ # if ! command -v cowsay &> /dev/null
19+ # then
20+ # brew install cowsay
21+ # fi
1622
17- # zoxide
18- if ! command -v zoxide & > /dev/null
19- then
20- brew install zoxide
21- fi
23+ # # zoxide
24+ # if ! command -v zoxide &> /dev/null
25+ # then
26+ # brew install zoxide
27+ # fi
2228
23- # neovim
24- if ! command -v nvim & > /dev/null
25- then
26- brew install neovim
27- fi
2829
29- # check if `vim-plug` is installed
30- # this could be maintained with dotfiles, but better to get a current `plug.vim` file
31- if [ ! -f " ${XDG_DATA_HOME:- $HOME / .local/ share} " /nvim/site/autoload/plug.vim ]; then
32- echo " Installing vim-plug for Neovim..."
33- sh -c ' curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
34- https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
35- echo " vim-plug for Neovim installed."
36- fi
30+ # # if ! command -v node &> /dev/null
31+ # # then
3732
38- # install vim/neovim plugins
39- if [ ! -d " $HOME /.vim/plugged" ]; then
40- echo Installing plugins...
41- nvim +' PlugInstall --sync' +qa
42- echo Plugins installed.
43- fi
33+ # # fi
4434
45- # if ! command -v node &> /dev/null
35+ # if ! command -v python3 &> /dev/null
4636# then
47-
37+ # brew install python
38+ # python3 -m pip install --user --upgrade pynvim
4839# fi
4940
50- if ! command -v python3 & > /dev/null
51- then
52- brew install python
53- python3 -m pip install --user --upgrade pynvim
54- fi
55-
56- if ! command -v tmux & > /dev/null
57- then
58- brew install tmux
59- fi
41+ # if ! command -v tmux &> /dev/null
42+ # then
43+ # brew install tmux
44+ # fi
6045
6146# install tpm (tmux plugin manager)
6247if [ ! -d " $HOME /.tmux/plugins/tpm/" ]; then
@@ -65,10 +50,10 @@ if [ ! -d "$HOME/.tmux/plugins/tpm/" ]; then
6550 echo tpm installed.
6651fi
6752
68- if ! command -v htop & > /dev/null
69- then
70- brew install htop
71- fi
53+ # if ! command -v htop &> /dev/null
54+ # then
55+ # brew install htop
56+ # fi
7257
7358if ! command -v rustup & > /dev/null
7459then
8570if [ ! -d " $HOME /.oh-my-zsh/custom/plugins/zsh-nvm" ]; then
8671 git clone https://github.com/lukechilds/zsh-nvm ~ /.oh-my-zsh/custom/plugins/zsh-nvm
8772fi
73+
74+ # neovim
75+ # if ! command -v nvim &> /dev/null
76+ # then
77+ # brew install neovim
78+ # fi
79+
80+ # check if `vim-plug` is installed
81+ # this could be maintained with dotfiles, but better to get a current `plug.vim` file
82+ if [ ! -f " ${XDG_DATA_HOME:- $HOME / .local/ share} " /nvim/site/autoload/plug.vim ]; then
83+ echo " Installing vim-plug for Neovim..."
84+ sh -c ' curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
85+ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
86+ echo " vim-plug for Neovim installed."
87+ fi
88+
89+ # install vim/neovim plugins
90+ if [ ! -d " $HOME /.vim/plugged" ]; then
91+ echo Installing plugins...
92+ nvim +' PlugInstall --sync' +qa
93+ echo Plugins installed.
94+ fi
0 commit comments