aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2021-02-22 15:51:07 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2021-02-22 15:51:07 +0100
commit42a084b287bd1184cdd9815409efc363b1286fbf (patch)
tree984ee41714396dd8711cc7c9c9a87f7b3ae92c70
parent33b4539bba58d347a4182c9a0ccccff6b236a729 (diff)
downloaddotfiles-42a084b287bd1184cdd9815409efc363b1286fbf.tar.gz
dotfiles-42a084b287bd1184cdd9815409efc363b1286fbf.zip
irb: don't whine on missing wirble gem
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
-rw-r--r--.irbrc12
1 files changed, 9 insertions, 3 deletions
diff --git a/.irbrc b/.irbrc
index 2fb6a18..dc24a42 100644
--- a/.irbrc
+++ b/.irbrc
@@ -19,11 +19,17 @@ require 'irb/completion'
require 'irb/ext/save-history'
require 'rubygems'
require 'pp'
-require 'wirble'
# Colorize!
-Wirble.init
-Wirble.colorize
+# rubocop:disable Lint/SuppressedException
+begin
+ require 'wirble'
+
+ Wirble.init
+ Wirble.colorize
+rescue LoadError
+end
+# rubocop:enable Lint/SuppressedException
# Simple prompt
IRB.conf[:PROMPT_MODE] = :SIMPLE