Update PREFIX after config change
authorLukas Pohlreich <pohlreichlukas@gmail.com>
Fri, 24 Oct 2014 14:59:45 +0000 (16:59 +0200)
committerLukas Pohlreich <pohlreichlukas@gmail.com>
Fri, 24 Oct 2014 14:59:45 +0000 (16:59 +0200)
rainbowstream/rainbow.py

index 1b6e5c9..377f7d6 100644 (file)
@@ -1409,7 +1409,7 @@ def config():
                 g['decorated_name'] = lambda x: color_func(
                     c['DECORATED_NAME'])('[' + x + ']: ')
             elif key == 'PREFIX':
-                g['PREFIX'] = u2str(emojize(c['PREFIX']))
+                g['PREFIX'] = u2str(emojize(format_prefix()))
             reload_config()
             printNicely(green('Updated successfully.'))
         except: