-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathzshrc
More file actions
55 lines (38 loc) · 1.52 KB
/
zshrc
File metadata and controls
55 lines (38 loc) · 1.52 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
ZSH_THEME=""
plugins=(git tmux zsh-syntax-highlighting zsh-autosuggestions)
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /opt/homebrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg-8" # zsh augosuggestions default value.
if [ "$AUTO_UPDATE_ZSH" != true ]; then
export DISABLE_AUTO_UPDATE=true # UPDATE was too slow.
else
echo "AUTO UPDATE ZSH"
fi
unset DISABLE_AUTO_UPDATE
unset AUTO_UPDATE_ZSH
# You may need to manually set your language environment
export LANG=en_US.UTF-8
export PYENV_VIRTUALENV_DISABLE_PROMPT=1
export TERM=screen-256color
alias vim=/opt/homebrew/bin/nvim
alias vi=vim
# tmux new-session -A -s basic
alias attach=tmux new-session -A -s basic
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
alias proxy="all_proxy=http://localhost:7890"
eval `(ssh-agent -s)` && ssh-add --apple-use-keychain
alias reset="reset && tput te"
defaults write -g InitialKeyRepeat -int 15 # normal minimum is 15 (225 ms)
defaults write -g KeyRepeat -float 1.2 # normal minimum is 2 (30 ms)
alias update_zsh="AUTO_UPDATE_ZSH=true source ~/.zshrc"
export PATH="${HOME}/.local/bin":$PATH
eval "$(mise activate zsh)"
source <(fzf --zsh)
source /opt/homebrew/share/zsh/site-functions
source "$HOME/.cargo/env"
alias unlock-keychain="security unlock-keychain"
# ai-commit
export OPENAI_API_KEY=""
export PATH="/opt/homebrew/opt/libpq/bin:$PATH"
eval "$(starship init zsh)"