A while ago I showed you a way to instantly edit your Emacs init file. Today
we’ll adapt the original idea for shell init files like
.zshrc. The code required is fairly short and simple:
1 2 3 4 5 6 7 8 9
The shell init file is deduced from your
SHELL env variable. While there are different shell init files for most shell (e.g.
.zprofile), here we’re assuming you’re using the most commonly used files.
open the file in a window adjacent to the one you’re currently in.
find-shell-init-file is available in
Prelude(but with a