Skip to content

Commit

Permalink
FAQ updates - implicit cd and autosuggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
zanchey committed May 10, 2013
1 parent fb0d297 commit 0c14a02
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions doc_src/faq.hdr
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/** \page faq Frequently asked questions

- <a href='#faq-cwd-symlink'>Why does cd, pwd and other fish commands always resolve symlinked directories to their canonical path?</a>
- <a href='#faq-cd-autocomplete'>Why does the cd command autocompletion list the subdirectories of my home directory as completions?</a>
- <a href='#faq-cd-implicit'>I accidentally entered a directory path and fish changed directory. What happened?</a>
- <a href='#faq-open'>The open command doesn't work.</a>
- <a href='#faq-default'>How do I make fish my default shell?</a>
Expand Down Expand Up @@ -42,19 +41,9 @@ silently fails in shells that don't resolve symlinked paths.

<hr>

\section faq-cd-autocomplete Why does the cd command autocompletion list the subdirectories of my home directory as completions?

Because they are completions. In fish, if you specify a relative
directory to the cd command, i.e. any path that does not start with
either './' or '/', the environment variable CDPATH will be examined, and any
directories in this path is used as a base directory. To disable this
feature, write <code>set CDPATH .</code> on the commandline.

<hr>

\section faq-cd-implicit I accidentally entered a directory path and fish changed directory. What happened?

If fish is unable to locate a command with a given name, fish will
If fish is unable to locate a command with a given name, and it starts with '.', '/' or '~', fish will
test if a directory of that name exists. If it does, it is implicitly
assumed that you want to change working directory. For example, the
fastest way to switch to your home directory is to simply press
Expand All @@ -64,13 +53,12 @@ fastest way to switch to your home directory is to simply press

\section faq-open The open command doesn't work.

The open command uses the mimetype database and the .desktop files
The \c open command uses the MIME type database and the <code>.desktop</code> files
used by Gnome and KDE to identify filetypes and default actions. If
at least one of these two desktops are installed, but the open command is
at least one of these environments is installed, but the open command is
not working, this probably means that the relevant files are installed
in a nonstandard location. Please contact the <a
href='mailto:fish-users@lists.sf.net'>fish mailing list</a>, and
hopefully this can be resolved.
in a non-standard location. Consider <a href="index.html#more-help">asking for
more help</a>.

<hr>

Expand Down

0 comments on commit 0c14a02

Please sign in to comment.