-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdot_zshrc
More file actions
66 lines (57 loc) · 1.67 KB
/
dot_zshrc
File metadata and controls
66 lines (57 loc) · 1.67 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
# extend PATH with brew path
export PATH="/opt/homebrew/bin/:$PATH"
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
eval "$(starship init zsh)"
# Git aliases
alias gcm='git commit -m'
alias gaa='git add -A'
alias gco='git checkout'
alias gpl='git pull origin'
alias gps='git push'
alias gst='git status'
alias gbr='git branch'
alias gpo='git push origin'
alias gdf='git diff'
alias gfe='git fetch --prune'
alias grs='git reset --soft HEAD~1' # undo the last commit
alias grs!='git reset --hard HEAD~1' # remove the last commit
alias gcn='git clone'
# Find commits by source code.
gfcs() {
git log --pretty=custom --decorate --date=short -S"$1"
}
# Find commits by commit message.
gfcm() {
git log --pretty=custom --decorate --date=short --grep="$1"
}
# List remote branches.
glrb() {
remote="${1:-origin}"
git ls-remote --heads "$remote"
}
# Directory aliases
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias dev='cd ~/Developer'
alias doc='cd ~/Documents'
alias des='cd ~/Desktop'
alias dow='cd ~/Downloads'
alias home='cd ~'
# Tool aliases
# alias ls='eza'
alias ls='ls'
alias find='fd'
alias cd='z'
alias cat='bat --paging=never'
alias lst='eza --tree'
alias fzf='fzf --preview "bat --color=always --style=numbers --line-range=:500 {}"'
alias fzb='fzf --preview "bat --color=always --style=numbers --line-range=:500 {}"'
alias neofetch='macchina'
alias fetch='macchina'
export PATH=/opt/homebrew/opt/postgresql@16/bin:$PATH
export PATH="/Users/john.memmott/.deno/bin:$PATH"
export PATH="/Users/john.memmott/.zig:$PATH"
eval "$(zoxide init zsh)"
# Shopify Hydrogen alias to local projects
alias h2='$(npm prefix -s)/node_modules/.bin/shopify hydrogen'