mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Add newline to history clear message for consistency
This commit is contained in:
parent
c2942a70d6
commit
b665604475
11 changed files with 12 additions and 11 deletions
|
@ -26,6 +26,7 @@
|
||||||
- The default and example prompts print the correct exit status for commands prefixed with `not` (#6566).
|
- The default and example prompts print the correct exit status for commands prefixed with `not` (#6566).
|
||||||
|
|
||||||
#### Improved terminal output
|
#### Improved terminal output
|
||||||
|
- After clearing command history, success message ends in newline.
|
||||||
|
|
||||||
#### Completions
|
#### Completions
|
||||||
- Added completions for
|
- Added completions for
|
||||||
|
|
2
po/de.po
2
po/de.po
|
@ -3593,7 +3593,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||||
msgid "Command history cleared!"
|
msgid "Command history cleared!\\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
#: /tmp/fish/explicit/share/functions/history.fish:6
|
||||||
|
|
2
po/en.po
2
po/en.po
|
@ -3584,7 +3584,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||||
msgid "Command history cleared!"
|
msgid "Command history cleared!\\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
#: /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"
|
"interactive sera effacé\\n"
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||||
msgid "Command history cleared!"
|
msgid "Command history cleared!\\n"
|
||||||
msgstr "Historique de commande effacé !"
|
msgstr "Historique de commande effacé !\\n"
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
#: /tmp/fish/explicit/share/functions/history.fish:6
|
||||||
msgid "You did not say 'yes' so I will not clear your command history\\n"
|
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 ""
|
msgstr ""
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||||
msgid "Command history cleared!"
|
msgid "Command history cleared!\\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
#: /tmp/fish/explicit/share/functions/history.fish:6
|
||||||
|
|
2
po/nn.po
2
po/nn.po
|
@ -3559,7 +3559,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||||
msgid "Command history cleared!"
|
msgid "Command history cleared!\\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
#: /tmp/fish/explicit/share/functions/history.fish:6
|
||||||
|
|
2
po/pl.po
2
po/pl.po
|
@ -3582,7 +3582,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||||
msgid "Command history cleared!"
|
msgid "Command history cleared!\\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
#: /tmp/fish/explicit/share/functions/history.fish:6
|
||||||
|
|
|
@ -3588,7 +3588,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||||
msgid "Command history cleared!"
|
msgid "Command history cleared!\\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
#: /tmp/fish/explicit/share/functions/history.fish:6
|
||||||
|
|
2
po/sv.po
2
po/sv.po
|
@ -3537,7 +3537,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||||
msgid "Command history cleared!"
|
msgid "Command history cleared!\\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
#: /tmp/fish/explicit/share/functions/history.fish:6
|
||||||
|
|
|
@ -3558,7 +3558,7 @@ msgid ""
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:5
|
#: /tmp/fish/explicit/share/functions/history.fish:5
|
||||||
msgid "Command history cleared!"
|
msgid "Command history cleared!\\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /tmp/fish/explicit/share/functions/history.fish:6
|
#: /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
|
read --local --prompt "echo 'Are you sure you want to clear history? (yes/no) '" choice
|
||||||
if test "$choice" = yes
|
if test "$choice" = yes
|
||||||
builtin history clear -- $argv
|
builtin history clear -- $argv
|
||||||
and printf (_ "Command history cleared!")
|
and printf (_ "Command history cleared!\n")
|
||||||
else
|
else
|
||||||
printf (_ "You did not say 'yes' so I will not clear your command history\n")
|
printf (_ "You did not say 'yes' so I will not clear your command history\n")
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue