diff options
| -rwxr-xr-x | config/smash.d/prompt | 5 | ||||
| -rw-r--r-- | lib/sys/getcwd.h | 11 |
2 files changed, 16 insertions, 0 deletions
diff --git a/config/smash.d/prompt b/config/smash.d/prompt new file mode 100755 index 0000000..fa2a8e5 --- /dev/null +++ b/config/smash.d/prompt @@ -0,0 +1,5 @@ +#!/system/core/smash + +[CWD]=cwd + +print " %S%F%s%S@%S%F%s%S %s > " BOLD RED liveiso RESET BOLD GREEN rex RESET $[CWD] diff --git a/lib/sys/getcwd.h b/lib/sys/getcwd.h new file mode 100644 index 0000000..ee14c2f --- /dev/null +++ b/lib/sys/getcwd.h @@ -0,0 +1,11 @@ +#ifndef GETCWD_H +#define GETCWD_H + +#include "syscalls.h" + +static int getcwd(char *buf, unsigned long size) +{ + return syscall(GETCWD, buf, size); +} + +#endif |