View Single Post
Old October 9th, 2013, 07:28 PM   #1125 (permalink)
palmtree5
Senior Member
 
palmtree5's Avatar
 
Join Date: May 2012
Location: USA
Gender: Male
Posts: 2,744
 
Device(s): HTC One SV, Samsung Galaxy Prevail (retired), Nexus 7 (Gen 1)
Carrier: Boost Mobile

Thanks: 1,655
Thanked 1,462 Times in 754 Posts
Default

Quote:
Originally Posted by palmtree5 View Post
Ok, having issues with bash completion. I want it to complete on arguments for a given command. It doesn't do that.

Example:

I type sudo pacman --sy<TAB> and I want it to complete to --sync

I know this is the default behavior in Ubuntu (which is one thing I actually like having) but I'm on Arch and only have tab completion to a certain extent (completing commands, showing what package contains a command if I try to run something that isn't installed, etc)
Turns out the bash_completion file (which needs to be sourced when the shell is launched) in Arch is not stored in /etc for some reason like I've read it is for Ubuntu; instead that file is located in /usr/share/bash-completion

Also, apparently it doesn't work for commands like adb and fastboot so I will have to search for those Figured that out too!
__________________
Find a post helpful? Hit
See spam or something offensive? Hit
New to the site? Site Rules/Guidelines and Introductions
Not a member yet but want to join? Join here!
Let's cure cancer with our phones
palmtree5 is online now  
Last edited by palmtree5; October 9th, 2013 at 08:38 PM.
Reply With Quote