It's possible to start emacs with an eshell buffer focused using the -f flag as described in this question.
> emacs -nw -f "eshell"
I'm wondering if there's a way of launching eshell and focusing its buffer using just the .emacs file.
Using the following files, I've been able to start eshell automatically, but not to shift focus to its corresponding buffer, named *eshell* by default.
; .emacs.d/init.el
(eshell)
and
; .emacs.d/init.el
(eshell)
(switch-to-buffer "*eshell*)
Is there a way to switch focus to the eshell buffer from the .emacs file without using a command line argument?