Browse Source

refactor

refactor/nvim-lua
garritfra 6 years ago
parent
commit
3102caba01
  1. 18
      install.sh
  2. 11
      node.sh
  3. 0
      rcs/.bashrc
  4. 0
      rcs/.vimrc

18
install.sh

@ -2,18 +2,22 @@
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
echo "✨installing .vimrc✨"
cp ./.vimrc $HOME/.vimrc
cp ./rcs/.vimrc $HOME/.vimrc
echo "✨installing .bashrc✨"
cp ./.bashrc $HOME/.bashrc
cp ./.bashrc $HOME/.bash_profile
cp ./rcs/.bashrc $HOME/.bashrc
cp ./rcs/.bashrc $HOME/.bash_profile
echo "✨creating dev workspace✨"
[ -d $HOME/dev ] && echo "dev workspace already exists" || mkdir $HOME/dev
echo "✨installing latest node & npm✨"
curl -L https://git.io/n-install | bash
sudo $HOME/n/bin/n stable
source node.sh
echo "🎉installation complete🎉"
echo "❗reload bash for the changes to take effect❗"
if [ $? -eq 0 ]
then
echo "🎉installation complete🎉"
echo "❗reload shell for the changes to take effect❗"
else
echo "Program exited with" $?
fi

11
node.sh

@ -0,0 +1,11 @@
node -v
npm -v
if [ $? -eq 0 ]; then
echo "node & npm already installed"
else
curl -L https://git.io/n-install | bash
sudo $HOME/n/bin/n stable
sudo rm -rf $HOME/n
fi

0
.bashrc → rcs/.bashrc

0
.vimrc → rcs/.vimrc

Loading…
Cancel
Save