
- #Opensuse warning grep options is deprecated full#
- #Opensuse warning grep options is deprecated mac#
$fish_user_paths is now automatically deduplicated to fix a common user error of appending to it in config.fish when it is universal ( #8117). > string match -r -groups-only '(.*)fish' 'catfish' 'twofish' 'blue fish' | string escape cat two 'blue ' This allows string match to do simple transformations ( #6056):
#Opensuse warning grep options is deprecated full#
String match gained a -groups-only option, which makes it only output capturing groups, excluding the full match. Note this can also be written as test -n "$(echo -n)" (see above). This allows commands like test -n (echo -n | string collect -allow-empty) to work more reliably. String collect supports a new -allow-empty option, which will output one empty argument in a command substitution that has no output ( #8054).
#Opensuse warning grep options is deprecated mac#
The minimum Mac version is now 10.10 “Yosemite.” The special input functions delete-or-exit, nextd-or-forward-word and prevd-or-backward-word replace fish functions of the same names ( #8538). To restore the previous behavior, use if not set -q foo or set -q $foo - but this is unlikely to be desireable ( #8214). This means if set -q $foo will not enter the if-block if $foo is empty or unset. Set -query now returns an exit status of 255 if given no variable names.

This applies only to $status, other variables are still allowed. $status is now forbidden as a command, to prevent a surprisingly common error among new users: Running if $status ( #8171). > set -Ua fish_features ampersand-nobg-in-token

In combination with qmark-noglob, this allows entering most URLs at the command line without quoting or escaping ( #7991).

This avoids a potential security issue in some circumstances, and has been assigned CVE-2022-20001 ( #8589).Ī new feature flag, ampersand-nobg-in-token makes & only act as background operator if followed by a separator. The fish_git_prompt function, which is included in the default prompts, now overrides git to avoid running commands set by per-repository configuration. The exception is necessary colors, like those which distinguish autosuggestions from the actual command line. In some cases (large directories with files with many numbers in the names) this almost halves the time taken to expand the glob.Īutosuggestions can now be turned off by setting $fish_autosuggestion_enabled to 0, and (almost) all highlighting can be turned off by choosing the new “None” theme. Performance improvements to globbing, especially on systems using glibc. string length -visible ( set_color red ) foo 3
