diff options
author | Jan200101 <sentrycraft123@gmail.com> | 2020-12-05 14:10:37 +0100 |
---|---|---|
committer | Jan200101 <sentrycraft123@gmail.com> | 2020-12-05 14:10:37 +0100 |
commit | c8ed2a0b68c69da998fde24fc2dabbfc7ceded5f (patch) | |
tree | 37c1e99995b4996f0e84a9ff47fcab244d2b98ae /src/wine.c | |
parent | 4dca2e233748eb386a0054170491697bcb0532ea (diff) | |
download | polecat-c8ed2a0b68c69da998fde24fc2dabbfc7ceded5f.tar.gz polecat-c8ed2a0b68c69da998fde24fc2dabbfc7ceded5f.zip |
update wine env output to output actual given wine version
Diffstat (limited to 'src/wine.c')
-rw-r--r-- | src/wine.c | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -285,14 +285,13 @@ int wine_env(int argc, char** argv) winepath[strlen(winepath) - strlen("wine")] = '\0'; if (isatty(STDOUT_FILENO)) { - puts("To add a wine installation to your PATH\n" - "you have to eval polecats output eval\n" - "the output (or your shells equivelent)\n\n" - " eval `polecat wine env <version>`"); + printf("To add a wine installation to your PATH\n" + "you have to eval the output.\n\n" + "$ eval `polecat wine env %s`\n", winever); } else { - printf("PS1=\"(%s)$PS1\"\nPATH=\"%s:$PATH\"\n", winever, winepath); + printf("PS1=\"(%s) $PS1\"\nPATH=\"%s:$PATH\"\n", winever, winepath); } //printf("PATH=\"%s\"\n# Run this code in your Terminal\n# by running eval `%s`", newpath, argv[0]); } |