summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-24 12:39:45 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-24 12:39:45 -0500
commit33b951f3b5d89c0ba7e7c7d821a9eafb37088872 (patch)
treea5de2f26fe044f44f5b39fae9adac51395dae893 /ted.h
parent68b77c7a1cde7344702cf1d162e0124498a6b616 (diff)
auto-cd: check if actually directory, ~
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index d33c460..077d32d 100644
--- a/ted.h
+++ b/ted.h
@@ -114,3 +114,16 @@ typedef struct Ted {
char cwd[TED_PATH_MAX]; // current working directory
char error[256];
} Ted;
+
+// should the working directory be searched for files? set to true if the executable isn't "installed"
+static bool ted_search_cwd = false;
+static char const ted_global_data_dir[] =
+#if _WIN32
+ "C:\\Program Files\\ted";
+#else
+ "/usr/share/ted";
+#endif
+
+// filled out in main()
+static char ted_local_data_dir[TED_PATH_MAX];
+static char ted_home[TED_PATH_MAX]; // home directory -- this is what ~ expands to