From c8ed2a0b68c69da998fde24fc2dabbfc7ceded5f Mon Sep 17 00:00:00 2001 From: Jan200101 Date: Sat, 5 Dec 2020 14:10:37 +0100 Subject: update wine env output to output actual given wine version --- src/wine.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/wine.c') diff --git a/src/wine.c b/src/wine.c index f1827d8..80b9cfa 100644 --- a/src/wine.c +++ b/src/wine.c @@ -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 `"); + 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]); } -- cgit v1.2.3