zshrepo/.zprofile
Jochen Maes 98b5f34043 initial commit
Signed-off-by: Jochen Maes <jochen@sejo-it.be>
2023-11-27 07:48:55 +01:00

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
)