-
Notifications
You must be signed in to change notification settings - Fork 1
/
.aliases
48 lines (37 loc) · 938 Bytes
/
.aliases
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
## shorthands
alias c="clear"
alias e="$EDITOR"
alias sudoedit="sudo $EDITOR"
alias mkdir="mkdir -p"
alias l="ls -lah"
alias g="git"
alias pf="pnpm --filter"
alias yw="yarn workspace"
alias yws="yarn workspaces"
# vscode profiles
alias teach="code --user-data-dir ~/code_profiles/teaching/data --extensions-dir ~/code_profiles/teaching/extensions"
## add GITHUB_TOKEN to current env
alias ght="source ~/.bin/ght"
## replacements
if command_exists hub; then
alias g="hub"
fi
if command_exists fd; then
alias find="fd"
fi
if command_exists exa; then
alias ls="exa"
fi
if command_exists bat; then
alias cat="bat"
fi
## custom
alias vim="$EDITOR"
alias path='echo $PATH | tr -s ":" "\n"'
alias fpath='echo $FPATH | tr -s ":" "\n"'
alias tf=terraform
# ripgrep
alias rg="rg --hidden --follow -g '!{.git,node_modules}/*'"
alias rgf="rg --fixed-strings"
# local custom aliases
[[ -f ~/.aliases.local ]] && . ~/.aliases.local