Unverified Commit 33aadece authored by Richard Mitchell's avatar Richard Mitchell Committed by GitHub

feat(term_tab): add support for macOS (#11391)

parent 8d23fbd6
...@@ -28,6 +28,7 @@ function _term_list(){ ...@@ -28,6 +28,7 @@ function _term_list(){
case $OSTYPE in case $OSTYPE in
solaris*) dirs=( ${(M)${${(f)"$(pgrep -U $UID -x zsh|xargs pwdx)"}:#$$:*}%%/*} ) ;; solaris*) dirs=( ${(M)${${(f)"$(pgrep -U $UID -x zsh|xargs pwdx)"}:#$$:*}%%/*} ) ;;
linux*) dirs=( /proc/${^$(pidof zsh):#$$}/cwd(N:A) ) ;; linux*) dirs=( /proc/${^$(pidof zsh):#$$}/cwd(N:A) ) ;;
darwin*) dirs=( $( lsof -d cwd -c zsh -a -w -Fn | sed -n 's/^n//p' ) ) ;;
esac esac
dirs=( ${(D)dirs} ) dirs=( ${(D)dirs} )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment