diff options
author | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2013-10-28 09:57:36 +0800 |
---|---|---|
committer | David Adam <zanchey@ucc.gu.uwa.edu.au> | 2013-10-28 23:33:24 +0800 |
commit | edc4614e6339f8e232d1c86d2fe4f15c91ced5b8 (patch) | |
tree | ffecb3e7e108ee1f851718e98e79bf79b17f2244 | |
parent | cf766b55cca979745f6c218d78f9cdcc297b3f20 (diff) |
add completions for source and document the move away from '.'
Closes: #310
-rw-r--r-- | Makefile.in | 2 | ||||
-rw-r--r-- | doc_src/source.txt | 4 | ||||
l---------[-rw-r--r--] | share/completions/..fish | 2 | ||||
-rw-r--r-- | share/completions/source.fish | 1 |
4 files changed, 7 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in index 2e3a03e3..a0be4973 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 # diff --git a/doc_src/source.txt b/doc_src/source.txt index c49e2491..786577dc 100644 --- a/doc_src/source.txt +++ b/doc_src/source.txt @@ -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. diff --git a/share/completions/..fish b/share/completions/..fish index dcb48a1e..952c2618 100644..120000 --- a/share/completions/..fish +++ b/share/completions/..fish @@ -1 +1 @@ -complete -c . -x -a "(__fish_complete_suffix .fish)" +source.fish
\ No newline at end of file diff --git a/share/completions/source.fish b/share/completions/source.fish new file mode 100644 index 00000000..dcb48a1e --- /dev/null +++ b/share/completions/source.fish @@ -0,0 +1 @@ +complete -c . -x -a "(__fish_complete_suffix .fish)" |