Skip to content

Commit

Permalink
Define layers and bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
abravalheri committed Jul 3, 2019
1 parent d3a33ff commit 6104385
Show file tree
Hide file tree
Showing 27 changed files with 96 additions and 52 deletions.
32 changes: 32 additions & 0 deletions @base/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#!/usr/bin/env bash

__bootstrap() {
local bkp=(
~/.profile
~/.pathrc
~/.bashrc
~/.bash_profile
~/.zshrc
~/.zshenv
~/.zprofile
~/.gitconfig
~/.git/config
~/.vimrc
~/.vim/vimrc
)

local file
local BKP_DIR=~/.local/share/dotfiles.bkp
mkdir -p "$BKP_DIR"
for file in "$bkp[@]"; do
if [[ -f "$file" ]] && [[ ! -L "$file" ]]; then
echo -n "BKP $file"
{ set -v;
cp "$file" "$BKP_DIR";
}
fi
done
}

__bootstrap
unset -f __bootstrap
11 changes: 11 additions & 0 deletions @base/finish.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

if [ -s ~/.config/zsh ] && [ -n "${SHELL##*zsh*}" ]; then
echo -e "To use ZSH as default shell please do:\n"
echo -n "$(tput bold)$(tput setf 4)"
echo -e " chsh -s $(which zsh)"
echo -e " env zsh"
echo -e " source ~/.zshrc\n"
echo -n "$(tput srg0)"
echo -e "Alternativelly the .bashrc file provided by @zsh.bootstrap should be used"
fi
1 change: 1 addition & 0 deletions @default/%minimal/formulae.brew
1 change: 1 addition & 0 deletions @default/%minimal/packages.apt
1 change: 1 addition & 0 deletions @default/%minimal/packages.pacman
1 change: 1 addition & 0 deletions @default/@base
2 changes: 2 additions & 0 deletions @default/formulae.brew
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dos2unix
hunspell
8 changes: 6 additions & 2 deletions python-pkglist.txt → @default/packages.pipx
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
flake8
gitlint
howdoi
httpie
isort
neovim
neovim-remote
pre-commit
proselint
ptpython
pylint
pyscaffold
rstcheck
sphinx
thefuck
tldr
tmuxp
vim-vint
vint
yamllint
1 change: 1 addition & 0 deletions @full/%minimal/formulae.brew
1 change: 1 addition & 0 deletions @full/%minimal/packages.apt
1 change: 1 addition & 0 deletions @full/%minimal/packages.pacman
15 changes: 15 additions & 0 deletions @full/bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

__bootstrap() {
local HERE="$(pwd)"
cd $(dirname "${BASH_SOURCE[0]}") || exit 1
find .. -maxdepth 1 -type d \
| xargs -n1 realpath \
| xargs -n1 basename \
| grep -vE '^[.+@%]' \
| tee > ./+local-layers.stow
cd "$HERE" || exit 1
}

__bootstrap
unset -f __bootstrap
1 change: 1 addition & 0 deletions @full/formulae.brew
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pandoc
5 changes: 5 additions & 0 deletions @full/packages.apt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
python3
python3-dev
python3-lxml
python3-pip
python3-venv
File renamed without changes.
2 changes: 1 addition & 1 deletion pacman-pkglist-foreign.txt → @full/packages.trizen
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
neovim-gtk
# neovim-gtk
# neovim-qt
pulseaudio-ctl
redpen
Expand Down
1 change: 1 addition & 0 deletions @minimal/@base
5 changes: 5 additions & 0 deletions @minimal/formulae.brew
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
autojump
fd
fzy
neovim
ripgrep
4 changes: 3 additions & 1 deletion @minimal/layers.stow
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ git
vim
rsync
tmux
zsh.minimal
zsh.common
%zsh.minimal
%zsh.bootstrap
7 changes: 5 additions & 2 deletions @minimal/packages.apt
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
build-essential
ctags
curl
exuberant-ctags
git
hwinfo
jq
nmap
silversearcher-ag
stow
tmux
tree
vim
wget
zsh
vim
Empty file added @minimal/packages.pacman
Empty file.
1 change: 1 addition & 0 deletions @wsl/%default/packages.pipx
7 changes: 1 addition & 6 deletions @wsl/layers.stow
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
git
vim
rsync
tmux
zsh.minimal
wsl
%dircolors
11 changes: 0 additions & 11 deletions minimal.apt

This file was deleted.

5 changes: 0 additions & 5 deletions minimal.stow

This file was deleted.

6 changes: 0 additions & 6 deletions wsl.stow

This file was deleted.

18 changes: 0 additions & 18 deletions wsl/.bashrc

This file was deleted.

0 comments on commit 6104385

Please sign in to comment.