mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	update install.sh to support fish
This commit is contained in:
		
							parent
							
								
									e491a63175
								
							
						
					
					
						commit
						6a639d59b2
					
				@ -147,7 +147,8 @@ if [[ -n ${prefix} ]]; then
 | 
			
		||||
fi
 | 
			
		||||
 | 
			
		||||
# check shell support
 | 
			
		||||
if [[ ${shell} != "bash" ]] && [[ ${shell} != "zsh" ]]; then
 | 
			
		||||
if [[ ${shell} != "bash" ]] && [[ ${shell} != "zsh" ]] \
 | 
			
		||||
    && [[ ${shell} != "fish" ]]; then
 | 
			
		||||
    echo "Unsupported shell (${shell}). Only Bash and Zsh shells are supported."
 | 
			
		||||
    exit 1
 | 
			
		||||
fi
 | 
			
		||||
@ -216,6 +217,7 @@ mkdir -p ${destdir}etc/profile.d/ || exit 1
 | 
			
		||||
cp -v ./bin/autojump.sh ${destdir}etc/profile.d/ || exit 1
 | 
			
		||||
cp -v ./bin/autojump.bash ${destdir}etc/profile.d/ || exit 1
 | 
			
		||||
cp -v ./bin/autojump.zsh ${destdir}etc/profile.d/ || exit 1
 | 
			
		||||
cp -v ./bin/autojump.fish ${destdir}etc/profile.d/ || exit 1
 | 
			
		||||
mkdir -p ${destdir}${zshsharedir} || exit 1
 | 
			
		||||
# TODO: remove unused _j function (2013.02.01_1348, ting)
 | 
			
		||||
install -v -m 0755 ./bin/_j ${destdir}${zshsharedir} || exit 1
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user