Browse Source

feat: update dotbot config fot bootstrap

master
Ein Verne 2 years ago
parent
commit
70e213cd1e
  1. 67
      config/bootstrap.conf.yml
  2. 4
      config/install.conf.yml
  3. 11
      config/macos.conf.yml

67
config/bootstrap.conf.yml

@ -1,44 +1,53 @@
# bootstrap linux, macos # bootstrap linux, macos
# Setup zinit # Setup zinit
- create: - create:
- ~/.zinit - ~/.zinit
- ~/.tmux - ~/.tmux
- shell: - shell:
- description: Clone zinit - description: Clone zinit
quiet: true quiet: true
command: | command: |
if cd ~/.zinit/bin; if cd ~/.zinit/bin;
then git pull; then git pull;
else git clone https://github.com/zdharma-continuum/zinit.git ~/.zinit/bin; fi else git clone https://github.com/zdharma-continuum/zinit.git ~/.zinit/bin; fi
# Setup tmux plugin manager # Setup tmux plugin manager
- shell: - shell:
- description: Clone TPM - description: Clone TPM
quiet: true quiet: true
command: | command: |
if cd ~/.tmux/plugins/tpm; if cd ~/.tmux/plugins/tpm;
then git pull; then git pull;
else git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm; fi else git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm; fi
# Change default shell to zsh
- shell: - shell:
- description: Change default shell to zsh - description: Install pyenv
quiet: true quiet: true
command: | command: |
update_shell() { if ! command -v pyenv &> /dev/null
local shell_path; then
shell_path="$(command -v zsh)" curl https://pyenv.run | bash
fancy_echo "Changing your shell to zsh ..."
if ! grep "$shell_path" /etc/shells > /dev/null 2>&1 ; then
fancy_echo "Adding '$shell_path' to /etc/shells"
sudo sh -c "echo $shell_path >> /etc/shells"
fi fi
sudo chsh -s "$shell_path" "$USER"
}
update_shell # Change default shell to zsh
- shell:
- description: Change default shell to zsh
quiet: true
command: |
update_shell() {
local shell_path;
shell_path="$(command -v zsh)"
fancy_echo "Changing your shell to zsh ..."
if ! grep "$shell_path" /etc/shells > /dev/null 2>&1 ; then
fancy_echo "Adding '$shell_path' to /etc/shells"
sudo sh -c "echo $shell_path >> /etc/shells"
fi
sudo chsh -s "$shell_path" "$USER"
}
update_shell
- link: - link:
~/.config/espanso: ~/.config/espanso:

4
config/install.conf.yml

@ -3,10 +3,10 @@
relink: true relink: true
force: true force: true
- clean: ['~'] - clean: [ '~' ]
- link: - link:
~/.dotfiles: ~/.dotfiles:
force: true force: true
path: '' path: ''

11
config/macos.conf.yml

@ -1,4 +1,13 @@
# bootstrap: macos # bootstrap: macos
- shell:
- description: Install Homebrew
quiet: true
command: |
if ! command -v brew &> /dev/null
then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
- create: - create:
- ~/.config/kitty - ~/.config/kitty
@ -51,4 +60,4 @@
- hammerspoon - hammerspoon
- obsidian - obsidian
- bigwig-club/brew/upic - bigwig-club/brew/upic
- visual-studio-code - visual-studio-code

Loading…
Cancel
Save