From 21d8b465cced887bfea086bf066383a9f04f0ee6 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 28 Mar 2019 11:55:27 +0100 Subject: [PATCH] nextd/prevd: Print BEL instead of "Hit end of history" That message is just hugely annoying. Hat-tip to @floam and d524bad5f16b5a18c22fefe440. --- CHANGELOG.md | 1 + share/functions/__fish_move_last.fish | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b2d167ff4..508e1bdc4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -39,6 +39,7 @@ - `bosh` - `vagrant` - The git prompt in informative mode now shows the number of stashes if enabled. +- The nextd and prevd functions no longer print "Hit end of history", instead using a BEL. ### For distributors and developers - The autotools-based build system and legacy Xcode build systems have been removed, leaving only the CMake build system. All distributors and developers must migrate to the CMake build. diff --git a/share/functions/__fish_move_last.fish b/share/functions/__fish_move_last.fish index b9c57d805..751b3d2a0 100644 --- a/share/functions/__fish_move_last.fish +++ b/share/functions/__fish_move_last.fish @@ -6,7 +6,8 @@ function __fish_move_last -d "Move the last element of a directory history from if test $size_src = 0 # Cannot make this step - printf (_ "Hit end of history…\n") + # Print a bel, which is the character to print for notifications like these. + printf \a return 1 end