summaryrefslogtreecommitdiff
path: root/examples/customization/pwd-cd-and-system/.lldbinit
diff options
context:
space:
mode:
Diffstat (limited to 'examples/customization/pwd-cd-and-system/.lldbinit')
-rw-r--r--examples/customization/pwd-cd-and-system/.lldbinit7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/customization/pwd-cd-and-system/.lldbinit b/examples/customization/pwd-cd-and-system/.lldbinit
new file mode 100644
index 0000000000000..f477b5797bec5
--- /dev/null
+++ b/examples/customization/pwd-cd-and-system/.lldbinit
@@ -0,0 +1,7 @@
+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