mirror of
				https://github.com/ohmyzsh/ohmyzsh.git
				synced 2025-11-04 13:21:19 +08:00 
			
		
		
		
	feat(term_tab): add support for macOS (#11391)
This commit is contained in:
		
							parent
							
								
									8d23fbd696
								
							
						
					
					
						commit
						33aadeced0
					
				@ -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} )
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user