mirror of https://github.com/einverne/dotfiles.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
817 B
40 lines
817 B
4 years ago
|
- brew:
|
||
|
- git
|
||
|
- mackup
|
||
|
- mas
|
||
|
- zsh
|
||
|
|
||
|
# Setup zinit
|
||
|
- create:
|
||
|
- ~/.zinit
|
||
|
|
||
|
- shell:
|
||
|
- description: Clone zinit
|
||
|
quiet: true
|
||
|
command: |
|
||
|
if cd ~/.zinit/bin;
|
||
|
then git pull;
|
||
|
else git clone https://github.com/zdharma/zinit.git ~/.zinit/bin; 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)"
|
||
|
|
||
|
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
|
||
|
|
||
|
- cask:
|
||
|
- syncthing
|