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 ${@})" |     output="$(autojump ${@})" | ||||||
|     if [[ -d "${output}" ]]; then |     if [[ -d "${output}" ]]; then | ||||||
| 				if [ -t 1 ]; then  # if stdout is a terminal, use colors |         if [ -t 1 ]; then  # if stdout is a terminal, use colors | ||||||
| 						echo -e "\\033[31m${output}\\033[0m" |                 echo -e "\\033[31m${output}\\033[0m" | ||||||
| 				else |         else | ||||||
| 						echo -e "${output}" |                 echo -e "${output}" | ||||||
| 				fi |         fi | ||||||
|         cd "${output}" |         cd "${output}" | ||||||
|     else |     else | ||||||
|         echo "autojump: directory '${@}' not found" |         echo "autojump: directory '${@}' not found" | ||||||
|  | |||||||
| @ -52,11 +52,11 @@ j() { | |||||||
|     setopt localoptions noautonamedirs |     setopt localoptions noautonamedirs | ||||||
|     local output="$(autojump ${@})" |     local output="$(autojump ${@})" | ||||||
|     if [[ -d "${output}" ]]; then |     if [[ -d "${output}" ]]; then | ||||||
| 				if [ -t 1 ]; then  # if stdout is a terminal, use colors |         if [ -t 1 ]; then  # if stdout is a terminal, use colors | ||||||
| 						echo -e "\\033[31m${output}\\033[0m" |                 echo -e "\\033[31m${output}\\033[0m" | ||||||
| 				else |         else | ||||||
| 						echo -e "${output}" |                 echo -e "${output}" | ||||||
| 				fi |         fi | ||||||
|         cd "${output}" |         cd "${output}" | ||||||
|     else |     else | ||||||
|         echo "autojump: directory '${@}' not found" |         echo "autojump: directory '${@}' not found" | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user