-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
45 lines (35 loc) · 1.08 KB
/
.zshrc
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
## Zsh
fpath+=~/.zfunc
setopt auto_cd
setopt share_history
setopt auto_pushd
setopt hist_expire_dups_first
setopt hist_reduce_blanks
setopt hist_verify
zstyle ':completion:*' menu select
## Zinit
source $HOME/.zsh/zinit.zsh
## Google Cloud SDK
source /opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.zsh.inc
source /opt/homebrew/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.zsh.inc
## Aliases
alias ls="lsd"
alias rm="rm"
alias f="fuck"
alias config="$(which git) --git-dir=$HOME/.dotfiles --work-tree=$HOME"
alias ncu="pkgx npx --yes npm-check-updates --"
## Miscellaneous
source $HOME/.zsh/inc/zsh-autosuggestions-paste-fix.zsh
## pnpm / tabtab
# Install / update tab completion with "pnpm install-completion zsh"
[[ -f ~/.config/tabtab/zsh/__tabtab.zsh ]] && . ~/.config/tabtab/zsh/__tabtab.zsh || true
## 1Password CLI
eval "$(op completion zsh)"; compdef _op op
## Android development
deeplink() {
echo "Launching deep link: $1"
adb shell am start -a android.intent.action.VIEW -d "'$1'"
}
# pkgx
# docs.pkgx.sh/shellcode
source <(pkgx --shellcode)