mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-22 09:28:31 +08:00
Add newline to history clear message for consistency
This commit is contained in:
parent
c2942a70d6
commit
b665604475
|
@ -26,6 +26,7 @@
|
|||
- The default and example prompts print the correct exit status for commands prefixed with `not` (#6566).
|
||||
|
||||
#### Improved terminal output
|
||||
- After clearing command history, success message ends in newline.
|
||||
|
||||
#### Completions
|
||||
- Added completions for
|
||||
|
|
2
po/de.po
2
po/de.po
|
@ -3593,7 +3593,7 @@ msgid ""
|
|||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||
msgid "Command history cleared!"
|
||||
msgid "Command history cleared!\\n"
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
||||
|
|
2
po/en.po
2
po/en.po
|
@ -3584,7 +3584,7 @@ msgid ""
|
|||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||
msgid "Command history cleared!"
|
||||
msgid "Command history cleared!\\n"
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
||||
|
|
4
po/fr.po
4
po/fr.po
|
@ -3802,8 +3802,8 @@ msgstr ""
|
|||
"interactive sera effacé\\n"
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||
msgid "Command history cleared!"
|
||||
msgstr "Historique de commande effacé !"
|
||||
msgid "Command history cleared!\\n"
|
||||
msgstr "Historique de commande effacé !\\n"
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
||||
msgid "You did not say 'yes' so I will not clear your command history\\n"
|
||||
|
|
2
po/nb.po
2
po/nb.po
|
@ -3559,7 +3559,7 @@ msgid ""
|
|||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||
msgid "Command history cleared!"
|
||||
msgid "Command history cleared!\\n"
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
||||
|
|
2
po/nn.po
2
po/nn.po
|
@ -3559,7 +3559,7 @@ msgid ""
|
|||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||
msgid "Command history cleared!"
|
||||
msgid "Command history cleared!\\n"
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
||||
|
|
2
po/pl.po
2
po/pl.po
|
@ -3582,7 +3582,7 @@ msgid ""
|
|||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||
msgid "Command history cleared!"
|
||||
msgid "Command history cleared!\\n"
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
||||
|
|
|
@ -3588,7 +3588,7 @@ msgid ""
|
|||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||
msgid "Command history cleared!"
|
||||
msgid "Command history cleared!\\n"
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
||||
|
|
2
po/sv.po
2
po/sv.po
|
@ -3537,7 +3537,7 @@ msgid ""
|
|||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||
msgid "Command history cleared!"
|
||||
msgid "Command history cleared!\\n"
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
||||
|
|
|
@ -3558,7 +3558,7 @@ msgid ""
|
|||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||
msgid "Command history cleared!"
|
||||
msgid "Command history cleared!\\n"
|
||||
msgstr ""
|
||||
|
||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
||||
|
|
|
@ -183,7 +183,7 @@ function history --description "display or manipulate interactive command histor
|
|||
read --local --prompt "echo 'Are you sure you want to clear history? (yes/no) '" choice
|
||||
if test "$choice" = yes
|
||||
builtin history clear -- $argv
|
||||
and printf (_ "Command history cleared!")
|
||||
and printf (_ "Command history cleared!\n")
|
||||
else
|
||||
printf (_ "You did not say 'yes' so I will not clear your command history\n")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user