-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaliae.yaml
273 lines (251 loc) · 7.94 KB
/
aliae.yaml
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
################################################################
# aliae.yaml - shell aliases and setup #
################################################################
env:
# default tools
- name: BROWSER
value: arc
- name: EDITOR
value: nvim
- name: PAGER
value: less
# XDG paths
- name: XDG_BIN_HOME
value: "{{ .Home }}/.local/bin"
- name: XDG_CACHE_HOME # where user-specific non-essential cached data should be written
value: "{{ .Home }}/.local/var/cache"
- name: XDG_CONFIG_HOME # where user-specific configurations should be written
value: "{{ .Home }}/.config"
- name: XDG_DATA_HOME # where user-specific data files should be written
value: "{{ .Home }}/.local/share"
- name: XDG_LIB_HOME
value: "{{ .Home }}/.local/lib"
- name: XDG_STATE_HOME # where user-specific state files should be written
value: "{{ .Home }}/.local/state"
# tool paths
- name: DENO_INSTALL_ROOT
value: '{{ env "XDG_DATA_HOME" }}/deno'
- name: CARGO_HOME
value: '{{ env "XDG_DATA_HOME" }}/cargo'
# - name: CURL_HOME
# value: $XDG_CONFIG_HOME/curl
- name: GOPATH
value: '{{ env "XDG_DATA_HOME" }}/go'
- name: LESSHISTFILE
value: "-" # disable less history
- name: RUSTUP_HOME
value: '{{ env "XDG_DATA_HOME" }}/rustup'
- name: TMUX_PLUGIN_MANAGER_PATH
value: '{{ env "XDG_DATA_HOME" }}/tmux/plugins'
- name: VSCODE_EXTENSIONS
value: '{{ env "XDG_DATA_HOME" }}/vscode'
- name: ZDOTDIR
value: '{{ env "XDG_CONFIG_HOME" }}/zsh'
if: eq .Shell "zsh"
# dotfiles
- name: DOTFILES
value: "{{ .Home }}/Setup/dotfiles"
- name: HOMEBREW_BUNDLE_FILE
value: '{{ env "DOTFILES" }}/util/macos/brew/Brewfile'
# tool options
- name: DO_NOT_TRACK # disable telemetry for tools that support this flag
value: "1"
- name: FZF_DEFAULT_OPTS # fzf catppuccin theme
value: "--color=bg+:#313244,bg:#1e1e2e,spinner:#f5e0dc,hl:#f38ba8
--color=fg:#cdd6f4,header:#f38ba8,info:#cba6f7,pointer:#f5e0dc
--color=marker:#f5e0dc,fg+:#cdd6f4,prompt:#cba6f7,hl+:#f38ba8"
- name: ZVM_CURSOR_STYLE_ENABLED # disable zsh-vi-mode from changing cursor styles
value: "false"
path:
- value: |
/opt/homebrew/bin
$DOTFILES/bin
$DENO_INSTALL_ROOT/bin
$CARGO_HOME/bin
$GOPATH/bin
$HOME/.local/bin
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
- value: |
/System/Cryptexes/App/usr/bin
# are these needed?
# /Library/Apple/usr/bin
# /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin
# /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin
# /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
if: eq .OS "darwin"
alias:
# nav shortcuts
- name: ..
value: cd ..
- name: ...
value: cd ../..
- name: -- -
value: cd -
- name: app
value: cd ~/Applications
- name: dtp
value: cd ~/Desktop
- name: dvp
value: cd ~/Developer
- name: doc
value: cd ~/Documents
- name: dnl
value: cd ~/Downloads
- name: dtf
value: cd $DOTFILES
- name: cfg
value: cd $XDG_CONFIG_HOME
# - name: cdr
# value: cd `git rev-parse --show-toplevel`
# dotfiles
- name: sys-refresh
value: $DOTFILES/unpack.sh
- name: dot-relink
value: eval $(aliae init zsh --config $DOTFILES/config/aliae/aliae.yaml)
- name: zsh-reload
value: exec zsh
if: eq .Shell "zsh"
- name: git-reclone
value: $DOTFILES/util/tools/github/clone_repos.sh
# tool replacements
- name: vim
value: nvim
- name: cat
value: bat
- name: help
value: tldr
- name: docker
value: podman
- name: ls
value: eza --classify
- name: la
value: eza --all --classify
- name: ll
value: eza --all --long --header --classify
- name: lt
value: eza --tree --classify --sort=type --ignore-glob .git
- name: lta
value: eza --all --tree --classify --sort=type --ignore-glob .git
- name: ld
value: eza --only-dirs --classify
- name: lda
value: eza --all --only-dirs --classify
- name: lm
value: eza --all --reverse --long --header --sort=modified
- name: lgt
value: eza --all --git --long --tree --sort=type --no-permissions --no-filesize --no-user --no-time --git-ignore --ignore-glob .git
# default options
- name: mkdir
value: mkdir -pv
- name: mv
value: mv -iv
- name: cp
value: cp -Riv
- name: dust
value: dust -r
# other niceties
- name: clr
value: clear
- name: cls
value: clear; ls
type: function
- name: clg
value: clear; git st
type: function
- name: cld
value: clear; cd
type: function
- name: dud
value: du -d 1 -h
- name: duf
value: du -sh *
- name: lock
value: zip -erj
- name: unlock
value: unzip -d
# pretty print PATHs
- name: path
value: echo $PATH | tr -s ":" "\n"
- name: fpath
value: echo $FPATH | tr -s ":" "\n"
# import programming language aliases
- !include "alias/lang.yaml"
# import macOS aliases
- !include "alias/mac.yaml"
# other
# - name: codexp # codium extension export
# value: codium --list-extensions > $DOTFILES/config/vscodium/extensions.txt && echo '\tExported VSCodium extensions list to DOTFILES.'
# - name: codein # codium extension install
# value: $DOTFILES/util/tools/vscodium/install_extensions.sh
# # list all
# alias la="ls -A" # list all
# # list all, with full details
# alias ll="ls -lAFh"
# # list normal dirs only
# alias ld="ls -l | grep '^d'"
# # list all dirs only
# alias lda="ls -lA | grep '^d'"
# # list all sorted by last modified
# alias lm="ls -tA -1"
# link dotfiles
link:
# shell configs
- name: "{{ .Home }}/.zshenv"
target: '{{ env "DOTFILES" }}/config/zsh/.zshenv'
- name: '{{ env "XDG_CONFIG_HOME" }}/zsh'
target: '{{ env "DOTFILES" }}/config/zsh'
mkdir: true
- name: "{{ .Home }}/.bash_profile"
target: '{{ env "DOTFILES" }}/config/bash/.bash_profile'
- name: "{{ .Home }}/.bashrc"
target: '{{ env "DOTFILES" }}/config/bash/.bashrc'
# git configs
- name: '{{ env "XDG_CONFIG_HOME" }}/git'
target: '{{ env "DOTFILES" }}/config/git'
- name: '{{ env "XDG_CONFIG_HOME" }}/lazygit'
target: '{{ env "DOTFILES" }}/config/lazygit'
# terminal configs
- name: '{{ env "XDG_CONFIG_HOME" }}/wezterm'
target: '{{ env "DOTFILES" }}/config/wezterm'
- name: '{{ env "XDG_CONFIG_HOME" }}/tmux'
target: '{{ env "DOTFILES" }}/config/tmux'
- name: '{{ env "XDG_DATA_HOME" }}/tmux/tpm'
target: '{{ env "DOTFILES" }}/vendor/tpm'
mkdir: true
- name: '{{ env "XDG_DATA_HOME" }}/tmux/plugins/tpm'
target: '{{ env "DOTFILES" }}/vendor/tpm'
mkdir: true
# editor configs
- name: '{{ env "XDG_CONFIG_HOME" }}/nvim'
target: '{{ env "DOTFILES" }}/config/nvim'
- name: "{{ .Home }}/Library/Application\ Support/VSCodium/User/settings.json"
target: '{{ env "DOTFILES" }}/config/vscodium/settings.json'
mkdir: true
if: eq .OS "darwin"
- name: '{{ env "XDG_CONFIG_HOME" }}/VSCodium/User/settings.json'
target: '{{ env "DOTFILES" }}/config/vscodium/settings.json'
mkdir: true
if: eq .OS "linux"
# other configs
- name: '{{ env "XDG_CONFIG_HOME" }}/bat/config'
target: '{{ env "DOTFILES" }}/config/bat/config'
mkdir: true
- name: '{{ env "XDG_CONFIG_HOME" }}/bat/themes'
target: '{{ env "DOTFILES" }}/vendor/catppuccin-bat/themes'
- name: '{{ env "XDG_CONFIG_HOME" }}/btop'
target: '{{ env "DOTFILES" }}/config/btop'
- name: '{{ env "XDG_CONFIG_HOME" }}/fastfetch'
target: '{{ env "DOTFILES" }}/config/btop'
- name: '{{ env "XDG_CONFIG_HOME" }}/oh-my-posh'
target: '{{ env "DOTFILES" }}/config/oh-my-posh'
- name: '{{ env "XDG_CONFIG_HOME" }}/yazi'
target: '{{ env "DOTFILES" }}/config/yazi'
# macOS launch daemons
- name: "{{ .Home }}/Library/LaunchAgents/com.boldandbrad.CapsLockEscape.plist"
target: '{{ env "DOTFILES" }}/util/macos/launch_agents/com.boldandbrad.CapsLockEscape.plist'
if: eq .OS "darwin"