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 1b6e5c9d48055ab96a20775a6bf8b682b5eda766..377f7d6ed2a1968112f92000967b21d9b78255d8 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: