mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	Fix fish installation on fish 3.x
fish has dropped the . command from fish 3.x (and it has been deprecated in 2.x for a long time). autojump should use `source` instead `.` (no other change is needed).
This commit is contained in:
		
							parent
							
								
									b06d686bfe
								
							
						
					
					
						commit
						df25a4e833
					
				@ -161,7 +161,7 @@ def show_post_installation_message(etc_dir, share_dir, bin_dir):
 | 
			
		||||
    else:
 | 
			
		||||
        if get_shell() == 'fish':
 | 
			
		||||
            aj_shell = '%s/autojump.fish' % share_dir
 | 
			
		||||
            source_msg = 'if test -f %s; . %s; end' % (aj_shell, aj_shell)
 | 
			
		||||
            source_msg = 'if test -f %s; source %s; end' % (aj_shell, aj_shell)
 | 
			
		||||
            rcfile = '~/.config/fish/config.fish'
 | 
			
		||||
        else:
 | 
			
		||||
            aj_shell = '%s/autojump.sh' % etc_dir
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user