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.
 
 
 
 

51 lines
1.4 KiB

.PHONY: install update bash ssh readline starship fzf tmux1 tmux3 vim vim-noplug
install: update ssh bash starship fzf vim
update:
git pull
ssh:
mkdir -p ~/.ssh
cat ssh/*.pub >> ~/.ssh/authorized_keys
bash:
rm -rf ~/.bashrc ~/.bash_aliases
cp bash/bashrc ~/.bashrc
cp bash/bash_aliases ~/.bash_aliases
starship:
mkdir -p ~/.local/bin
curl -fsSL https://starship.rs/install.sh | bash -s -- -b ~/.local/bin -y --platform unknown-linux-musl
rm -rf ~/.config/starship.toml
cp starship/starship.toml ~/.config/starship.toml
fzf:
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
~/.fzf/install --xdg --key-bindings --completion --no-update-rc
tmux1:
rm -rf ~/.config/tmux
mkdir -p ~/.config/tmux
cp tmux/tmux1.conf ~/.config/tmux/tmux.conf
tmux3:
rm -rf ~/.config/tmux
mkdir -p ~/.config/tmux
cp tmux/tmux3.conf ~/.config/tmux/tmux.conf
vim:
rm -rf ~/.vim/autoload/plug.vim ~/.vim/autoload/lightline ~/.vim/colors/quantum.vim ~/.vim/vimrc
mkdir -p ~/.vim/autoload
mkdir -p ~/.vim/colors
cp -r vim/autoload/lightline ~/.vim/autoload/lightline
cp vim/autoload/plug.vim ~/.vim/autoload/plug.vim
cp vim/colors/quantum.vim ~/.vim/colors/quantum.vim
cp vim/vimrc ~/.vim/vimrc
vim +'PlugInstall --sync' +qa
vim-noplug:
rm -rf ~/.vim/colors/quantum.vim ~/.vim/vimrc
mkdir -p ~/.vim/colors
cp vim/colors/quantum.vim ~/.vim/colors/quantum.vim
sed '/"==plugins-start/,/"==plugins-end/d' vim/vimrc > ~/.vim/vimrc