Skip to content

Instantly share code, notes, and snippets.

@khale
Last active July 15, 2020 19:08
Show Gist options
  • Save khale/383a2359805c34bb8f0d91c17bd802bd to your computer and use it in GitHub Desktop.
Save khale/383a2359805c34bb8f0d91c17bd802bd to your computer and use it in GitHub Desktop.
Script for setting up dev environment on my machines
#!/bin/sh
echo "Setting up nvim..."
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' && \
git clone https://github.com/khale/neovim-config && \
mkdir -p ~/.config/nvim && \
mv neovim-config/init.vim ~/.config/nvim/ && \
rm -rf neovim-config && \
nvim --headless +PlugInstall +qall
echo "Done."
echo "Setting up dotfiles..."
git clone https://github.com/khale/dotfiles && \
mkdir -p ~/.config/fish && \
mv dotfiles/fish-config ~/.config/fish/config.fish && \
mv dotfiles/gitnow-config ~/.gitflow && \
git clone https://github.com/khale/fisher-config && \
mv fisher-config/fishfile ~/.config/fish/ && \
rm -rf fisher-config && \
git clone https://github.com/khale/.tmux && \
cp .tmux/.tmux.conf ~ && \
cp .tmux/.tmux.conf.local ~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment