Browse Source

feat: update dotbot config fot bootstrap

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

65
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
- shell:
- description: Install pyenv
quiet: true
command: |
if ! command -v pyenv &> /dev/null
then
curl https://pyenv.run | bash
fi
# Change default shell to zsh # Change default shell to zsh
- shell: - shell:
- description: Change default shell to zsh - description: Change default shell to zsh
quiet: true quiet: true
command: | command: |
update_shell() { update_shell() {
local shell_path; local shell_path;
shell_path="$(command -v zsh)" shell_path="$(command -v zsh)"
fancy_echo "Changing your shell to zsh ..." fancy_echo "Changing your shell to zsh ..."
if ! grep "$shell_path" /etc/shells > /dev/null 2>&1 ; then if ! grep "$shell_path" /etc/shells > /dev/null 2>&1 ; then
fancy_echo "Adding '$shell_path' to /etc/shells" fancy_echo "Adding '$shell_path' to /etc/shells"
sudo sh -c "echo $shell_path >> /etc/shells" sudo sh -c "echo $shell_path >> /etc/shells"
fi fi
sudo chsh -s "$shell_path" "$USER" sudo chsh -s "$shell_path" "$USER"
} }
update_shell 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: ''

9
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

Loading…
Cancel
Save