diff --git a/cmdDev.go b/cmdDev.go
new file mode 100644
index 0000000..e51d22c
--- /dev/null
+++ b/cmdDev.go
@@ -0,0 +1,25 @@
+// +build !rm_basic_commands allcommands devcmd
+
+package main
+
+import (
+	"fmt"
+)
+
+func init() {
+	command := Command{
+		Cmd:         []string{"dev"},
+		Description: "- Switch to dev channels",
+		Help:        "",
+		Exec:        cmdDev,
+	}
+
+	RegisterCommand(command)
+}
+
+func cmdDev(cmd []string) {
+	dev = !dev
+
+	printInfo(fmt.Sprintf("You have toggled the dev flag to %+v", dev))
+	clearView("Chat")
+}
diff --git a/main.go b/main.go
index b09f149..01e8a77 100644
--- a/main.go
+++ b/main.go
@@ -42,7 +42,11 @@ func main() {
 	defer g.Close()
 	g.SetManagerFunc(layout)
 	RunCommand("config", "load")
-	if dev { channel.TopicType = "dev" } else { channel.TopicType = "chat" }
+	if dev {
+		channel.TopicType = "dev"
+	} else {
+		channel.TopicType = "chat"
+	}
 	go populateList()
 	go updateChatWindow()
 	if len(os.Args) > 1 {
@@ -382,7 +386,11 @@ func populateChat() {
 			if channel.Name == testChan.Name {
 				channel = testChan
 				channel.TopicName = "general"
-				if dev { channel.TopicType = "dev" } else { channel.TopicType = "chat" }
+				if dev {
+					channel.TopicType = "dev"
+				} else {
+					channel.TopicType = "chat"
+				}
 			}
 		}
 		chat = k.NewChat(channel)