~/source(1) en

SOURCE(1)General Commands ManualSOURCE(1)

NAME

source, . - run a file of commands in this shell

SYNOPSIS

source file

DESCRIPTION

Reads a file and runs it here, in this shell — so a variable it sets stays set and an alias it makes stays made. That is the difference between source x.sh and sh x.sh: the second gets a shell of its own, and can hand nothing back but its exit status.

It is how ~/.zshrc is read at every login, and how you read it again after changing it.

EXAMPLES

source ~/.zshrc

. /tmp/setup.sh

SEE ALSO

sh(1), export(1), alias(1)

tilenkoren.com2026SOURCE(1)