well, I was bored to hell so here’s a program to use if you want a DOS-like prompt for your UNIX shell
tested with ksh93, bash, and zsh, simply compile this and set PS1, PROMPT, or whatever variable your shell uses to '$(/path/to/binary)'
#include <stdio.h> #include <stdlib.h> int main(void) { char *path = getenv("PWD"); for (char *chr = path; *chr; chr++) { if (*chr == '/') { *chr = '\\'; } } printf("C:%s> ", path); return 0; }