zsh ZShell筆記

.zshenv 絕對使用
包含其他程式需要的變異數,例如 $PATH, $EDITOR, $PAGER
也可以用$ZDOTDIR來設定ZShell的其他位置

.zshrc 互動 shell控制
使用 setopt跟 unsetopt來設定控制指令
可以讀取 shell modules,設定歷史選項,改變 prompt
設定zle &自動完成
設定 aliases, functions, options, key bindings

.zlogin 在登入時使用,在.zshrc之後
startx. 有些系統在開機後startx 所以不是很常用

.zprofile 基本上跟.zlogin一樣,但在.zshrc之前

.zlogout 通常是清理&重設 terminal

留言