Adding projects

This commit is contained in:
Gerardo J. Puerta 2022-09-07 08:48:36 -05:00
parent 48c84088e1
commit d948b4a4d1
4 changed files with 67 additions and 15 deletions

View File

@ -1,11 +1,12 @@
#!/bin/bash #!/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" pip="awscli cmake"
read -p "Are you sure? (Y/N) " read -p "Are you sure? (Y/N) "
if [[ "$REPLY" != "Y" ]] if [[ "$REPLY" != "Y" ]]
then then
echo "OK, Bye!" echo "OK, Bye!"
exit 0 exit 0
@ -101,5 +102,26 @@ then
python3 ~/.vim/bundle/YouCompleteMe/install.py python3 ~/.vim/bundle/YouCompleteMe/install.py
fi 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 . ~/.bashrc

1
projects/rcp/basegit Normal file
View File

@ -0,0 +1 @@
https://c290381795a5da6a8eb8bfaa8eeba028f144b5e5@git.giot.es/RCP/

22
projects/rcp/projects Normal file
View File

@ -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

View File

@ -1,3 +1,11 @@
"
" __ _(_)_ __ ___ _ __ ___
" \ \ / / | '_ ` _ \| '__/ __|
" \ V /| | | | | | | | | (__
" \_/ |_|_| |_| |_|_| \___|
"
" Use vim settings rather than vi settings
set nocompatible " required set nocompatible " required
filetype off " required filetype off " required
@ -5,9 +13,6 @@ filetype off " required
set rtp+=~/.vim/bundle/Vundle.vim set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin() call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required " let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim' Plugin 'gmarik/Vundle.vim'
Plugin 'tmhedberg/SimpylFold' Plugin 'tmhedberg/SimpylFold'
@ -20,13 +25,10 @@ Plugin 'altercation/vim-colors-solarized'
Plugin 'kien/ctrlp.vim' Plugin 'kien/ctrlp.vim'
Plugin 'tpope/vim-fugitive' Plugin 'tpope/vim-fugitive'
Plugin 'itchyny/lightline.vim' 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 " All of your Plugins must be added before the following line
call vundle#end() " required call vundle#end() " required
filetype plugin indent on " required filetype plugin indent on " required
" Split zones " Split zones
@ -59,8 +61,8 @@ au BufNewFile,BufRead *.py
\ set autoindent \ set autoindent
\ set fileformat=unix \ set fileformat=unix
" Flag whitespaces " Delete trailing whitespaces on save
au BufRead,BufNewFile *.py,*.c,*.h match BadWhitespace /\s\+$/ autocmd BufWritePre * %s/\s\+$//e
" UTF-8 support " UTF-8 support
set encoding=utf-8 set encoding=utf-8
@ -102,10 +104,7 @@ set nu
set laststatus=2 set laststatus=2
" Draw a margin in the 81th column " Draw a margin in the 81th column
set colorcolumn=81 set colorcolumn=81
" Use vim settings rather than vi settings
set nocompatible
" Persistent undo " Persistent undo
set undodir=~/.vimundo set undodir=~/.vimundo
@ -114,3 +113,11 @@ set undofile
" Avoid bell sound " Avoid bell sound
set visualbell set visualbell
set t_vb= set t_vb=
" hightlight column and row
set cul
set cuc
" write with superpowers
cmap w!! %!sudo tee > /dev/null %