Writing (in-ns \'dbx) to a file and loading it isn\'t changing the default namespace of the repl (using cygwin/console). The namespace is still user=><
(in-ns \'dbx)
user=><
(ns dbx) (clojure.main/repl) (in-ns 'dbx) (clojure.core/use 'clojure.core)