.TH "exit" 1 "8 Feb 2007" "Version 1.22.3" "fish" \" -*- nroff -*- .ad l .nh .SH NAME exit - exit the shell. .PP .SS "Synopsis" \fCexit [STATUS]\fP .SS "Description" The \fCexit\fP builtin causes fish to exit. If \fCSTATUS\fP is supplied, it will be converted to an integer and used as the exit code. Otherwise the exit code will be that of the last command executed. .PP If exit is called while sourcing a file (using the . builtin) the rest of the file will be skipped, but the shell itself will not exit.