You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

52 lines
1.4 KiB

  1. .PHONY: install update bash ssh readline starship fzf tmux1 tmux3 vim vim-noplug
  2. install: update ssh bash starship fzf vim
  3. update:
  4. git pull
  5. ssh:
  6. mkdir -p ~/.ssh
  7. cat ssh/*.pub >> ~/.ssh/authorized_keys
  8. bash:
  9. rm -rf ~/.bashrc ~/.bash_aliases
  10. cp bash/bashrc ~/.bashrc
  11. cp bash/bash_aliases ~/.bash_aliases
  12. starship:
  13. mkdir -p ~/.local/bin
  14. curl -fsSL https://starship.rs/install.sh | bash -s -- -b ~/.local/bin -y --platform unknown-linux-musl
  15. rm -rf ~/.config/starship.toml
  16. cp starship/starship.toml ~/.config/starship.toml
  17. fzf:
  18. git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
  19. ~/.fzf/install --xdg --key-bindings --completion --no-update-rc
  20. tmux1:
  21. rm -rf ~/.config/tmux
  22. mkdir -p ~/.config/tmux
  23. cp tmux/tmux1.conf ~/.config/tmux/tmux.conf
  24. tmux3:
  25. rm -rf ~/.config/tmux
  26. mkdir -p ~/.config/tmux
  27. cp tmux/tmux3.conf ~/.config/tmux/tmux.conf
  28. vim:
  29. rm -rf ~/.vim/autoload/plug.vim ~/.vim/autoload/lightline ~/.vim/colors/quantum.vim ~/.vim/vimrc
  30. mkdir -p ~/.vim/autoload
  31. mkdir -p ~/.vim/colors
  32. cp -r vim/autoload/lightline ~/.vim/autoload/lightline
  33. cp vim/autoload/plug.vim ~/.vim/autoload/plug.vim
  34. cp vim/colors/quantum.vim ~/.vim/colors/quantum.vim
  35. cp vim/vimrc ~/.vim/vimrc
  36. vim +'PlugInstall --sync' +qa
  37. vim-noplug:
  38. rm -rf ~/.vim/colors/quantum.vim ~/.vim/vimrc
  39. mkdir -p ~/.vim/colors
  40. cp vim/colors/quantum.vim ~/.vim/colors/quantum.vim
  41. sed '/"==plugins-start/,/"==plugins-end/d' vim/vimrc > ~/.vim/vimrc