* separate vimrc-full with own simple and lighten vimrc config
* reformat yadm bootstrap script and adding it a pathogen & vim plugins install
This commit is contained in:
@ -44,31 +44,41 @@ install_spacevim() {
|
||||
curl -sLf https://spacevim.org/install.sh | bash
|
||||
}
|
||||
|
||||
download_font () {
|
||||
url="https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/SourceCodePro/Regular/complete/${1// /%20}"
|
||||
path="/usr/share/fonts/$1"
|
||||
if [[ -f "$path" && ! -s "$path" ]]
|
||||
then
|
||||
rm "$path"
|
||||
fi
|
||||
if [[ -f "$path" ]]
|
||||
then
|
||||
success "Downloaded $1"
|
||||
else
|
||||
info "Downloading $1"
|
||||
curl -s -o "$path" "$url"
|
||||
success "Downloaded $1"
|
||||
fi
|
||||
download_font() {
|
||||
url="https://raw.githubusercontent.com/ryanoasis/nerd-fonts/master/patched-fonts/SourceCodePro/Regular/complete/${1// /%20}"
|
||||
path="/usr/share/fonts/$1"
|
||||
if [[ -f "$path" && ! -s "$path" ]]; then
|
||||
rm "$path"
|
||||
fi
|
||||
if [[ -f "$path" ]]; then
|
||||
success "Downloaded $1"
|
||||
else
|
||||
info "Downloading $1"
|
||||
curl -s -o "$path" "$url"
|
||||
success "Downloaded $1"
|
||||
fi
|
||||
}
|
||||
|
||||
install_fonts () {
|
||||
download_font "Sauce Code Pro Nerd Font Complete.ttf"
|
||||
info "Updating font cache, please wait ..."
|
||||
install_fonts() {
|
||||
download_font "Sauce Code Pro Nerd Font Complete.ttf"
|
||||
info "Updating font cache, please wait ..."
|
||||
|
||||
fc-cache -fv > /dev/null
|
||||
success "font cache done!"
|
||||
fc-cache -fv >/dev/null
|
||||
success "font cache done!"
|
||||
}
|
||||
|
||||
install_pathogen() {
|
||||
mkdir -p ~/.vim/autoload ~/.vim/bundle
|
||||
|
||||
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
|
||||
}
|
||||
|
||||
install_vim_plugins() {
|
||||
cd ~/.vim/bundle
|
||||
|
||||
git clone https://github.com/tpope/vim-sensible.git
|
||||
git clone https://github.com/altercation/vim-colors-solarized.git
|
||||
}
|
||||
|
||||
#install_nix
|
||||
|
||||
@ -76,3 +86,6 @@ install_fonts () {
|
||||
|
||||
#install_starship
|
||||
#install_spacevim
|
||||
|
||||
install_pathogen
|
||||
install_vim_plugins
|
||||
|
Reference in New Issue
Block a user