about summary refs log tree commit diff
path: root/profile/.profile.d/git.sh
blob: d0b5e8f8c5c652cfc1a7822494184f097d986b0d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh

if command -v git >/dev/null 2>&1; then
	if command -v hub >/dev/null 2>&1; then
		alias git="hub"
	fi
	alias g="git"

	if command -v delta >/dev/null 2>&1; then
		export GIT_PAGER="delta"
	fi
fi

Consider giving Nix/NixOS a try! <3