|
|
@ -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: |
|
|
|