llvm-project/lldb/examples/customization/pwd-cd-and-system/.lldbinit

8 lines
251 B
Plaintext

script import os, sys
# So that ~/utils.py takes precedence.
script sys.path[:0] = [os.path.expanduser('~')]
script import utils
command alias pwd script print os.getcwd()
command script add -f utils.chdir cd
command script add -f utils.system system