mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	Merge 73694897c3 into ee21082751
				
					
				
			This commit is contained in:
		
						commit
						6894c8965e
					
				| @ -67,6 +67,8 @@ j() { | ||||
|                 echo -e "${output}" | ||||
|         fi | ||||
|         cd "${output}" | ||||
|     elif [[ -f "${output}" ]]; then | ||||
|         $EDITOR "${output}" | ||||
|     else | ||||
|         echo "autojump: directory '${@}' not found" | ||||
|         echo "\n${output}\n" | ||||
|  | ||||
| @ -61,6 +61,8 @@ j() { | ||||
|                 echo -e "${output}" | ||||
|         fi | ||||
|         cd "${output}" | ||||
|     elif [[ -f "${output}" ]]; then | ||||
|         $EDITOR "${output}" | ||||
|     else | ||||
|         echo "autojump: directory '${@}' not found" | ||||
|         echo "\n${output}\n" | ||||
|  | ||||
							
								
								
									
										14
									
								
								install.py
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								install.py
									
									
									
									
									
								
							| @ -37,8 +37,9 @@ def modify_autojump_sh(etc_dir, share_dir, dryrun=False): | ||||
|         \n    source %s/autojump.${shell} \ | ||||
|         \nfi\n' % (share_dir, share_dir) | ||||
| 
 | ||||
|     with open(os.path.join(etc_dir, 'autojump.sh'), 'a') as f: | ||||
|         f.write(custom_install) | ||||
|     if not dryrun: | ||||
|         with open(os.path.join(etc_dir, 'autojump.sh'), 'a') as f: | ||||
|             f.write(custom_install) | ||||
| 
 | ||||
| 
 | ||||
| def modify_autojump_lua(clink_dir, bin_dir, dryrun=False): | ||||
| @ -48,10 +49,11 @@ def modify_autojump_lua(clink_dir, bin_dir, dryrun=False): | ||||
|         '\\\\', | ||||
|     ) | ||||
|     clink_file = os.path.join(clink_dir, 'autojump.lua') | ||||
|     with open(clink_file, 'r') as f: | ||||
|         original = f.read() | ||||
|     with open(clink_file, 'w') as f: | ||||
|         f.write(custom_install + original) | ||||
|     if not dryrun: | ||||
|         with open(clink_file, 'r') as f: | ||||
|             original = f.read() | ||||
|         with open(clink_file, 'w') as f: | ||||
|             f.write(custom_install + original) | ||||
| 
 | ||||
| 
 | ||||
| def parse_arguments():  # noqa | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user