38 lines
542 B
Bash
38 lines
542 B
Bash
#!/bin/zsh
|
|
#
|
|
# .zprofile - Zsh file loaded on login.
|
|
#
|
|
|
|
#
|
|
# Browser
|
|
#
|
|
|
|
if [[ "$OSTYPE" == darwin* ]]; then
|
|
export BROWSER="${BROWSER:-open}"
|
|
fi
|
|
|
|
#
|
|
# Editors
|
|
#
|
|
|
|
export EDITOR="${EDITOR:-vim}"
|
|
export VISUAL="${VISUAL:-vim}"
|
|
export PAGER="${PAGER:-less}"
|
|
|
|
#
|
|
# Paths
|
|
#
|
|
|
|
# Ensure path arrays do not contain duplicates.
|
|
typeset -gU path fpath
|
|
|
|
# Set the list of directories that zsh searches for commands.
|
|
path=(
|
|
$HOME/{,s}bin(N)
|
|
$HOME/.cargo/bin
|
|
$HOME/.local/{,s}bin(N)
|
|
/opt/{homebrew,local}/{,s}bin(N)
|
|
/usr/local/{,s}bin(N)
|
|
$path
|
|
)
|