diff --git a/System/Core/Shell.HC b/System/Core/Shell.HC index af37df9..d6ebfda 100644 --- a/System/Core/Shell.HC +++ b/System/Core/Shell.HC @@ -219,8 +219,6 @@ U0 @shell_update_prompts(@shell* sh) StrPrint(buf2, "/home/%s", &sh->session->user.name); if (!StrCmp(&buf, &buf2)) StrCpy(&buf, "~"); - else - StrCpy(&buf, StrLastOcc(&buf, "/") + 1); StrPrint(&sh->PS1, "\x1b[0;32m[%s@%s %s]\x1b[1;37m\d ", &sh->session->user.name, &sh->session->hostname, &buf); } @@ -234,8 +232,6 @@ U0 @shell_set_window_title(@shell* sh) StrPrint(buf2, "/home/%s", &sh->session->user.name); if (!StrCmp(&buf, &buf2)) StrCpy(&buf, "~"); - else - StrCpy(&buf, StrLastOcc(&buf, "/") + 1); StrPrint(buf3, "[%s@%s %s]", &sh->session->user.name, &sh->session->hostname, &buf); Stdio.WriteLine(sh, "\x1b]0;");