|
|
|
@ -538,5 +538,15 @@ This follows freedesktop standards, should work in X servers." |
|
|
|
(interactive) |
|
|
|
(find-file-other-window user-init-file)) |
|
|
|
|
|
|
|
(defun prelude-find-shell-init-file () |
|
|
|
"Edit the shell init file in another window." |
|
|
|
(interactive) |
|
|
|
(let* ((shell (car (reverse (s-split "/" (getenv "SHELL"))))) |
|
|
|
(shell-init-file (cond |
|
|
|
((s-equals? "zsh" shell) ".zshrc") |
|
|
|
((s-equals? "bash" shell) ".bashrc") |
|
|
|
(t (error "Unknown shell"))))) |
|
|
|
(find-file-other-window (expand-file-name shell-init-file (getenv "HOME"))))) |
|
|
|
|
|
|
|
(provide 'prelude-core) |
|
|
|
;;; prelude-core.el ends here |