add completions for source and document the move away from '.'

Closes: #310
This commit is contained in:
David Adam 2013-10-28 09:57:36 +08:00
parent cf766b55cc
commit edc4614e63
4 changed files with 7 additions and 2 deletions

View file

@ -233,7 +233,7 @@ TESTS_DIR_FILES := $(TEST_IN) $(TEST_IN:.in=.out) $(TEST_IN:.in=.err) \
# Files in ./share/completions/
#
COMPLETIONS_DIR_FILES := $(wildcard share/completions/*.fish)
COMPLETIONS_DIR_FILES := $(wildcard share/completions/*.fish) share/completions/..fish
#

View file

@ -20,6 +20,10 @@ The return status of \c source is the return status of the last job to
execute. If something goes wrong while opening or reading the file,
\c source exits with a non-zero status.
\c . (a single period) is an alias for the \c source command. The use of \c .
is deprecated in favour of \c source, and \c . will be removed in a future
version of fish.
\subsection source-example Example
<tt>source ~/.config/fish/config.fish</tt> causes fish to re-read its initialization file.

View file

@ -1 +0,0 @@
complete -c . -x -a "(__fish_complete_suffix .fish)"

1
share/completions/..fish Symbolic link
View file

@ -0,0 +1 @@
source.fish

View file

@ -0,0 +1 @@
complete -c . -x -a "(__fish_complete_suffix .fish)"