Created
March 25, 2016 08:09
-
-
Save gotnix/6b39c20d01dbf699e91f to your computer and use it in GitHub Desktop.
Bash 配置加载流程
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Bash user login process | |
| */ | |
| digraph Bash { | |
| graph[label="Bash 配置加载流程"]; | |
| //rankdir=TB; | |
| fontname="DejaVu Sans Mono, Microsoft YaHei"; | |
| fontsize=12; | |
| node [fontname="DejaVu Sans Mono", fontsize=11]; | |
| edge [fontname="DejaVu Sans Mono", fontsize=11]; | |
| start [shape=circle, | |
| label=<<b>S</b>>, | |
| style=filled, | |
| fillcolor="#2E2E2E", | |
| fontcolor="#E6E6E6" | |
| ]; | |
| global_profile [shape=box, label="/etc/profile"]; | |
| global_profiled [shape=box, label="/etc/profile.d/*.sh"]; | |
| user_profile [shape=box, label="${HOME}/.bash_profile"]; | |
| user_bashrc [shape=box, label="${HOME}/.bashrc"]; | |
| global_bashrc [shape=box, label="/etc/bashrc"]; | |
| end [shape=circle, | |
| label=<<b>E</b>>, | |
| style=filled, | |
| fillcolor="#2E2E2E", | |
| fontcolor="#E6E6E6" | |
| ]; | |
| start -> global_profile [color="blue", label="Longin Shell"]; | |
| global_profile -> global_profiled -> user_profile -> user_bashrc | |
| -> global_bashrc -> end [color="blue"]; | |
| start -> user_bashrc [color="green",label="Non-Longin\nShell"]; | |
| user_bashrc -> global_bashrc -> user_profile -> end [color="green"]; | |
| layout = "dot" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment