aboutsummaryrefslogtreecommitdiffhomepage
path: root/reader.cpp
diff options
context:
space:
mode:
authorGravatar maxfl <gmaxfl@gmail.com>2012-07-07 10:17:24 +0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-07-07 23:34:16 -0700
commit76e1cda495d6e88cea383d387375588cdf9297bc (patch)
treed7763e521185691ff8850a5b3ed604391e908cc2 /reader.cpp
parentc1a23bf4502b9812f3d2d5cfd3760b33b0ce44c7 (diff)
Set single-line default prompt
Fish now doesn't join the fish_prompt output. This breaks the default fish_prompt. Make default fish_prompt single-line. Fixes #203. Add -l flag to 'read' documentation. Remove ambiguous '-x' description. Fixes #157.
Diffstat (limited to 'reader.cpp')
-rw-r--r--reader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/reader.cpp b/reader.cpp
index 29645d74..ba275f54 100644
--- a/reader.cpp
+++ b/reader.cpp
@@ -118,7 +118,7 @@ commence.
fish specific commands, meaning it will work even if fish is not
installed. This is used by read_i.
*/
-#define DEFAULT_PROMPT L"echo \"$USER@\"; hostname|cut -d . -f 1; echo \" \"; pwd; printf '> ';"
+#define DEFAULT_PROMPT L"echo -n \"$USER@\"(hostname|cut -d . -f 1)' '(pwd)'> '"
/**
The name of the function that prints the fish prompt