summaryrefslogtreecommitdiff
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.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/emacs/custom/fcuny-eshell.el b/emacs/custom/fcuny-eshell.el
index 2f53988..fce4ccb 100644
--- a/emacs/custom/fcuny-eshell.el
+++ b/emacs/custom/fcuny-eshell.el
@@ -114,13 +114,12 @@ multiple eshell windows easier."
(let* ((parent (if (buffer-file-name)
(file-name-directory (buffer-file-name))
default-directory))
- (height (/ (window-total-height) 3))
(name (car (last (split-string parent "/" t)))))
- (split-window-vertically (- height))
+ (split-window-horizontally)
(other-window 1)
(eshell "new")
(rename-buffer (concat "*eshell: " name "*"))
- (insert (concat "ls"))
+ (insert (concat "ls " "-lh"))
(eshell-send-input)))
(defun fcuny/eshell-main ()