Compare commits

..

2 Commits

Author SHA1 Message Date
PorridgePi
6baa7c2641 zshrc: chore: Comments 2022-09-27 21:54:24 +08:00
PorridgePi
04985cfbb7 zshrc: feat: Add OS-specific section 2022-09-27 21:53:30 +08:00

18
.zshrc
View File

@@ -41,13 +41,12 @@ eval $(thefuck --alias)
# Python
alias python='python3'
alias pip='pip3'
# Intel (Rosetta 2) Homebrew
alias ibrew='arch -x86_64 /usr/local/bin/brew'
# Case-insensitive autocomplete
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
autoload -Uz compinit && compinit
# Powerlevel10k
zinit ice depth=1; zinit light romkatv/powerlevel10k
# zsh-autosuggestions
@@ -62,6 +61,21 @@ bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
export HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=true
########## OS-Specific ########################################################
if [[ "$OSTYPE" == "linux-gnu"* ]]; then
##### Linux
elif [[ "$OSTYPE" == "darwin"* ]]; then
##### macOS
### Aliases
# Intel (Rosetta 2) Homebrew
alias ibrew='arch -x86_64 /usr/local/bin/brew'
else
##### Unknown
fi
########## pnpm ###############################################################
export PNPM_HOME="/Users/porridge/Library/pnpm"