abra zsh config 2.0
This commit is contained in:
@@ -6,6 +6,16 @@
|
||||
#
|
||||
|
||||
# Ensure that a non-login, non-interactive shell has a defined environment.
|
||||
if [[ "$SHLVL" -eq 1 && ! -o LOGIN && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
|
||||
if [[ ( "$SHLVL" -eq 1 && ! -o LOGIN ) && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
|
||||
source "${ZDOTDIR:-$HOME}/.zprofile"
|
||||
fi
|
||||
|
||||
function add_to_path {
|
||||
if [[ -d $1 ]]; then
|
||||
export PATH="$1:$PATH"
|
||||
fi
|
||||
}
|
||||
|
||||
add_to_path "$HOME/bin"
|
||||
add_to_path "$HOME/brew/sbin"
|
||||
add_to_path "$HOME/brew/bin"
|
||||
|
Reference in New Issue
Block a user