Fabian Homborg
2334374fd6
math: Avoid calling env
2015-09-27 12:51:24 +02:00
Fabian Homborg
95908aa2bc
__fish_hg_prompt: Only show current bookmark
2015-09-26 21:52:20 +02:00
Fabian Homborg
a19f4dd4c8
__fish_hg_prompt: Add bookmark support
2015-09-26 20:41:18 +02:00
Fabian Homborg
eadd4d9b71
__fish_hg_prompt: Bail early if not in a hg repo
2015-09-26 20:40:48 +02:00
Wonicon
4f3ff3d77f
Correct the comment on the default path
...
According to the newer code below:
xdg_data_home = os.getenv('XDG_DATA_HOME', '~/.local/share')
the actual default path is ~/.local/share/fish/generated_completions/
2015-09-26 15:23:45 +02:00
Fabian Homborg
5bb81461f6
Normalize ls completions and bring them up-to-date
...
This adds the --group-directories-first option for GNU ls and fixes a
typo in --block-size (not --blocksize).
Fixes #2425 .
2015-09-26 11:40:04 +02:00
Fabian Homborg
d591cebf44
Introduce __fish_print_pacman_repos helper
...
This is used in at least 4 places, all of which have a bug in that they
print "options" as a valid repo. It seems better to fix it once,
especially given that there are tons of AUR helpers and pacman wrappers,
all of which might need this info.
2015-09-25 13:37:39 +02:00
Fabian Homborg
f24d5cb5f0
__fish_print_{addresses,interaces}: Better OSX/BSD
2015-09-24 15:32:15 +02:00
Fabian Homborg
79c22c76bf
__fish_print_{addresses,interfaces}: Add alternative to net_tools
...
net_tools, which provides `ifconfig` and `netstat`, among other things,
has last been updated in 2013. This means `ifconfig` on linux is
basically dead.
Instead of ifconfig, use `ip` (from iproute2), which is much more powerful and
provides a much more annoying commandline syntax.
Instead of netstat, just look at /sys/class/net.
2015-09-24 15:32:15 +02:00
Fabian Homborg
20e96df85d
export: Enable values with "=" in them
...
Only split on the first "=" to achieve this.
Closes #2403
2015-09-24 15:28:58 +02:00
Fabian Homborg
be51fe944d
Fix vi* completions
...
I forgot a "-c".
2015-09-23 19:01:34 +02:00
Fabian Homborg
54d1d98e39
Fix aliases with whitespace
...
And document how that stuff works.
Fixes #2220
Also, the string stuff is cool.
2015-09-23 13:28:32 +02:00
Fabian Homborg
6f92781992
Refactor *vi* completions, add nvim wrapper
...
This assumes `vim` is always vim (or close enough, nvim should also
work), while `vi` could be either.
Fixes #2416
2015-09-23 12:59:05 +02:00
Fabian Homborg
fb615843b3
git completion: Describe aliases with their definitions
...
I could have sworn we had this already.
2015-09-22 20:25:14 +02:00
Fabian Homborg
c6d808a0d8
git completions: Switch more to string
2015-09-22 20:24:54 +02:00
Fabian Homborg
4f12821ca8
git completion: Rewrite __fish_git_ranges with the string stuff
...
Cuts down on perl.
Also complete heads (i.e. tags and branches) always.
2015-09-22 18:21:09 +02:00
Fabian Homborg
4fcda28d9b
git completions: Add remote branches with only one remote
...
Fixes #675
2015-09-22 16:46:43 +02:00
Johannes Schneider
054fb22854
Maven completion added
2015-09-19 22:27:04 +02:00
Fabian Homborg
be70ea7d49
Add completion for Arch's mkinitcpio
2015-09-17 18:23:37 +02:00
Fabian Homborg
1ef178c5e6
Add alsactl completions
2015-09-17 18:20:23 +02:00
Fabian Homborg
56399b9aa3
systemctl completions: Show instanced services
...
This unfortunately requires us to do two systemctl calls, but it's still
pretty fast.
2015-09-17 18:16:56 +02:00
Fabian Homborg
a79c7495c8
busctl completions: Fix usermode
...
Block-scope strikes again!
2015-09-17 18:12:00 +02:00
Fabian Homborg
f86ee20579
systemctl completions: Support systemd in /lib
...
Debian has not merged /usr/lib and /lib, so they install the `systemd`
binary at /lib/systemd/systemd.
See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=790671
2015-09-16 23:18:04 +02:00
Dan Underwood
18a116394d
Complete atom package manager or apmd
...
Completions for `apm` now support both the Advanced Power Management client and the Atom text editor.
2015-09-16 15:54:42 +01:00
Konrad Borowski
094948db51
Fix issue with pkg --jail=value completion
2015-09-16 13:58:48 +02:00
Konrad Borowski
18c7e97ecc
Add pkgng command completions
...
Fixes #1054 .
2015-09-16 13:57:36 +02:00
Fabian Homborg
c8ac48ff9a
Informative git prompt: Handle root/toor users
...
Fixes #961
This should probably be in a helper function
2015-09-15 21:14:49 +02:00
Fabian Homborg
7fe8a63f53
Webconfig: It's abbr --erase, not abbr --remove
...
This was renamed in c0cf25cf0b
but never
in webconfig.
2015-09-13 22:35:32 +02:00
Fabian Homborg
48874294d6
Webconfig: abbr doesn't support "--"
...
Fixes #2276
2015-09-13 22:35:32 +02:00
Stefan Maric
527c932e93
Fix npm run completion executing only on completions load, also:
...
* Better handling of `npm run` output
2015-09-12 12:12:21 +02:00
Stefan Maric
cba3db6205
Remove redundant completions that lack descriptions for npm
2015-09-12 12:12:21 +02:00
Stefan Maric
3b798b1733
Make use of npm completion
2015-09-12 12:12:21 +02:00
Stefan Maric
f898d82536
Add script values as descriptions to npm run/run-script completion
2015-09-12 12:12:21 +02:00
Stefan Maric
3b5aab6edb
Complete list of available scripts for npm run/run-script command
2015-09-12 12:12:21 +02:00
Fabian Homborg
31d1e04301
git completion: Don't check $cmd[1]
...
Before we do anything else, remove this senseless piece of code
2015-09-10 16:17:14 +02:00
Fabian Homborg
a828f90d38
git: Add more options for format-patch and submodule
...
Not all of them and only those that don't accept arguments for now
Fixes #1996
2015-09-10 15:22:16 +02:00
Fabian Homborg
00556734bc
git completion: Ignore stderr for all commands
...
Might print unrelated crap if we try to complete while not in a git repository
2015-09-10 15:22:16 +02:00
Fabian Homborg
b231ab7238
Allow set_color options in general for linux VTs
2015-09-10 15:12:02 +02:00
Fabian Homborg
2587bbc4a7
rbenv completion: Remove trailing spaces
2015-09-10 15:10:25 +02:00
Fabian Homborg
40df11b162
Also allow bold, underline and printing colors in linux kernel VTs
...
bold works, printing colors doesn't change anything and underline
doesn't _break_.
2015-09-10 12:27:09 +02:00
Fabian Homborg
e9fcbb334e
rbenv completion: Support ruby-build as plugin
...
Fixes #1028
2015-09-10 02:04:40 +02:00
Fabian Homborg
bffeb664cc
Add __fish_sgrep
...
Missed in b85a8bb
because of `git commit -a`.
Fixes #2372
2015-09-09 21:52:18 +02:00
Fabian Homborg
b85a8bbbfe
Rename sgrep to __fish_sgrep
...
Makes it harder to cause issues with aliases, see fish-shell#2245
2015-09-09 20:55:04 +02:00
Fabian Homborg
925f451773
Add descriptions to dd completions
...
Fixes #752 .
2015-09-09 19:40:58 +02:00
Jan Ernsting
7f28acc5ed
Complete tags for git-tag only
2015-09-07 13:35:50 +02:00
Jan Ernsting
f36d2ff55f
Ensure display of modified files for git commit
2015-09-07 13:35:34 +02:00
Jan Ernsting
396e01a0e0
Add missing description
...
git reset allows for files and branches as completion results
2015-09-07 11:05:47 +02:00
Jan Ernsting
787c1304c6
Add file completion for git-reset
...
Staged files are now offered for completion
2015-09-07 11:05:47 +02:00
Jan Ernsting
d92c08c9bb
Add completion for git-commit
...
Modified files are provided for completion
2015-09-07 11:05:47 +02:00
Fabian Homborg
cb5511c8db
Vcs prompt: Break if vcs isn't installed
...
Prevents an annoying error message.
Fixes #2363 .
2015-09-06 14:58:09 +02:00