Skip to content

Commit

Permalink
doc: faq: avoid overwriting config.fish.
Browse files Browse the repository at this point in the history
In FAQ:

> I'm seeing weird output before each prompt when using screen. What's wrong?

The command provided is

    echo 'function fish_title;end' > ~/.config/fish/config.fish

Using `>` will overwrite current config.fish.

We should use `>>` instead.
  • Loading branch information
weakish authored and ridiculousfish committed May 4, 2015
1 parent 9b5026f commit cec1dc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc_src/faq.hdr
Expand Up @@ -162,7 +162,7 @@ Quick answer:
Run the following command in fish:

\fish{cli-dark}
echo 'function fish_title;end' > ~/.config/fish/config.fish
echo 'function fish_title;end' >> ~/.config/fish/config.fish
\endfish

Problem solved!
Expand Down

3 comments on commit cec1dc2

@KamilaBorowska
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like it should instead point to funcsave, but that may be just me.

@ridiculousfish
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. It might be shorter too: function fish_title; end; funcsave fish_title

@zanchey
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made that change in 1c99ef5 on the 2.2.0 branch.

Please sign in to comment.