2017-12-05 22:39:10 -08:00
|
|
|
#!/usr/bin/env zsh
|
|
|
|
source ${0:A:h}/../../deploy
|
|
|
|
|
|
|
|
install() {
|
|
|
|
case $(_os) in
|
|
|
|
macos) brew install editorconfig ;;
|
2018-05-24 12:35:12 -07:00
|
|
|
arch) yay --needed --noconfirm -S editorconfig-core-c ;;
|
2017-12-31 22:57:13 -08:00
|
|
|
debian) sudo apt-get install -y editorconfig ;;
|
2017-12-05 22:39:10 -08:00
|
|
|
esac
|
|
|
|
}
|
|
|
|
|
|
|
|
# update() {}
|
|
|
|
|
|
|
|
link() {
|
|
|
|
mklink .editorconfig ~/.editorconfig
|
|
|
|
}
|
|
|
|
|
|
|
|
clean() {
|
|
|
|
rm -fv ~/.editorconfig
|
|
|
|
}
|
|
|
|
|
|
|
|
init "$@"
|