aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan200101 <sentrycraft123@gmail.com>2020-12-12 14:41:12 +0100
committerJan200101 <sentrycraft123@gmail.com>2020-12-12 14:41:12 +0100
commit48cdfd12cd23924a65717dee1cdce4d475639035 (patch)
treea0a0a4f2773153c2a380e7997e7c83cb8bc560b4
parentd535019d4d5c1023768fc385055aae6573b2ac69 (diff)
downloadpolecat-48cdfd12cd23924a65717dee1cdce4d475639035.tar.gz
polecat-48cdfd12cd23924a65717dee1cdce4d475639035.zip
improve fish-env message
-rw-r--r--src/wine.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/wine.c b/src/wine.c
index f3ad72d..0cfbfd2 100644
--- a/src/wine.c
+++ b/src/wine.c
@@ -337,8 +337,11 @@ COMMAND(wine, env)
if (isatty(STDOUT_FILENO))
{
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);
+ "you have to eval the output.\n\n");
+ if (!fish_env)
+ printf("$ eval `polecat wine env %s`\n", winever);
+ else
+ printf("$ eval (polecat wine fish-env %s)\n", winever);
}
else
{