better script
This commit is contained in:
parent
f1833b0e4e
commit
9069062692
|
@ -19,9 +19,6 @@ cp -r $(pwd)/home/.tmux.conf ~
|
|||
|
||||
ln ~/.zsh/zshrc ~/.zshrc
|
||||
|
||||
#cp -r $(pwd)/etc/* /etc
|
||||
#cp -r $(pwd)/usr/* /usr
|
||||
|
||||
# Install Vim Stuff
|
||||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
|
|
|
@ -1,11 +1,41 @@
|
|||
#!/bin/bash
|
||||
cp -r $(pwd)/home/.zsh-server ~
|
||||
cp -r $(pwd)/home/.vimrc ~
|
||||
|
||||
rm ~/.zsh-very-old
|
||||
mv ~/.zsh-old ~/.zsh-very-old
|
||||
mv ~/.zsh ~/.zsh-old
|
||||
|
||||
rm ~/.zshrc-very-old
|
||||
mv ~/.zshrc-old ~/.zshrc-very-old
|
||||
mv ~/.zshrc ~/.zshrc-old
|
||||
|
||||
cp -r $(pwd)/home/.zsh-server ~
|
||||
cp -r $(pwd)/home/.vimrc ~
|
||||
cp -r $(pwd)/home/.local ~
|
||||
cp -r $(pwd)/home/.config ~
|
||||
cp -r $(pwd)/home/.tmux.conf ~
|
||||
|
||||
ln ~/.zsh-server/zshrc ~/.zshrc
|
||||
|
||||
cp -r $(pwd)/etc/* /etc
|
||||
cp -r $(pwd)/usr/* /usr
|
||||
# Install Vim Stuff
|
||||
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
||||
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||
|
||||
sudo bash -c 'rm ~/.zsh-very-old'
|
||||
sudo bash -c 'mv ~/.zsh-old ~/.zsh-very-old'
|
||||
sudo bash -c 'mv ~/.zsh ~/.zsh-old'
|
||||
|
||||
sudo bash -c 'rm ~/.zshrc-very-old'
|
||||
sudo bash -c 'mv ~/.zshrc-old ~/.zshrc-very-old'
|
||||
sudo bash -c 'mv ~/.zshrc ~/.zshrc-old'
|
||||
|
||||
sudo bash -c 'cp -r $(pwd)/home/.zsh-server ~'
|
||||
sudo bash -c 'cp -r $(pwd)/home/.vimrc ~'
|
||||
sudo bash -c 'cp -r $(pwd)/home/.local ~'
|
||||
sudo bash -c 'cp -r $(pwd)/home/.config ~'
|
||||
sudo bash -c 'cp -r $(pwd)/home/.tmux.conf ~'
|
||||
|
||||
sudo bash -c 'ln ~/.zsh-server/zshrc ~/.zshrc'
|
||||
|
||||
# Install Vim Stuff
|
||||
sudo 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'
|
||||
|
|
Loading…
Reference in New Issue