Skip to content

Commit a3cf111

Browse files
committed
reorganize and enhance
1 parent 6a26572 commit a3cf111

42 files changed

Lines changed: 142 additions & 95 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ vim/.netrwhist
44
vim/view/*
55
vim/bundle/
66
oh-my-zsh/
7-
go_secrets.sh
7+
# go_secrets.sh
88
.DS_Store
9+
secret*

.gitmodules

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
[submodule "vim/bundle/Vundle.vim"]
2-
path = vim/bundle/Vundle.vim
2+
path = modules/Vundle.vim
33
url = git@github.com:gmarik/Vundle.vim.git
44
ignore = dirty
55
[submodule "prezto"]
6-
path = prezto
6+
path = modules/prezto
77
url = https://github.com/sorin-ionescu/prezto.git
88
ignore = dirty
9-
[submodule "dotbot"]
10-
path = dotbot
11-
url = https://github.com/anishathalye/dotbot
129
[submodule "zgen"]
13-
path = zgen
10+
path = modules/zgen
1411
url = https://github.com/tarjoilija/zgen.git
1512
[submodule "dotbot-brew"]
16-
path = dotbot-brew
13+
path = modules/dotbot-brew
1714
url = https://github.com/d12frosted/dotbot-brew.git
1815
[submodule "dotbot-asdf"]
19-
path = dotbot-asdf
16+
path = modules/dotbot-asdf
2017
url = https://github.com/sobolevn/dotbot-asdf.git
18+
[submodule "dotbot-rust"]
19+
path = modules/dotbot-rust
20+
url = https://github.com/alexcormier/dotbot-rust
21+
[submodule "dotbot"]
22+
path = modules/dotbot
23+
url = https://github.com/anishathalye/dotbot

config/completion

Lines changed: 0 additions & 2 deletions
This file was deleted.

dotbot

Lines changed: 0 additions & 1 deletion
This file was deleted.

dotbot-asdf

Lines changed: 0 additions & 1 deletion
This file was deleted.

dotbot-brew

Lines changed: 0 additions & 1 deletion
This file was deleted.

install

Lines changed: 23 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,31 @@
33
set -e
44

55
CONFIG="install.conf.yaml"
6-
DOTBOT_DIR="dotbot"
6+
DOTBOT_DIR="modules/dotbot"
77

88
DOTBOT_BIN="bin/dotbot"
9-
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
9+
BASE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
10+
MODULES_DIR=$BASE_DIR/modules
1011

11-
cd "${BASEDIR}"
12-
git submodule update --init --recursive "${DOTBOT_DIR}"
12+
echo "BASE_DIR => $BASE_DIR"
13+
echo "MODULES_DIR => $MODULES_DIR"
1314

14-
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" \
15-
-d "${BASEDIR}" \
16-
--plugin-dir dotbot-asdf \
17-
--plugin-dir dotbot-brew \
15+
cd "${BASE_DIR}"
16+
# git submodule update --init --recursive
17+
git submodule update --init --remote $MODULES_DIR/dotbot
18+
git submodule update --init --remote $MODULES_DIR/dotbot-asdf
19+
git submodule update --init --remote $MODULES_DIR/dotbot-brew
20+
git submodule update --init --remote $MODULES_DIR/dotbot-rust
21+
22+
"${BASE_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" \
23+
-p $MODULES_DIR/dotbot-rust/rust.py \
24+
-d "${BASE_DIR}" \
25+
--plugin-dir $MODULES_DIR/dotbot-asdf \
26+
--plugin-dir $MODULES_DIR/dotbot-brew \
27+
--plugin-dir $MODULES_DIR/dotbot-rust \
1828
-c "${CONFIG}" "${@}"
29+
30+
# "${BASE_DIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" \
31+
# -d "${BASE_DIR}" \
32+
# --plugin-dir dotbot-brew \
33+
# -c "${CONFIG}" "${@}"

install.conf.yaml

Lines changed: 57 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3,53 +3,69 @@
33
create: true
44
relink: true
55

6-
- clean: ['~']
6+
- clean: ["~"]
77

88
- brew:
9-
- asdf
10-
- mtr
11-
- postman
12-
- figma
13-
- spectacle
14-
- spotify
15-
- visual-studio-code
9+
- alfred
10+
- asdf
11+
- bartender
12+
- bash-completion
13+
- brave-browser
14+
- curl
15+
- docker
16+
- figma
17+
- iterm2
18+
- mtr
19+
- obsidian
20+
- postman
21+
- shift
22+
- spectacle
23+
- spotify
24+
- visual-studio-code
25+
- zsh-completions
26+
- zsh-vi-mode
1627

1728
- asdf:
18-
- plugin: redis
19-
url: https://github.com/smashedtoatoms/asdf-redis.git
20-
- plugin: mongodb
21-
url: https://github.com/sylph01/asdf-mongodb.git
22-
- plugin: ruby
23-
url: https://github.com/asdf-vm/asdf-ruby.git
24-
25-
- link:
26-
# vim config
27-
~/.vim: vim
28-
~/.vimrc:
29-
relink: true
30-
path: vimrc
31-
~/.vimrc.local:
32-
relink: true
33-
path: vimrc.local
29+
- plugin: redis
30+
url: https://github.com/smashedtoatoms/asdf-redis.git
3431

35-
# zsh config
36-
~/.zshenv: zshenv
37-
~/.zshrc: zshrc
38-
~/.zgen: zgen
39-
~/.zsh/themes/itg-text.zsh-theme: zsh-themes/itg-text.zsh-theme
40-
~/.zprezto: prezto
41-
~/.zpreztorc: zpreztorc
42-
~/.scripts: scripts
32+
- plugin: mongodb
33+
url: https://github.com/sylph01/asdf-mongodb.git
4334

44-
# ruby config
45-
~/.gemrc: gemrc
35+
- plugin: nodejs
36+
global: 16.13.2
4637

47-
# git config
48-
~/.gitconfig: gitconfig
49-
~/.gitignore: gitignore
38+
- plugin: ruby
39+
url: https://github.com/asdf-vm/asdf-ruby.git
40+
global: 3.2.1
5041

51-
- shell:
52-
- [mkdir ~/.vim/.backup, Create vim backup directory]
53-
- [mkdir ~/.vim/.swp, Create vim swap directory]
54-
- [vim +PluginInstall +qall, Install vim plugins]
42+
- plugin: erlang
43+
url: https://github.com/asdf-vm/asdf-erlang.git
44+
global: 25.1.2
45+
46+
- plugin: elixir
47+
url: https://github.com/asdf-vm/asdf-elixir.git
48+
global: 1.14.2-otp-25
49+
50+
- plugin: terraform
51+
url: https://github.com/Banno/asdf-hashicorp.git
52+
global: 1.2.4
5553

54+
# - cargo:
55+
# - starship
56+
57+
- link:
58+
~/:
59+
glob: true
60+
path: src/*
61+
prefix: .
62+
63+
# vim config
64+
~/.vim: vim
65+
66+
- shell:
67+
- [mkdir ~/.vim/.backup, Create vim backup directory]
68+
- [mkdir ~/.vim/.swp, Create vim swap directory]
69+
- [vim +PluginInstall +qall, Install vim plugins]
70+
- [compaudit | xargs chmod g-w, Setting zsh-completions permissions]
71+
- [cd ~/ && asdf install]

modules/dotbot

Submodule dotbot added at 328bcb3

0 commit comments

Comments
 (0)