zshrc: feat: Add OS-specific section
This commit is contained in:
17
.zshrc
17
.zshrc
@@ -41,8 +41,6 @@ eval $(thefuck --alias)
|
|||||||
# Python
|
# Python
|
||||||
alias python='python3'
|
alias python='python3'
|
||||||
alias pip='pip3'
|
alias pip='pip3'
|
||||||
# Intel (Rosetta 2) Homebrew
|
|
||||||
alias ibrew='arch -x86_64 /usr/local/bin/brew'
|
|
||||||
|
|
||||||
# Case-insensitive autocomplete
|
# Case-insensitive autocomplete
|
||||||
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
|
zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' 'r:|=*' 'l:|=* r:|=*'
|
||||||
@@ -62,6 +60,21 @@ bindkey '^[[A' history-substring-search-up
|
|||||||
bindkey '^[[B' history-substring-search-down
|
bindkey '^[[B' history-substring-search-down
|
||||||
export HISTORY_SUBSTRING_SEARCH_ENSURE_UNIQUE=true
|
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 ###############################################################
|
########## pnpm ###############################################################
|
||||||
export PNPM_HOME="/Users/porridge/Library/pnpm"
|
export PNPM_HOME="/Users/porridge/Library/pnpm"
|
||||||
|
|||||||
Reference in New Issue
Block a user