mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-28 12:13:55 +08:00
parent
ac428b23e5
commit
1877253f47
|
@ -109,6 +109,7 @@ Interactive improvements
|
||||||
- The command line is drawn in the correct place if the prompt has a trailing empty line (:issue:`8298`).
|
- The command line is drawn in the correct place if the prompt has a trailing empty line (:issue:`8298`).
|
||||||
- ``history`` learned a new subcommand ``clear-session`` to erase all history from the current session (:issue:`5791`).
|
- ``history`` learned a new subcommand ``clear-session`` to erase all history from the current session (:issue:`5791`).
|
||||||
- Pressing :kbd:`Control-C` in ``fish_key_reader`` will no longer print the incorrect "Press [ctrl-C] again to exit" message (:issue:`8510`).
|
- Pressing :kbd:`Control-C` in ``fish_key_reader`` will no longer print the incorrect "Press [ctrl-C] again to exit" message (:issue:`8510`).
|
||||||
|
- The default command-not-found handler for Fedora/PackageKit now passes the whole command line, allowing for functionality such as running the suggested command directly (:issue:`8579`).
|
||||||
|
|
||||||
New or improved bindings
|
New or improved bindings
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
|
@ -32,7 +32,7 @@ else if contains -- suse $os || contains -- sles $os && type -q command-not-foun
|
||||||
# Check for Fedora's handler
|
# Check for Fedora's handler
|
||||||
else if test -f /usr/libexec/pk-command-not-found
|
else if test -f /usr/libexec/pk-command-not-found
|
||||||
function fish_command_not_found
|
function fish_command_not_found
|
||||||
/usr/libexec/pk-command-not-found $argv[1]
|
/usr/libexec/pk-command-not-found $argv
|
||||||
end
|
end
|
||||||
# Check in /usr/lib, where Ubuntu places this command
|
# Check in /usr/lib, where Ubuntu places this command
|
||||||
else if test -f /usr/lib/command-not-found
|
else if test -f /usr/lib/command-not-found
|
||||||
|
|
Loading…
Reference in New Issue
Block a user