emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/crux bb5a133 090/112: Simplify a bit of code


From: ELPA Syncer
Subject: [nongnu] elpa/crux bb5a133 090/112: Simplify a bit of code
Date: Wed, 11 Aug 2021 09:58:00 -0400 (EDT)

branch: elpa/crux
commit bb5a133d2a5db7181524fe679e3f99f44a98426b
Author: Bozhidar Batsov <bozhidar@batsov.com>
Commit: Bozhidar Batsov <bozhidar@batsov.com>

    Simplify a bit of code
---
 crux.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/crux.el b/crux.el
index fdf6bef..1580be5 100644
--- a/crux.el
+++ b/crux.el
@@ -675,7 +675,7 @@ Doesn't mess with special buffers."
 (defun crux-find-shell-init-file ()
   "Edit the shell init file in another window."
   (interactive)
-  (let* ((shell (car (reverse (split-string (getenv "SHELL") "/" t))))
+  (let* ((shell (file-name-nondirectory (getenv "SHELL")))
          (shell-init-file (cond
                            ((string= "zsh" shell) crux-shell-zsh-init-files)
                            ((string= "bash" shell) crux-shell-bash-init-files)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]