mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	Tabs to spaces.
This commit is contained in:
		
							parent
							
								
									9cf647bc6d
								
							
						
					
					
						commit
						9a6e2869b1
					
				| @ -61,11 +61,11 @@ j() { | ||||
| 
 | ||||
|     output="$(autojump ${@})" | ||||
|     if [[ -d "${output}" ]]; then | ||||
| 				if [ -t 1 ]; then  # if stdout is a terminal, use colors | ||||
| 						echo -e "\\033[31m${output}\\033[0m" | ||||
| 				else | ||||
| 						echo -e "${output}" | ||||
| 				fi | ||||
|         if [ -t 1 ]; then  # if stdout is a terminal, use colors | ||||
|                 echo -e "\\033[31m${output}\\033[0m" | ||||
|         else | ||||
|                 echo -e "${output}" | ||||
|         fi | ||||
|         cd "${output}" | ||||
|     else | ||||
|         echo "autojump: directory '${@}' not found" | ||||
|  | ||||
| @ -52,11 +52,11 @@ j() { | ||||
|     setopt localoptions noautonamedirs | ||||
|     local output="$(autojump ${@})" | ||||
|     if [[ -d "${output}" ]]; then | ||||
| 				if [ -t 1 ]; then  # if stdout is a terminal, use colors | ||||
| 						echo -e "\\033[31m${output}\\033[0m" | ||||
| 				else | ||||
| 						echo -e "${output}" | ||||
| 				fi | ||||
|         if [ -t 1 ]; then  # if stdout is a terminal, use colors | ||||
|                 echo -e "\\033[31m${output}\\033[0m" | ||||
|         else | ||||
|                 echo -e "${output}" | ||||
|         fi | ||||
|         cd "${output}" | ||||
|     else | ||||
|         echo "autojump: directory '${@}' not found" | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user