From a6372437f4eaae4347ebe1ffc6db2aec213467e5 Mon Sep 17 00:00:00 2001 From: Thiago Mendonca Date: Tue, 8 Sep 2020 11:23:56 +0200 Subject: [PATCH] feat(tools, symlinks): add git-lft tool --- symlinks/.gitconfig | 6 ++++ tools/macos/Brewfile | 1 + upgrades/from-9.2.0-to-9.3.0.sh | 59 +++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+) create mode 100755 upgrades/from-9.2.0-to-9.3.0.sh diff --git a/symlinks/.gitconfig b/symlinks/.gitconfig index 03ee1e2..d925e1a 100755 --- a/symlinks/.gitconfig +++ b/symlinks/.gitconfig @@ -125,3 +125,9 @@ # Automatically correct and execute mistyped commands autocorrect = 1 + +[filter "lfs"] + smudge = git-lfs smudge -- %f + process = git-lfs filter-process + required = true + clean = git-lfs clean -- %f diff --git a/tools/macos/Brewfile b/tools/macos/Brewfile index e3115d3..3248468 100644 --- a/tools/macos/Brewfile +++ b/tools/macos/Brewfile @@ -20,6 +20,7 @@ brew "fd" brew "fx" brew "fzf" brew "git" +brew "git-lfs" brew "gnupg" brew "httpie" brew "jq" diff --git a/upgrades/from-9.2.0-to-9.3.0.sh b/upgrades/from-9.2.0-to-9.3.0.sh new file mode 100755 index 0000000..454fec1 --- /dev/null +++ b/upgrades/from-9.2.0-to-9.3.0.sh @@ -0,0 +1,59 @@ +#!/usr/bin/env bash + +# Export dotfiles folder +DOTFILES_FOLDER="$(pwd | grep -o '.*dotfiles')" + +#shellcheck source=/dev/null +source "$DOTFILES_FOLDER"/symlinks/.exports + +# Load functions +#shellcheck source=/dev/null +source "$DOTFILES_FOLDER"/lib/functions + +_remove() { + # --------------------------------------------- + # Uninstall not needed anymore + # --------------------------------------------- + + info "Remove step" + brew uninstall --ignore-dependencies node +} + +_add() { + # --------------------------------------------- + # Install new tools + # --------------------------------------------- + + info "Add step" + + info "Install fanny" + brew install git-lfs +} + +_configure() { + # --------------------------------------------- + # Install new tools + # --------------------------------------------- + + info "Configure step" +} + +_cleanup () { + # --------------------------------------------- + # Cleanup and finish + # --------------------------------------------- + + info "Cleanup step" + + #shellcheck source=/dev/null + . "$DOTFILES_FOLDER"/macos/cleanup.sh +} + +execute() { + _remove + _add + _configure + _cleanup +} + +execute 2>&1 | tee -a "$DOTFILE_LOG_FILE" \ No newline at end of file