Cleanup some stuff
This commit is contained in:
parent
f2e9a4061f
commit
ccd4c85027
7 changed files with 46 additions and 45 deletions
|
@ -1,25 +1,15 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
_autoinstall_base () {
|
||||
plug_path="$HOME/.config/vim/autoload/plug.vim"
|
||||
if [ ! -f "$plug_path" ]
|
||||
then
|
||||
_autoinstall_file "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" "$plug_path"
|
||||
[ -x "$(command -v vim)" ] && yes | vim +'PlugInstall --sync' +qa --not-a-term
|
||||
fi
|
||||
_autoinstall_file "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" \
|
||||
"$HOME/.config/vim/autoload/plug.vim" \
|
||||
&& [ -x "$(command -v vim)" ] && yes | vim +'PlugInstall --sync' +qa --not-a-term
|
||||
|
||||
nvim_dir="$HOME/.config/nvim"
|
||||
if [ ! -d "$nvim_dir" ]
|
||||
then
|
||||
_autoinstall_git "https://github.com/AstroNvim/AstroNvim" "$nvim_dir"
|
||||
[ -x "$(command -v nvim)" ] && nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
|
||||
fi
|
||||
_autoinstall_git "https://github.com/AstroNvim/AstroNvim" "$HOME/.config/nvim" \
|
||||
&& [ -x "$(command -v nvim)" ] && nvim --headless -c 'autocmd User PackerComplete quitall' -c 'PackerSync'
|
||||
|
||||
if [ ! -x "$(command -v starship)" ]
|
||||
then
|
||||
mkdir -p "$HOME/.local/bin"
|
||||
curl -sS "https://starship.rs/install.sh" | BIN_DIR="$HOME/.local/bin" FORCE=1 sh
|
||||
fi
|
||||
[ ! -x "$(command -v starship)" ] \
|
||||
&& curl -sS "https://starship.rs/install.sh" | BIN_DIR="$HOME/.local/bin" FORCE=1 sh
|
||||
|
||||
_autoinstall_env "$WAKATIME_HOME/.wakatime.cfg"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue