             ;[clojure.java.shell :refer [sh]]
             )
   (:import [jline TerminalFactory TerminalFactory$Flavor]
-           [jline.console ConsoleReader])
+           [jline.console ConsoleReader]
+           [java.lang ProcessBuilder$Redirect])
   (:gen-class :main true))
 
 (defonce ^:private FS_ROOT (atom nil))
 (defonce ^:private CURRENT_DIR (atom []))
 (defonce ^:private FS_FILENAME (atom nil))
+(defonce ^:private CONSOLE (atom nil))
+(defonce ^:private TERMINAL (atom nil))
 
 (defn write-fs! 
   "Write current filesystem to filename as EDN."

    (in-ns 'mapfs.core)
    (loop []
      (println)
      (let [v (.readLine console "mapfs> ")]
        (when-not (= "exit" v)
          (try 
            (println (eval (read-string (str "(" v ")")))) 

  [src dest]
  (rename src dest))


;; SHELL COMMANDS

