From f134db161d8653726a5d2af4f67a878f33bc8dfe Mon Sep 17 00:00:00 2001 From: Andreas Gerler Date: Fri, 4 Oct 2019 15:33:00 +0200 Subject: [PATCH] add bba-open-file-system --- bba.org | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/bba.org b/bba.org index 6c4019d9..6c78d7db 100644 --- a/bba.org +++ b/bba.org @@ -1265,6 +1265,20 @@ Sometimes you need a file finder in the current buffers directory. #+END_SRC +** open current file via osx open +[2017-06-07 Wed 13:50] + +#+BEGIN_SRC emacs-lisp :tangle yes + (defun bba-open-file-system () + "Open the current file via osx open." + (interactive) + (if (string-equal system-type "darwin") + (shell-command (concat "open " (buffer-file-name))) + ) + ) + +#+END_SRC + ** open current directory in iterm screen [2017-02-14 Tue 12:24] -- 2.47.3