#!/bin/bash step_1_info() { echo "Setup global git aliases"; } step_1_alias() { echo "alias"; } step_1() { local brConf="branch \ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - \ %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' \ --sort=-committerdate" local logConf="!git log --pretty=format:\"%C(magenta)%h%Creset \ -%C(red)%d%Creset %s %C(dim green)(%cr) [%an]\" --abbrev-commit -30" exe git config --global alias.s 'status -s' exe git config --global alias.st 'status' exe git config --global alias.co 'checkout' exe git config --global alias.ci 'commit' exe git config --global alias.b "${brConf}" exe git config --global alias.br 'branch' exe git config --global alias.l "${logConf}" exe git config --global alias.ll 'log' } # shellcheck disable=SC2034 # Appears unused readonly sqr_minVersion=16 # shellcheck disable=SC1091 # Don't follow this source . /usr/local/bin/sequencer.sh