Konrad Borowski
e1608362d0
Fix s/$remote// mistake.
...
$remote could have contained /.
2013-11-29 15:26:33 +01:00
Shane Xu
0e7790df8c
add port information
2013-11-27 23:39:52 +08:00
Konrad Borowski
591abd340b
Fix bold in informative git prompt.
...
Currently this fix is useless, as web config cannot apply variables,
but in future, it could be more useful.
2013-11-27 11:41:13 +01:00
Jelte Fennema
44d13869ad
Add eselect, rc-update and rc-service completions. (These are utilities used by Gentoo Linux)
...
Disable php completion for the 4th part of the command, since php-eselect is differently designed and causes errors
Closes #1131 .
2013-11-27 18:36:05 +08:00
Konrad Borowski
9862eb930d
Use sed instead of sh for Informative Git Prompt.
...
Informative Git Prompt assumes that sh is bash compatible, but that's
not the case for FreeBSD. Fixes #1140 .
2013-11-27 11:35:01 +01:00
David Adam
0c4dab54f1
__fish_complete_man: Use awk to parse output of apropos
...
Closes #960 .
Uses pattern matching rather than OS detection. Works with BSD awk, GNU
awk and Solaris' nawk.
2013-11-27 17:58:43 +08:00
Misty De Meo
0a54558ee2
Update brew completion with new options
2013-11-26 00:45:13 -08:00
d10n
168d25e780
Do not open CLI browsers when using fish_config.
...
From the Python webbrowser documentation:
"If text-mode browsers are used, the calling process will block until the user exits the browser."
Running fish_config on an ssh server with no GUI browser will open a CLI browser which blocks and stops the server from handling requests.
Using multiprocess to run the server in the background lets CLI browsers access the page, but the page is unusable.
For now, disable CLI browsers and recommend opening the page in a graphical browser.
In the future, maybe write a CLI utility to change prompts and delete history items.
2013-11-26 00:41:09 -08:00
ridiculousfish
63a15e232b
Fix indentation in __fish_complete_cd
2013-11-26 00:07:18 -08:00
Jörg Thalheim
cb86b8f8fc
cd completion: handle not accessible directories
2013-11-26 00:04:31 -08:00
Siteshwar Vashisht
8fc26c1e58
Use fish from $__fish_bin_dir while calling fish_update_completions at startup
2013-11-17 16:24:00 +05:30
Siteshwar Vashisht
6eb7530f75
Do not show files in modprobe completions
2013-11-17 01:21:28 +05:30
Thierry Goettelmann
76ab22f74c
Fix modprobe completion for newer modprobe versions
2013-11-16 20:13:41 +01:00
David Adam
14b6d32fe6
add bindings for PuTTY's I-can't-believe-it's-xterm keyboard
...
(see #170 )
2013-11-13 11:20:59 +08:00
Siteshwar Vashisht
0de26732bf
Don't show warning while generating man page completions on startup
2013-11-12 22:14:14 +05:30
Siteshwar Vashisht
0f02997bcc
Autogenerate manpage completions in background if they do not exist
2013-11-12 22:14:14 +05:30
Konrad Borowski
ba2fcd9dae
Use basename for man argument
...
This protects from providing paths to man, like `./a.out`.
2013-11-09 19:50:38 +08:00
Konrad Borowski
c0ad54fe02
Allow reading manpages by using F1.
2013-11-09 19:50:38 +08:00
Marc Joliet
fe3bca3a88
Prefer standard library lzma module if available
...
Prefer the standard library lzma module if available. This change prevents
using the backports-lzma when it is installed for a version of Python that
already has the lzma module in its standard library.
2013-11-09 19:46:42 +08:00
Konrad Borowski
c5c59d4acb
Implement file autocompletion for git add and git checkout.
...
Fixes bpinto/oh-my-fish#59 .
2013-10-31 21:24:58 +01:00
Asger Hautop Drewsen
4a6592597a
Make type -a print all executables in PATH
2013-10-29 13:32:14 +08:00
David Adam
edc4614e63
add completions for source and document the move away from '.'
...
Closes : #310
2013-10-28 23:33:24 +08:00
Konrad Borowski
e204ced1ae
Disallow package names with dots.
...
They cannot be used as arguments (Perl thinks it's version check, but
version checks are pointless for oneliners), and Debian puts path
containing version depending directories (like 5.14.2) in Perl path.
2013-10-25 19:36:10 +02:00
Brian Gernhardt
59dd6678c3
git_prompt: Allow all set_color arguments
...
There is no need to explicitly check for two arguments and set --bold.
Instead the user can simply "set __fish_git_prompt_color_flags --bold
red".
The current check violates the expectation set by the documentation
that you can use any set_color argument as the current code interprets
"--bold red" as "--bold --bold" instead.
Plus, by passing the full contents of the variable directly, the user
can do more adventurous things like set the background as well.
2013-10-21 12:36:42 -04:00
Brian Gernhardt
137463dc6d
git_prompt: Add upstream_prefix when verbose
...
git.git's git-prompt may not contain a configurable prefix, but it
does display a space before the upstream information when displaying
verbose information. Rather than using a space always or never,
default to a space whenever verbose is in showupstream.
2013-10-21 12:34:14 -04:00
Brian Gernhardt
b652920500
git_prompt: optionally show upstream branch name
...
Adds a "name" option to __fish_git_prompt_showupstream that shows an
abbreviated branch name when the upstream type is verbose.
Based on git.git 1f6806c: git-prompt.sh: optionally show upstream
branch name
2013-10-21 12:08:43 -04:00
Konrad Borowski
2a6eb83fb4
Merge pull request #1015 from marcecj/add_bz2_lzma_xz_support
...
Support bzip2 and lzma/xz compressed man pages
2013-10-18 05:09:00 -07:00
Marc Joliet
6de9a92582
Change the way xz/lzma man pages are detected
...
This avoids the use of the global and puts the diagnostic message in a
self-contained location.
2013-10-17 12:12:04 +02:00
Ronaldo Maia
3788f462b4
Add postgres psql completion
...
Options and descriptions are from psql --help output. Database and username
completion based on the bash completion
2013-10-04 23:28:01 -07:00
Ronaldo Maia
238bbfcbbb
Add postgres psql completion
...
Options and descriptions are from psql --help output. Database and username
completion based on the bash completion
2013-10-04 23:28:01 -07:00
sra
0efa211a05
Use manpath instead of man --path in man.fish function (as in commit
...
c7941fc
).
2013-10-03 11:46:58 +02:00
nulltrek
6990871efd
Fix git completions when aliased command is not found.
2013-10-02 21:40:19 +08:00
MagicMuscleMan
843944f558
Complete apt-get purge identical to apt-get remove
...
As apt-get purge really has the same operations as apt-get remove, there is not reason to handle them differently in its completion file.
2013-09-29 13:35:03 +02:00
Marc Joliet
1c8c9a10b5
Only print an error when an lzma/xz manpage occurs
...
Only print an error when an lzma/xz compressed man page occurs. Also, use
add_diagnostic instead of print.
2013-09-25 18:16:47 +02:00
Konrad Borowski
4aa9f76d06
Fix one element tuple to be actually tuple.
...
While in this case it doesn't mean much (neither `z` or `-` would be
passed to options parser), it makes things possibly less buggy.
2013-09-25 16:39:22 +02:00
Marc Joliet
fc7c489ab6
Skip lzma/xz manpages if lzma module not available
...
Skip man pages compressed with lzma/xz if the lzma module is not available; also
print a corresponding diagnostic message.
2013-09-25 15:41:48 +02:00
Marc Joliet
4856567a2a
Only try "lzma" module on ImportError
2013-09-25 15:41:14 +02:00
Marc Joliet
7d0722bc18
Change an "if" to more appropriate "elif"
...
I overlooked an "if" that should have been an "elif". Oops.
2013-09-25 01:35:32 +02:00
David Adam
1235e60a29
default key bindings: fix syntax errors introduced in 735af50
2013-09-24 22:49:11 +08:00
Marc Joliet
4340368277
Support bzip2 and lzma/xz compressed man pages
...
Add support for bzip2 and lzma/xz compressed man pages. Support for bzip2 is
part of the Python standard library (at least for 2.7 and >=3.2), while lzma/xz
is only in Python >=3.3; however, there is a backports module for Python 2.7 and
3.2.
2013-09-24 15:49:59 +02:00
David Adam
735af50ce9
default key bindings: add further iTerm2 bindings
2013-09-24 20:04:05 +08:00
Konrad Borowski
f76a16a727
Add Perl modules completion.
2013-09-22 20:12:14 +02:00
David Adam
fdef82f89c
rsync completions: complete hostnames ala scp
...
Closes #1010
2013-09-19 23:24:36 +08:00
David Adam
3d68d1bbe2
scp completions: use __fish_print_hostnames rather than doing independent hostname searches
2013-09-19 23:24:36 +08:00
David Adam
c2dcfc9176
__fish_print_hostnames: do a better job of searching SSH files
2013-09-19 23:24:36 +08:00
bathtub
df300e042b
Small fix for fish_update_completions (amended)
...
Amended from https://github.com/fish-shell/fish-shell/pull/1003 .
Fix a Unicode parsing error; search man6.
2013-09-19 13:15:15 +02:00
Konrad Borowski
3996f178e5
Added git stash completion options.
...
Squashed commit of the following:
commit 962a19dfab
Author: Mandeep Sandhu <mandeepsandhu.chd@gmail.com>
Date: Wed Sep 18 18:09:49 2013 +0530
Add missing 'git stash' completion options
Fixed typo.
commit 57bbd89caf
Author: Mandeep Sandhu <mandeepsandhu.chd@gmail.com>
Date: Wed Sep 18 17:59:36 2013 +0530
Add missing 'git stash' completion options
Added the following options which were missing:
* save
* branch
2013-09-18 14:54:11 +02:00
David Adam
7935b1613a
__fish_print_packages: ignore errors, do less manipulation
...
Closes #479 by piping STDERR to /dev/null.
Also does much less manipulation of the package list; there are no
packages in any of the archives containing the names that are stripped
out as far as I can see.
2013-09-17 22:27:15 +08:00
David Adam
8df81f93c8
__fish_print_packages: whitespace fix
2013-09-17 22:20:16 +08:00
nulltrek
daf3469ce4
Add newline before listing current token.
2013-09-13 14:30:13 +08:00