-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.bash
More file actions
65 lines (50 loc) · 1.31 KB
/
init.bash
File metadata and controls
65 lines (50 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#install brew
# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# download nerd-fonts
curl https://github.com/ryanoasis/nerd-fonts/releases/download/v3.2.1/Hermit.zip -O ~/Downloads/Hermit.zip
# brew tools
brew install git-delta lazygit npm dog bat k9s kubectl terraform starship iterm2
# git-delta
# TODO check if this has been added first
cat <<EOF >>~/.gitconfig
[alias]
tags = tag -n99
logs = log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'
logz = log --pretty='%(describe:tags=true,abbrev=0)' | uniq | head -n 10
co = checkout
cm = commit -m
pulll = pull --autostash
blamee = blame -w -C -C -C
[core]
editor = nvim
pager = delta
[user]
name = jesus
[rebase]
autoStash = true
[rerere]
enabled = true
autoUpdate = true
[branch]
sort = -committerdate
[core]
pager = delta
[interactive]
diffFilter = delta --color-only --diff-so-fancy
[delta]
navigate = true # use n and N to move between diff sections
[merge]
conflictstyle = diff3
[diff]
colorMoved = default
EOF
cat ~/Library/Application Support/lazygit/config.yml
# lazygit config
echo <<EOF >>~/Library/Application
gui:
nerdFontsVersion: "3"
git:
paging:
colorArg: always
pager: delta --dark --paging=never --diff-so-fancy
EOF