Skip to content

Commit

Permalink
[WIP] Add install scripts, update installer
Browse files Browse the repository at this point in the history
  • Loading branch information
dhvcc committed Jul 1, 2024
1 parent bf148ab commit 4042dd6
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .cfg/Dockerfile.test.brew
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ RUN brew install starship neofetch fzf btop wget \
RUN curl -fLo '~/.vim/autoload/plug.vim' --create-dirs \
'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

RUN rm -rf .bashrc .zshrc && curl -Lks https://raw.githubusercontent.com/dhvcc/configs/master/.cfg/install.sh | /bin/sh
RUN curl -Lks https://raw.githubusercontent.com/dhvcc/configs/master/.cfg/install.sh | /bin/sh

# Install manually or in script
#ENV NVM_DIR="$HOME/.nvm"
Expand Down
12 changes: 12 additions & 0 deletions .cfg/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,15 @@ cfg checkout

cfg "config" status.showUntrackedFiles no
cfg "config" commit.verbose true

if test -f "$(which apt)"; then
sudo apt install -y zsh
fi

./.cfg/scripts/install-brew.sh
./.cfg/scripts/install-packages.sh

./.cfg/scripts/install-omb.sh
./.cfg/scripts/install-omz.sh

./.cfg/scripts/install-neovim.sh
7 changes: 7 additions & 0 deletions .cfg/scripts/install-brew.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

if test -f "$(which apt)"; then
sudo apt install -y build-essential curl git
fi

curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh | env NONINTERACTIVE=1 bash
5 changes: 3 additions & 2 deletions .cfg/scripts/install-neovim.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@

. ~/.zshrc

curl -sL -o /var/cache/apt/archives/nvim-linux64.deb https://github.com/neovim/neovim/releases/download/v0.7.2/nvim-linux64.deb && dpkg -i /var/cache/apt/archives/nvim-linux64.deb
curl -fLo '~/.vim/autoload/plug.vim' --create-dirs \
'https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

python -m venv ~/.vim/.venv
~/.vim/.venv/bin/pip install pynvim pyright
npm i -g neovim
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
nvim --headless +'PlugInstall' +qall
nvim --headless +'CocInstall' +qall # FIXME
nvim --headless +'CocInstall' +qall # FIXME
7 changes: 7 additions & 0 deletions .cfg/scripts/install-packages.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

brew install unzip xclip vim neovim \
starship neofetch fzf btop wget \
pyenv nvm \
lsd fd ripgrep bat `# rust utils`

0 comments on commit 4042dd6

Please sign in to comment.