Expand description
Shell initialization for zshrs
Port from zsh/Src/init.c
Provides shell initialization, startup script sourcing, and main loop.
Structs§
- Shell
Options - Shell initialization options
- Shell
State - Global shell state
Enums§
- Loop
Return - Loop result
- Shell
Emulation - Shell emulation mode
- Source
Return - Source result
Functions§
- get_
exe_ path - Get the executable path of the current process
- get_
zdotdir - Get the ZDOTDIR
- init_
hashtable - Set up the hash tables (from init.c init_hashtable equivalent)
- init_io
- Initialize shell I/O
- init_
main - Full initialization sequence (from init.c init_main)
- init_
term - Initialize terminal settings (from init.c init_term)
- init_
tty - Set up the tty (from init.c init_tty)
- is_
login_ shell - Determine if shell is a login shell from
argv[0] - parseargs
- Parse command line arguments
- pathprog
- Find a command in PATH (from init.c pathprog equivalent)
- run_
exit_ scripts - Run logout scripts (from init.c run_exit_scripts counterpart)
- run_
init_ scripts - Run initialization scripts
- set_
pwd_ env - Set up the PWD variable (from init.c set_pwd_env)
- setup_
emulation_ opts - Set up options from emulation mode (from init.c setupvals emulation portion)
- setupvals
- Set up shell values
- source
- Source a file
- sourcehome
- Source a file from home directory
- zexit
- Close the shell (from init.c zexit)