-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.chezmoidata.yaml
More file actions
75 lines (72 loc) · 2.17 KB
/
.chezmoidata.yaml
File metadata and controls
75 lines (72 loc) · 2.17 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
66
67
68
69
70
71
72
73
74
75
shell:
paths:
- path: /usr/local/bin
- path: .local/bin
relative: true
- path: go/bin
relative: true
- path: .local/share/aquaproj-aqua/bin
relative: true
- path: /Applications/Sublime Text.app/Contents/SharedSupport/bin
os: darwin
env:
AQUA_POLICY_CONFIG: .aqua/aqua-policy.yaml
EDITOR: micro
FZF_DEFAULT_COMMAND: fd --type file --color=always
FZF_DEFAULT_OPTS: --ansi
FZF_CTRL_T_COMMAND: $FZF_DEFAULT_COMMAND
FZF_ALT_C_COMMAND: fd --type d --color=always
GIT_PAGER:
value: delta
check: delta
fallback: less
OP_BIOMETRIC_UNLOCK_ENABLED: "true"
aliases:
cat: bat
k9s-kflow: aws-vault exec admin-kflow -- k9s
ll: eza -la
ls: eza
gaa: git add -A
gc: git commit
gd: git diff
gs: git status
gg: lazygit
nano: micro
s: kitten ssh
tre: eza --tree -a --git-ignore
wtl: git worktree list
y: yazi
zj: zellij attach --create
fzp: fzf --preview "bat --color=always --style=numbers --line-range=:500 {}"
functions:
cdg:
description: cd to git root
body: cd "$(git rev-parse --show-toplevel)"
rcp:
description: copy realpath to clipboard
body: realpath "${1:-.}" | tr -d '\n' | pbcopy
paws:
description: print AWS env vars
body: env | grep AWS
mkcd:
description: mkdir and cd into it
body: mkdir -p "$1" && cd "$1"
ports:
description: show listening TCP ports
body: lsof -iTCP -sTCP:LISTEN -nP
wts:
description: fzf picker to cd into a git worktree
body: |
local sel
sel=$(git worktree list | fzf --height=40% --reverse --prompt='worktree> ') || return
cd "$(echo "$sel" | awk '{print $1}')"
wth:
description: cd to the primary worktree root (head of the repo)
body: cd "$(git worktree list | head -1 | awk '{print $1}')"
wtr:
description: fzf picker to remove a git worktree
body: |
local sel target
sel=$(git worktree list | tail -n +2 | fzf --height=40% --reverse --prompt='remove worktree> ') || return
target=$(echo "$sel" | awk '{print $1}')
git worktree remove "$target"