Adding projects
This commit is contained in:
parent
48c84088e1
commit
d948b4a4d1
24
install.sh
24
install.sh
@ -1,6 +1,7 @@
|
||||
#!/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) "
|
||||
@ -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
|
||||
|
||||
|
1
projects/rcp/basegit
Normal file
1
projects/rcp/basegit
Normal file
@ -0,0 +1 @@
|
||||
https://c290381795a5da6a8eb8bfaa8eeba028f144b5e5@git.giot.es/RCP/
|
22
projects/rcp/projects
Normal file
22
projects/rcp/projects
Normal 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
|
31
vim/vimrc
31
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
|
||||
@ -104,9 +106,6 @@ set laststatus=2
|
||||
" Draw a margin in the 81th column
|
||||
set colorcolumn=81
|
||||
|
||||
" Use vim settings rather than vi settings
|
||||
set nocompatible
|
||||
|
||||
" Persistent undo
|
||||
set undodir=~/.vimundo
|
||||
set undofile
|
||||
@ -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 %
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user