mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	Revert "do the PROMPT_COMMAND in the background for better performance"
This reverts commit 87b188cf12.
			
			
This commit is contained in:
		
							parent
							
								
									87b188cf12
								
							
						
					
					
						commit
						18447505ee
					
				
							
								
								
									
										10
									
								
								autojump
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								autojump
									
									
									
									
									
								
							@ -66,13 +66,9 @@ try:
 | 
			
		||||
except IOError:
 | 
			
		||||
    path_dict={}
 | 
			
		||||
 | 
			
		||||
if ('-a','') in optlist: #this can be done in the background
 | 
			
		||||
    os.nice(10)
 | 
			
		||||
    pid=os.fork()
 | 
			
		||||
    if not pid:
 | 
			
		||||
        os.setsid()
 | 
			
		||||
        dicadd(path_dict,args[-1])
 | 
			
		||||
        save(path_dict,dic_file)
 | 
			
		||||
if ('-a','') in optlist:
 | 
			
		||||
    dicadd(path_dict,args[-1])
 | 
			
		||||
    save(path_dict,dic_file)
 | 
			
		||||
elif ('--stat','') in optlist:
 | 
			
		||||
    a=path_dict.items()
 | 
			
		||||
    a.sort(key=lambda e:e[1])
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user