summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorRichard Mitchell <rwmitchell@gmail.com>2023-04-04 17:52:16 -0400
committerGitHub <noreply@github.com>2023-04-04 23:52:16 +0200
commit33aadeced0bf17b8abc7d680b424de7c5e71dd45 (patch)
tree50d1171cbe48fdd268e775c63e49dc48647c2642 /plugins
parent8d23fbd6964b8446bbc73ff04507362d1fd49eb5 (diff)
downloadzsh-33aadeced0bf17b8abc7d680b424de7c5e71dd45.tar.gz
zsh-33aadeced0bf17b8abc7d680b424de7c5e71dd45.tar.bz2
zsh-33aadeced0bf17b8abc7d680b424de7c5e71dd45.zip
feat(term_tab): add support for macOS (#11391)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/term_tab/term_tab.plugin.zsh1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/term_tab/term_tab.plugin.zsh b/plugins/term_tab/term_tab.plugin.zsh
index 1b612df68..89acd9103 100644
--- a/plugins/term_tab/term_tab.plugin.zsh
+++ b/plugins/term_tab/term_tab.plugin.zsh
@@ -28,6 +28,7 @@ function _term_list(){
case $OSTYPE in
solaris*) dirs=( ${(M)${${(f)"$(pgrep -U $UID -x zsh|xargs pwdx)"}:#$$:*}%%/*} ) ;;
linux*) dirs=( /proc/${^$(pidof zsh):#$$}/cwd(N:A) ) ;;
+ darwin*) dirs=( $( lsof -d cwd -c zsh -a -w -Fn | sed -n 's/^n//p' ) ) ;;
esac
dirs=( ${(D)dirs} )