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
# Setup zinit
- create:
- ~/.zinit
- ~/.tmux
- ~/.zinit
- ~/.tmux
- shell:
- description: Clone zinit
quiet: true
command: |
if cd ~/.zinit/bin;
then git pull;
else git clone https://github.com/zdharma-continuum/zinit.git ~/.zinit/bin; fi
- description: Clone zinit
quiet: true
command: |
if cd ~/.zinit/bin;
then git pull;
else git clone https://github.com/zdharma-continuum/zinit.git ~/.zinit/bin; fi
# Setup tmux plugin manager
- shell:
- description: Clone TPM
quiet: true
command: |
if cd ~/.tmux/plugins/tpm;
then git pull;
else git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm; fi
- description: Clone TPM
quiet: true
command: |
if cd ~/.tmux/plugins/tpm;
then git pull;
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
- shell:
- description: Change default shell to zsh
quiet: true
command: |
update_shell() {
local shell_path;
shell_path="$(command -v zsh)"
- 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"
}
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
update_shell
- link:
~/.config/espanso:

4
config/install.conf.yml

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

9
config/macos.conf.yml

@ -1,4 +1,13 @@
# 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:
- ~/.config/kitty

Loading…
Cancel
Save