-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshaliases
41 lines (32 loc) · 1.1 KB
/
.zshaliases
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
# Aliases
# source ~/.zshaliases in your .zshrc
# zsh
alias zshconfig='code ~/.zshrc'
alias ohmyzsh='code ~/.oh-my-zsh'
# fix brew doctor + pyenv
alias brew='env PATH="${PATH//$(pyenv root)\/shims:/}" brew'
# nav
alias cdc='cd ~/code'
# git
alias gs='git status'
alias gd='git diff -b -w'
alias gds='git diff --staged -b -w'
alias gdb='git diff develop...HEAD'
alias gdbm='git diff main..HEAD'
alias gb='git --no-pager branch -v'
alias gcm='git switch main'
alias gcd='git switch develop'
alias mgs="find . -depth 3 -name .git -type d -execdir zsh -c 'pwd; git status -s -b; echo' \;"
alias mgf="find . -depth 3 -name .git -type d -execdir zsh -c 'pwd; git fetch --all; echo' \;"
# dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# aws-cli
alias aws_login='saml2aws login -a'
# snowsql
alias snowsql=/Applications/SnowSQL.app/Contents/MacOS/snowsql
# general purpose
weather () {
curl https://wttr.in/"${1}"
}
alias whatsmyip='curl ipinfo.io'
alias dbt_build_modified='dbt build --select $(git diff --name-only --diff-filter=AMRC main -- **/*.sql | sed -r "s/.+\/(.+)\..+/\1/")'