From d948b4a4d16f4fe2960091cc4aad4ed730ca2a0b Mon Sep 17 00:00:00 2001 From: "Gerardo J. Puerta" Date: Wed, 7 Sep 2022 08:48:36 -0500 Subject: [PATCH] Adding projects --- install.sh | 26 ++++++++++++++++++++++++-- projects/rcp/basegit | 1 + projects/rcp/projects | 22 ++++++++++++++++++++++ vim/vimrc | 33 ++++++++++++++++++++------------- 4 files changed, 67 insertions(+), 15 deletions(-) create mode 100644 projects/rcp/basegit create mode 100644 projects/rcp/projects diff --git a/install.sh b/install.sh index c0465d6..c8fd447 100755 --- a/install.sh +++ b/install.sh @@ -1,11 +1,12 @@ #!/bin/bash -packages="sshpass tmux python3-pip cargo vim-nox build-essential python3-dev" +packages="sshpass tmux python3-pip cargo vim-nox build-essential python3-dev \ + zathura zathura-pdf-poppler" pip="awscli cmake" read -p "Are you sure? (Y/N) " -if [[ "$REPLY" != "Y" ]] +if [[ "$REPLY" != "Y" ]] then echo "OK, Bye!" exit 0 @@ -101,5 +102,26 @@ then python3 ~/.vim/bundle/YouCompleteMe/install.py fi +if [[ -d ~/.dotfiles/projects ]] +then + for f in ~/.dotfiles/projects/* + do + if [[ -f $f/basegit ]] + then + basegit=$(<$f/basegit) + echo "Base git $basegit sourced ..." + fi + if [[ -f $f/projects ]] + then + while read -r project + do + dir=$(basename $f) + mkdir -p ~/dev/${dir} + echo "Cloning ${basegit}${project} in ~/dev/${dir}/${project}" + git clone ${basegit}${project} ~/dev/${dir}/${project} + done < $f/projects + fi + done +fi . ~/.bashrc diff --git a/projects/rcp/basegit b/projects/rcp/basegit new file mode 100644 index 0000000..f1a7808 --- /dev/null +++ b/projects/rcp/basegit @@ -0,0 +1 @@ +https://c290381795a5da6a8eb8bfaa8eeba028f144b5e5@git.giot.es/RCP/ diff --git a/projects/rcp/projects b/projects/rcp/projects new file mode 100644 index 0000000..e326c59 --- /dev/null +++ b/projects/rcp/projects @@ -0,0 +1,22 @@ +api +argocd +backlight +callhome +connection20 +gateway +gui +hatbutton50 +health +hubos +infra +media +modem20 +printer +queue +repo +speaker +state +sync +volumecontrol50 +walled +wifi diff --git a/vim/vimrc b/vim/vimrc index 77e6ea1..726c50c 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,3 +1,11 @@ +" +" __ _(_)_ __ ___ _ __ ___ +" \ \ / / | '_ ` _ \| '__/ __| +" \ V /| | | | | | | | | (__ +" \_/ |_|_| |_| |_|_| \___| +" + +" Use vim settings rather than vi settings set nocompatible " required filetype off " required @@ -5,9 +13,6 @@ filetype off " required set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() -" alternatively, pass a path where Vundle should install plugins -"call vundle#begin('~/some/path/here') - " let Vundle manage Vundle, required Plugin 'gmarik/Vundle.vim' Plugin 'tmhedberg/SimpylFold' @@ -20,13 +25,10 @@ Plugin 'altercation/vim-colors-solarized' Plugin 'kien/ctrlp.vim' Plugin 'tpope/vim-fugitive' Plugin 'itchyny/lightline.vim' -" add all your plugins here (note older versions of Vundle -" used Bundle instead of Plugin) - -" ... " All of your Plugins must be added before the following line call vundle#end() " required + filetype plugin indent on " required " Split zones @@ -59,8 +61,8 @@ au BufNewFile,BufRead *.py \ set autoindent \ set fileformat=unix -" Flag whitespaces -au BufRead,BufNewFile *.py,*.c,*.h match BadWhitespace /\s\+$/ +" Delete trailing whitespaces on save +autocmd BufWritePre * %s/\s\+$//e " UTF-8 support set encoding=utf-8 @@ -102,10 +104,7 @@ set nu set laststatus=2 " Draw a margin in the 81th column -set colorcolumn=81 - -" Use vim settings rather than vi settings -set nocompatible +set colorcolumn=81 " Persistent undo set undodir=~/.vimundo @@ -114,3 +113,11 @@ set undofile " Avoid bell sound set visualbell set t_vb= + +" hightlight column and row +set cul +set cuc + +" write with superpowers +cmap w!! %!sudo tee > /dev/null % +