···11#!/bin/bash
22-# Remove from local any branch already merged in origin
22+33git fetch --prune
4455# What is this big guy doin?
+1
config/fish/config.fish
···11nvm use 24
22+23if status is-interactive
34 echo "\(^0^)ノ"
45end
+1-30
config/git-hooks/prepare-commit-msg
···11#!/bin/sh
2233-COMMIT_MSG_FILE="$1"
44-COMMIT_SOURCE="$2"
55-66-# This one is mainly for work
77-# 1. Add Jira tag file in the commit message
88-99-BRANCH=$(git symbolic-ref --short HEAD 2>/dev/null)
1010-1111-if [ -z "$BRANCH" ]; then
1212- echo "⚠️ Could not determine current branch. Skipping tag injection." >&2
1313-else
1414- TAG=$(echo "$BRANCH" | grep -oE 'EX-[0-9]+' | head -n1)
1515-1616- if [ -z "$TAG" ]; then
1717- echo "No Jira tag found in branch name '$BRANCH'. Skipping tag injection." >&2
1818- else
1919- # Only inject if the tag isn't already in the message (avoids duplicates on --amend)
2020- if ! grep -qF "$TAG" "$COMMIT_MSG_FILE"; then
2121- printf "\n%s" "$TAG" >> "$COMMIT_MSG_FILE"
2222- echo "Appended '$TAG' to the commit message." >&2
2323- else
2424- echo "'$TAG' already present in the commit message. Skipping." >&2
2525- fi
2626- fi
2727-fi
2828-2929-# 2. Warn about unresolved TODOs
3030-313REPO_ROOT=$(git rev-parse --show-toplevel 2>/dev/null)
324335if [ -z "$REPO_ROOT" ]; then
346 echo "Could not determine repository root. Skipping TODO check." >&2
357else
3636- # Search whole repository and show file:line matches
378 TODOS=$(cd "$REPO_ROOT" && grep -Rni --exclude-dir={.git,node_modules,coverage} --exclude=package-lock.json 'TODO' . 2>/dev/null)
3893910 if [ -n "$TODOS" ]; then
4011 echo "" >&2
4112 echo "─────────────────────────────────────────────" >&2
4242- echo "ʕ •́؈•̀) Pending TODOs found:" >&2
1313+ echo "ʕ •́؈•̀) Pending TODOs:" >&2
4314 echo "$TODOS" >&2
4415 echo "─────────────────────────────────────────────" >&2
4516 echo "" >&2
+1-3
config/git/gitconfig
···11[user]
22 name = Jordi Izquierdo
33- email = jordi.izquierdo.casares@tutamail.com
33+ email = jordi.izquierdo@mailbox.org
4455[core]
66 pager = delta
···1717 process = git-lfs filter-process
1818 required = true
19192020-# Removes local tracking branches that no longer exist on the remote repository
2120[fetch]
2221 prune = true
2322···3130 conflictStyle = zdiff3
32313332[rebase]
3434- # Interactive rebase display commits like this:
3533 # (Author Name <author@email.org>) Commit message
3634 instructionFormat = (%an <%ae>) %s
3735