地址 https://github.com/hugsy/gef
# via the install script #下载 `gef.sh` 并执行 wget -q -O- https://github.com/hugsy/gef/raw/master/gef.sh | sh # manually # 下载 `gef.py`, 并将其 `source` 写入 `.gdbinit` wget -q -O ~/.gdbinit-gef.py https://github.com/hugsy/gef/raw/master/gef.py echo source ~/.gdbinit-gef.py >> ~/.gdbinit
可见 gef.sh
的工作其实就是将 gef.py
下载下来, 并将环境变量写入 .gdbinit