Skip to content

Commit

Permalink
feat(tools, symlinks): add git-lft tool
Browse files Browse the repository at this point in the history
  • Loading branch information
trystan2k committed Sep 8, 2020
1 parent 6416b4d commit a637243
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 0 deletions.
6 changes: 6 additions & 0 deletions symlinks/.gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions tools/macos/Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ brew "fd"
brew "fx"
brew "fzf"
brew "git"
brew "git-lfs"
brew "gnupg"
brew "httpie"
brew "jq"
Expand Down
59 changes: 59 additions & 0 deletions upgrades/from-9.2.0-to-9.3.0.sh
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit a637243

Please sign in to comment.