about summary refs log tree commit diff
path: root/contrib/_mblaze
diff options
context:
space:
mode:
authorJames Rowe <jnrowe@gmail.com>2020-10-10 14:19:12 +0100
committerLeah Neukirchen <leah@vuxu.org>2020-10-10 20:48:06 +0200
commit5d8f070e260b061a1d3c219200276d20045c4bdc (patch)
tree2eb2b170cf015f2d8bd8fedc45f4c7e09a75efc4 /contrib/_mblaze
parent4d566a6afe30a7b518aa924d763962477bf5cbfe (diff)
downloadmblaze-5d8f070e260b061a1d3c219200276d20045c4bdc.tar.gz
mblaze-5d8f070e260b061a1d3c219200276d20045c4bdc.tar.xz
mblaze-5d8f070e260b061a1d3c219200276d20045c4bdc.zip
contrib/_mblaze: silence mseq errors
On the first run or if you manually delete your sequence file, mseq
errors will break your prompt when you hit tab.

Closes: #188 [via git-merge-pr]
Diffstat (limited to 'contrib/_mblaze')
-rw-r--r--contrib/_mblaze2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/_mblaze b/contrib/_mblaze
index f58cb65..5255629 100644
--- a/contrib/_mblaze
+++ b/contrib/_mblaze
@@ -14,7 +14,7 @@ _mblaze_message() {
     _files "$expl[@]" && ret=0
   fi
 
-  curmsg=$(mseq .)
+  curmsg=$(mseq . 2>/dev/null)
   if [[ -z $curmsg || ! -f $curmsg ]]; then
     _message 'no current sequence'
     return $ret