summary refs log tree commit diff
path: root/emacs/custom/fcuny-eshell.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/custom/fcuny-eshell.el')
-rw-r--r--emacs/custom/fcuny-eshell.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs/custom/fcuny-eshell.el b/emacs/custom/fcuny-eshell.el
index c013248..100dfd3 100644
--- a/emacs/custom/fcuny-eshell.el
+++ b/emacs/custom/fcuny-eshell.el
@@ -103,6 +103,12 @@ multiple eshell windows easier."
     (insert (concat "ls"))
     (eshell-send-input)))
 
+(defun fcuny/eshell-main ()
+  (eshell "new")
+  (rename-buffer "*eshell: main session*")
+  (insert "ls -l")
+  (eshell-send-input))
+
 (defvar-local fcuny/eshell-output-buffer "*Exported eshell output*"
   "Name of buffer with the last output of Eshell command.")