Fabian Homborg
b9dd057a04
Make enable/disable completions work again
...
Was single-quoted, should have been double-quoted
2015-03-06 23:05:24 -08:00
Fabian Homborg
369a09e57e
Simplify code by removing duplicated descriptions
...
For-loops ftw!
2015-03-06 23:05:24 -08:00
Fabian Homborg
468648ff51
systemctl completions: Improve option handling
2015-03-06 23:05:24 -08:00
Fabian Homborg
8c41a053fe
systemctl completions: Show options for --property=
...
Inspired by the official bash completion, this uses systemd --dump-configuration-items.
2015-03-06 23:05:24 -08:00
Fabian Homborg
a1b3358cb8
systemctl completions: Remove duplicated commands
2015-03-06 23:05:24 -08:00
Fabian Homborg
16e65c849c
systemctl completions: Only list matching units on enable/disable
2015-03-06 23:05:24 -08:00
Fabian Homborg
33c0d93b20
systemctl completions: Add more unit types and commands
...
It should now support all unit types mentioned in systemd.unit(5)
2015-03-06 23:05:24 -08:00
Fabian Homborg
3d163eb910
systemctl completions: Simplify code by using __fish_seen_subcommand_from
2015-03-06 23:05:24 -08:00
Fabian Homborg
3e32715693
systemctl completions: Support user-mode
2015-03-06 23:05:24 -08:00
Fabian Homborg
388a8d09d8
systemctl completions: Support command-after-options
...
This fixes completions for e.g. `systemctl --quiet status`
2015-03-06 23:05:24 -08:00
ridiculousfish
b4aa2b7c2c
Allow fish to properly exit from job_continue when receiving a signal
...
e340baf6cc
introduced a bug where fish would not exit from job_continue
when receiving a signal like SIGHUP. This means that it would not in turn
deliver SIGHUP to its children, who would therefore never exit. Those
children may attempt to write to stdout, in which case they would receive
EIO; this can cause other weird issues, like telnet using 100% CPU.
Fixes #1958
2015-02-27 09:56:19 -08:00
Trenton Broughton
dd595dd110
Added some common completions
...
* Added completion for `git branch --merged`
* Added completion for `git branch --no-merged`
2015-02-19 11:10:04 -05:00
ridiculousfish
95687a03fb
Bump OS X version from 2.1.1 to 2.1.2
2015-02-16 11:07:12 -08:00
ridiculousfish
b3aa187867
Use a symlink instead of a hard link for fishd.socket compatibility path
...
On OS X, work around filesystem corruption triggered by having hard
links in /tmp, by using a symlink instead.
2015-02-09 15:37:51 -08:00
Konrad Borowski
b5d9e366ad
Mention that for
variables are local.
...
This is the current behaviour, documentation can be updated if this
behaviour changes, assuming it can, because it's an incompatible
change.
2015-02-06 07:48:47 +01:00
ridiculousfish
d7ba6e4a1d
Properly fire events for universal variable changes
...
Fixes #1929
2015-02-03 16:13:02 -08:00
David Adam
981a71555f
reader.cpp: don't set title in dumb terminals
...
Closes #1907 .
2015-02-02 15:41:29 +08:00
David Adam
597dda5a4b
isatty: use command test instead of redirections
...
Adds a fork but can't use builtin test yet.
Closes #1870 .
2015-02-01 18:18:34 +08:00
David Adam
66acd17bc0
isatty: revert to previous behaviour
...
This partially reverts commit 60808a4820
.
2015-02-01 18:18:34 +08:00
T. Jameson Little
793784c087
Add command-not-found handler for Arch Linux
...
- checks for `pkgfile`, which is an optional (but official)
package used for searching for packages given a file
2015-01-30 22:01:40 -07:00
LoveIsGrief
df6f1e8f62
Add hg branch and status to terlar's prompt
2015-01-30 23:07:40 +08:00
LoveIsGrief
facfe33218
Add function to ouput hg branch and status for a prompt
...
This is an adaptation of terlar's git prompt output
2015-01-30 23:07:40 +08:00
David Adam
78dfc57b1e
web_config: set new prompts via JSON instead of URI-encoded
...
Fixes problems with encoding and decoding Unicode from URL-encoded strings,
which was impossible to get right in Python 2.
2015-01-30 22:54:13 +08:00
David Adam
d17ba69f9e
web_config: respect the client's character set for JSON
2015-01-30 22:52:41 +08:00
David Adam
5c16b5598b
web_config: fix python2/3 unification for parse_qs
2015-01-30 22:52:07 +08:00
David Adam
028d9e8e3b
default key bindings: ignore FocusIn/FocusOut control sequences
...
Closes #1917 .
2015-01-30 16:01:25 +08:00
David Adam
53a4814d8b
web_config: respect linebreaks in prompt demos
2015-01-29 21:41:31 +08:00
David Adam
1ff9aba6b1
rsync completions: rework transformation of file list
...
Accounts for filenames that contain spaces.
Closes #1872 .
2015-01-23 12:27:23 +08:00
Bruno Pinto
39748870b6
math requires bc package
2015-01-22 14:47:28 +08:00
ridiculousfish
b0cbad84f4
Stop leaking the result of wrealpath
2015-01-20 01:04:07 -08:00
Jelte Fennema
f920be5ea3
Make emerge completion more powerful
2015-01-19 17:39:37 +08:00
Jelte Fennema
f9384fe323
Make commands more readable
2015-01-19 17:39:25 +08:00
Bruno Pinto
789a54222d
adding a dockerfile building fish on a centos machine
2015-01-19 02:13:36 -02:00
ridiculousfish
68efa5233c
Fix and add tests for format_long_safe with negative numbers
2015-01-18 16:03:21 -08:00
Max Gonzih
dce487380c
Fix not found handler for fedora
2015-01-18 11:52:15 +01:00
ridiculousfish
75a76c596c
Clean up recent fix for #1892
...
Restore 906d235
and simplify how __fish_restore_status works
2015-01-17 15:36:30 -08:00
ridiculousfish
7164769d33
Introduce tests for #1892
2015-01-17 15:22:37 -08:00
Jelte Fennema
9e3f912747
Ignore error message when not on a Gentoo system
2015-01-17 11:51:36 +01:00
Konrad Borowski
e529b78365
Don't define unnamespaced internal function.
2015-01-17 11:50:23 +01:00
Daniel K
9374494d2b
Fix job_or_process_extent with command substitution
2015-01-17 11:47:42 +01:00
Jorge Bucaran
2018b9b217
Fix: eval should preserve previous $status if the evaluated block does not change it
...
Empty functions may return 1 when eval is used due to the $status not being correctly preserved inside the function definition.
2015-01-17 11:44:55 +01:00
Peter Dave Hello
3c0902b7e4
Use svg instead of png to get better image quality
2015-01-17 11:42:54 +01:00
Ben Hamilton
b31305b9bd
Unexport CMD_DURATION
...
Valid uses of this environment variable don't really include passing
it to subsequent child processes.
I confirmed the fix with:
function fish_prompt
echo "cmd duration [$CMD_DURATION] "
end
cmd duration [0] sleep 2
cmd duration [2002]
2015-01-16 11:57:26 -08:00
ridiculousfish
d4eded2376
Make octal/hex escapes in printf and echo output literal bytes
...
Fixes #1894
2015-01-15 11:21:07 -08:00
ridiculousfish
20974edc14
Use iothread_perform variant that doesn't take a completion callback
...
Removes some ugly NULL casts
2015-01-14 10:05:07 -08:00
Kevin Ballard
6e2132e01f
Reap jobs before calling select() in job_continue()
...
Prior to b0e09303a
, simple jobs like `printf "%s\n" $line | read word _`
never hit the call to select() because they were reaped in the SIGCHLD
signal handler. With that commit, the signal handler no longer reaps
children, and a job like that would enter select() and hit the 10000μs
timeout before discovering that the job was already complete.
Fixes #1884 .
2015-01-12 22:26:07 -08:00
ridiculousfish
34db67680d
Ignore user-supplied fd redirections above 2 for builtins
...
Prevents e.g. specifying an fd which corresponds to the history file
as the stdin for builtin_source
2015-01-08 10:44:05 -08:00
ridiculousfish
7864d0d416
Rework file descriptor handling
...
Remove global array of file descriptors, in
favor of relying on CLO_EXEC exclusively.
Also correctly implement "pipe avoidance" so
that fd redirections do not conflict
with pipes.
2015-01-07 18:07:06 -08:00
ridiculousfish
d1feb9bcbf
Use scoped_push to save and restore real_io
...
Fixes a dangling pointer
2015-01-07 16:41:16 -08:00
ridiculousfish
906d235601
Add more expository comments to eval, and remove a useless parameter
2015-01-07 14:56:41 -08:00