diff options
| author | Anton Kling <anton@kling.gg> | 2023-11-25 18:32:20 +0100 | 
|---|---|---|
| committer | Anton Kling <anton@kling.gg> | 2023-11-25 18:32:34 +0100 | 
| commit | d73f70a656e66b3014bc669a5f82434fb96f5e95 (patch) | |
| tree | a5cb61d1bf9baab155ee4e1ec09b0f4eb004a2a8 /userland | |
| parent | e4aa83204502df229def8f1b639039dfa5fe33a1 (diff) | |
Minibox shell: Change shell prompt to use cwd
Diffstat (limited to 'userland')
| -rw-r--r-- | userland/minibox/utilities/sh/sh.c | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/userland/minibox/utilities/sh/sh.c b/userland/minibox/utilities/sh/sh.c index 3a29302..a2db331 100644 --- a/userland/minibox/utilities/sh/sh.c +++ b/userland/minibox/utilities/sh/sh.c @@ -141,7 +141,8 @@ int sh_main(int argc, char **argv) {    (void)argc;    (void)argv;    for (;;) { -    printf("/ : "); +    char buffer[256]; +    printf("%s : ", getcwd(buffer, 256));      char *line = get_line();      {        struct TOKEN *h = lex(line); |