Ubuntu :: Turn On Bash Smart Completion?

Aug 26, 2010

[URL]

Code:
#if [ -f /etc/bash_completion ]; then
# . /etc/bash_completion
#fi

What versions of Ubuntu have this commented out? Every version I have used always has this uncommented.

View 1 Replies


ADVERTISEMENT

General :: Smart Tab Completion (for Directories)?

Aug 4, 2010

Are there shell versions that have a more intelligent tab completion? I'd like to be able to type cd foo-<TAB> Then it would show me the possible completions along with numbers that I can type to select one of them:

cd foo-<TAB>
(1) foo-bar1 (2) foo-bar2 (3) foo-bad

So, after <TAB> I would type 3 and it would take me to foo-bad. Alternatively, using the arrow keys instead of typing the number would be fine.

View 2 Replies View Related

General :: Make Zsh Completion Behave Like Bash Completion?

Jun 2, 2010

I switched to zsh, but I dislike the completion. If I have 20 files, each with a shared prefix, on pressing tab, zsh will fully complete the first file, then continue going through the list with each press of tab. If I want one near the end, I would have to press tab many times.

In bash, this was simple - press tab and I would get the prefix. If I continued typing (and pressing tab), bash would complete as far as it could be certain of. I find this behavior to be much more intuitive but prefer the other features of zsh to bash.

Is there a way to get this style of completion? Google suggested setopt bash_autolist, but this had no effect for me (and no error message was printed upon starting my shell).

View 1 Replies View Related

Ubuntu :: No Bash Completion With Sudo?

Apr 29, 2010

Just installed 10.04 64bit and in gnome-terminal i have no bash completion when sudo is used.For example:apt- gives apt-getbut sudo apt- does nothing, i get no suggestions from the terminal.

View 6 Replies View Related

Ubuntu :: Bash Completion With Leading Wildcard?

Jul 17, 2010

Out of the box, Bash in 10.04 is configured such that it won't expand/complete parameters when there's a single match for a parameter with a leading wildcard. For example, if I have the following files in a directory:

Code:

ABC.bin
DEF.bin
GHI.bin

...and I type cp *E*, I expect to be able to press TAB and have Bash expand *E* to DEF.bin, since that's the only file in the directory with a capital E in its name.

(Note: if I actually submit the command with the wildcards in place, the correct file will be used then, but I don't get to see it beforehand.) I imagine there's something in /etc/bash_completion that's preventing this from working properly. Does anyone know what it is?

View 1 Replies View Related

Fedora :: SSH Knowhost Bash Completion In F12?

Dec 10, 2009

New Fedora 12 install - I installed the bash_completion package, but it's not filling in knowhosts for ssh. It worked fine in Fedora 11. Is there something I've done wrong, or is this missing in F12?

View 6 Replies View Related

General :: Making Bash TAB Completion More Like Cmd.exe?

Dec 15, 2010

I wondered if theres a way to do rotational style completion in bash similar to the behavoir on cmd.exe, I've found it speeds me up in regard to entering commands

View 2 Replies View Related

Software :: No Bash Completion With Apt In Su Session?

Mar 28, 2011

I have disabled root ssh logins for security. When I am logged in as a normal user over SSH and do a su into root the tab-completion stops working with apt. It still works when doing normal file-browsing, on the original user1, and it has worked previously when logged directly into root. How do I make it autocomplete again? I am using Debian Stable on a headless homeserver.

View 3 Replies View Related

Fedora :: Do Bash Completion Of Package Names In Yum?

Jul 12, 2011

Can fedora do bash completion of package names in yum?

View 4 Replies View Related

General :: Handling Wordbreaks In Bash Completion?

Feb 16, 2010

I am writing completion function for one PHP framework called symfony. It has command line interface with syntax:

Code:

symfony [options] [namespace:]action

I want to make action be autocompletable. The function is simplest so far:

Code:

function _symfony_commands()
{
[ -r "cache/completion/.sf" ] && cat cache/completion/.sf
}

[code]....

But, if there is : symbol which separate namespace from action problems coming:

symfony doct[TAB]
will be completed to
symfony doctrine:

But nothing happens if you want complete after : symbol. I've found out that for readline there is three words because it splits line with $COMP_WORDBREAKS

Code:

$ echo $COMP_WORDBREAKS
"'><=;|&(:

I played with $COMP_WORDS array and tried every thought I had to make it work, but failed.
What I should do to escape colon and make readline consider it as one word? Or there is way perhaps to workaround it?

View 2 Replies View Related

Software :: Bash Hostname Completion Not Working?

Nov 25, 2009

According to the Bash man pages, Quote: HOSTFILE Contains the name of a file in the same format as /etc/hosts that should be read when the shell needs to complete a hostname. The list of possible hostname completions may be changed while the shell is running; the next time hostname completion is attempted after the value is changed, bash adds the contents of the new file to the existing list. If HOSTFILE is set, but has no value, bash attempts to read /etc/hosts to obtain the list of possible hostname completions. When HOSTFILE is unset, the hostname list is cleared.

Here's the line in my .bashrc where HOSTFILE is set:

Code:

export HOSTFILE="~/.hosts"

I opened a new bash session, created ~/.hosts, filled it with the names of servers that I wanted to expand using tab completion. then typed

Code:

ssh p<tab><tab>

expecting to get a lists of all of the hosts in ~/.hosts starting with 'p'. Bash simply beeped at me twice.

I tried

Code:

$ shopt hostcomplete
hostcomplete on

Code:

ssh bchittenden@p<tab><tab>

same results.

[code].....

View 2 Replies View Related

Ubuntu :: Bash-completion + Mount = Failure To Complete Directories?

May 27, 2011

I've spent some time searching for answers to this and I haven't found much at all.Please feel free to post pointers to other threads that discuss this particular problem, if you find any.The problem is that in bash I want to mount an iso file to inspect the contents with the command:Code:sudo mount myCD.iso CDMount -o loopThe command works fine, but pressing tab to complete either the iso filename or the CDMount directory does not work. The completion suggestions I get are existing mountpoints which The completion suggestions should include the files and directories in the current directory. This worked with Ubuntu 10.04 and not with 11.04.

View 1 Replies View Related

General :: Bash - Get Colored Output When Using Tab Completion In A Terminal?

Feb 27, 2011

Is there a way to get colored output when using tab completion in a terminal? My colors are fine everywhere else so I know that I've enabled a color terminal successfully. Using bash in Ubuntu (10.10).

View 1 Replies View Related

General :: Tab-Completion In Bash Indexing System Folders?

Nov 15, 2010

tab-completion indexes system folders (like /usr/bin, /usr/local/bin)! so say i'm in a folder that has two files, 'text' and 'myprog', i type in an 'm' then tab, and i get hundreds of results including 'mysql', 'mysqlconfig', and others as im sure you can imagine. is there a way to set it to default or something else that will only make it index the current folder?

i tried changing my PATH variable so i could execute programs in the current directory without './' - what i added to PATH was ':.' at the end (apparently this is not the way to do it... :S). i tried resetting PATH various times ('unset PATH', 'PATH=$whatever...') but this has not fixed the problem. using 'unset PATH', of course, removes everything from PATH, which meant that functions (like 'ls') in /usr/bin and /usr/local/bin can't be found. obviously i want those to be found, but i would rather not tab through them!

View 2 Replies View Related

Slackware :: Bash-completion-1.3-noarch-1 Causes Xorg Failure?

Feb 16, 2011

/etc/bash_completion.d/slapt has a syntax error that causes x to fail to load. I had to move the file to be able to run x. Here is the offending file:

[URL]

View 12 Replies View Related

Programming :: Bash Checking For File Write Completion Before Acting?

Jan 20, 2011

I have a bash script that checks for contents in a folder every 15 seconds and then acts on it's contents. This works great for the average size file however on very large files it starts acting on the file before it's completely written. Is there a facility in bash shell to get a file complete signal or such? here is trigger to launch a larger script.

Code:

#!/bin/sh
while true
do
$HOME/bin/hpgl.sh >/dev/null 2>&1 &

[code].....

View 10 Replies View Related

Ubuntu :: Won't Boot With Bash - Turn Into Console Mode

Oct 21, 2010

I've got a problem with bash, when I run my terminal or I turn into console mode, I get:

Code:

And I have to type "bash" and after I got:

Code:

How to make that bash alway running?

View 2 Replies View Related

General :: HPLIP - When Turn Off The PC And Turn It On Again The Printer Does NOT Work

Nov 4, 2009

I have Ubuntu 9.04, and a HP laserjet 1018 printer.

I install the printer using:

And when it ask me about plugin I give the path to it. (the 3.9.2 version of the plugin, because Ubuntu 9.04 has the 3.9.2 version of hplip)

well I install the printer, everything works perfectly.....but, when I turn off the PC, and turn it on again, the printer does NOT work!, I send work for being printed but mothing happens , Ubuntu tells me that the job was printed but ... no case, my printer does not print it.

I have to install it again since cero. what can I don to stop install it every time I turn off the computer ?

View 1 Replies View Related

Ubuntu :: .bashrc Function Tab Completion?

Jul 4, 2010

I tried to make a function to put in either my .bash_aliases or .bashrc file to make a local backup of a file, but when I call the function and try to use tab completion I get the following error:

Code:
cp: cannot stat `help': No such file or directory
The function I added is as follows:
Code:
function bk

[Code]...

Also interestingly, if I define this function at the prompt rather than in my .bashrc, tab completion works fine.

View 3 Replies View Related

Ubuntu Servers :: JeOS 8.04 And Sudo Tab Completion?

Mar 3, 2010

how to get tab completion working with sudo in JeOS (Ubuntu Hardy) 8.04? Assuming I have the command '/usr/bin/svnadmin'. As a normal user I can type:

Code:
svnad + TAB
and it auto-completes as 'svnadmin'. If I type:
Code:
sudo svnad + TAB
nothing happens. My 'echo $SHELL' is '/bin/bash'. I tried enabling the following in '/etc/bash.bashrc':
Code:
if [ -f /etc/bash_completion ]; then

[Code]...

auto-completes as I'd expect. I think I once read that there's some kind of configuration variable for sudo that causes it to use a 'more secure' path rather than the current path in the user's environment. I can't find any info on it though. I'm executing the commands from my home directory.

View 5 Replies View Related

Ubuntu :: Eclipse Freezes During Code Completion?

Jul 3, 2010

my version of Java is "1.6.0_20", it is the Java from package sun-java6-jdk from the repository.Version of Eclipse is 3.5.2 Galileo (but the new Helios has the same problem)The problem is that code completion (ctrl + space) freezes the Eclipse everytime I want to use it. There is nothing in the log (${WORKSPACE}./metadata/.log) and it seems to me like deadlock or something. When I run the Eclipse as root the problem don't occur.I tried to create new workspace, reinstall the eclipse,

View 2 Replies View Related

Ubuntu :: IDE With Intelligent Code Completion Feature?

Jul 17, 2010

I want an IDE such as phpDesigner or dreamweaver that has intelligent code completion feature built-in. If it's complete such phpDesigner; It will be prefered.

Quote:

Syntax highlighters in phpDesigner
Intelligent syntax highlighting, switch automatic between PHP, HTML, CSS and JavaScript
PHP (both version 4 and 5 are full supported)
SQL (MySQL, MSSQL 2000, MSSQL 7, Ingres, Interbase 6, Oracle, Sybase)
HTML/XHTML
CSS (both version 1 and 2.1 are full supported)

[Code]...

View 4 Replies View Related

Ubuntu :: Having Command Line Completion Similar To 4nt?

Mar 21, 2011

Is it possible to have command line completion similar to 4nt? In Terminal you have to type most of the name before it will complete for you, otherwise it just displays a list of names. Are you supposed to read from there and copy filenames? And the upper/lower case stuff is really ugly. Is there a smart command line utility that can build the entire path for you, and recall history based on a partial string?

View 1 Replies View Related

Ubuntu :: Smart Webcam Works On 10.04?

Jul 31, 2010

From time to time I have seen messages asking if their new device works on Ubuntu. This is to advise that I recently purchased a "Smart Webcam" brand inexpensive webcam at a local U.S. building products chain. Strange place to find such a thing but it was very low priced so I thought "why not give it a try". As it turned out, it works with my 10.04 install. Shows up ok on Ekiga and in gstreamer-properties in terminal. The video image quality is not as good as some but is suitable for casual use.

The microphone is brought out via a "Y" off the USB cable and ends in a 1/8" audio plug that will plug into a sound input port. I have not tried the mic but it should work. There is almost no documentation provided. Lastly, I have no connection with either the manufacture or the store. Just thought someone might be considering one of these and wondering it would work in Ubuntu. It does for me.

View 6 Replies View Related

Ubuntu :: KDE 'smart' Widget Arrangement

Sep 19, 2010

Kubuntu 10.04 x86. I've got a working triple monitor arrangement, separate X displays tied together via xinerama, which is all well and good (within the limits of xinerama, anyway; I long for the day when spanning desktop space, multiple monitors on multiple adapters, and X compositing can all live in harmony...) except for how KDE handles widgets. Love KDE, haven't had a second thought since switching from Gnome earlier this year, except for this one reach-for-the-shotgun issue.I like to have whatever I'm working on presently on my center monitor, my e-mail open on my right monitor, and various apps (torrent client, IM client, and a sort of 'status display' of arranged desktop widgets) on the left. KDE, on the other hand, does not like things this way.

KDE, it appears, has pretensions at being a GUI designer; it won't let me arrange widgets on my desktop the way I want to position them. If I put one in the top left corner, it'll snap into place. OK, fine; if I put another widget right below that first one, it automatically indents both of them, usually one in further than the other. Adding additional widgets to the arrangement usually but not always causes KDE to keep indenting - it's not stair-step bad, but it's obvious things don't line up which makes it visually distracting. It seemingly-randomly decides that I can't put a widget in a particular location on the screen and snaps it back to the size and location it was in when it first appeared on the screen (or before I moved it, if it was already there). It's not an overlap-detection problem; sometimes it's perfectly OK with me overlapping widgets, sometimes it won't even allow widgets to be within some apparently-randomly-chosen number of pixels of one or more of the widgets already on-screen. Sometimes it'll regard an aligned cluster of widgets as a single entity and snap to edges... with no rhyme or reason as to which clusters and which edges. When working with widgets in close proximity to each other, the 'edge-bars' that contain the buttons with which one can drag and manipulate the widgets; again, with little-to-no discernible pattern, sometimes they appear over the widget next to it, sometimes underneath the widget next to it (making the edge-bar completely useless), sometimes clicking the widget brings its edge-bar to the foreground, sometimes the widget needs to be dragged to a different part of the desktop or a different monitor then re-positioned in the cluster for the edge-bar to be in the foreground, sometimes the widget has to be removed and re-added to get the edge-bar into the foreground. When I rebooted just now, my widgets were randomly scattered across the desktop, despite having had "Lock Widgets" turned on throughout (since a few days ago, actually; the last time I had to re-re-re-rearrange things).Basically, from what I can tell from several months of observation, KDE has some sort of automatic widget arranging 'feature' which a) doesn't work properly and b) has no bloody off switch. All this makes what should be the simple, five-minute task of resizing and lining up some widgets by hand into an hour-long test of the elasticity of my vascular system. I'm fine with there being new or experimental or even buggy features in my GUI... so long as I can turn them off when I need to.

I've done the requisite googling and have come up empty. I've looked everywhere in the GUI I can think of, but no luck. I don't yet know enough about KDE to know where to look in the conf files to hack around it by hand. Could someone please tell me how to dike out or simply turn off this blitheringly-stupid widget auto-positioning drunken &*#^$*@#%$^&% wart so that I, the human, can put things where I want them on the screen?It's also baffling that I can only resize a Plasma widget up and away from its edge-bar when most every other window in most every other environment I've ever seen, including KDE, will let you resize by dragging any border in any direction. Big. Step. Backward. If anybody knows a way to fix this I would be most interested in hearing it, but I'll make do if given a way to turn off what I've come to think of as KDE's "layout critic mode".

View 3 Replies View Related

General :: Using TAB Completion In A Script?

Jul 28, 2010

Is it possible to use TAB completion in a script. For example I have a folder (A) that contain only one folder (B) and the script file.

Quote:

mahmood@localhost:A$ ls
B
script.sh

How can I send TAB key code in script?

View 2 Replies View Related

General :: Use Tab-Completion In PuTTY Connecting To A Ubuntu Server?

Mar 12, 2010

I use PuTTY to connect to an Ubuntu Server (VPS). I would like to use Tab-Completion when I'm working with the command line on Ubuntu Server... How can I configure it?

View 1 Replies View Related

Ubuntu :: File Completion Not Working - How To Make It Work

Nov 27, 2010

I am slowly rebuilding my network after a HDD crash that took out my primary development box. I installed Lucid Lynx and have things (mostly) working. The issue I am having has to do with file completion and history. I could set filec in my .cshrc file and it would work as it usually does (hit <TAB? key after typing in a couple of letters of a file name and BOOM the file auto-completes). For some reason, when I do the same thing, I get a literal TAB entered on the line. Also, if I attmept to utilize history (either the up-arrow from the keyboard I see ^[ instead of the last executed command(s).

View 2 Replies View Related

Ubuntu Servers :: New User Shell - Tab Completion Does Not Work

Nov 30, 2010

When I add a new user and SSH to my server as that new user, my command prompt is just a '$'. Tab completion doesn't work either. What I notice is that I get this:
Could not chdir to home directory /home/scaldwell: No such file or directory
$
Echo PS1 yields nothing. There is also nothing in /etc/skel. I didn't have to do anything special to get my initial user setup with the right prompt, and the second user has been added to the admin group as well. I have noticed that if I issue the command sudo chsh -s /bin/bash the account gets the correct prompt.

View 1 Replies View Related

Ubuntu :: Seeking Thorough Documentation Of SMART Values?

Apr 5, 2010

I am looking for comprehensive documentation of the SMART values that are reported in Palimpsest.For example, I am getting the following result:

Attribute: Reallocated Sector Count
Assessment: Warning
Normalized: 100
Worst: 100
Threshold: 36
Value: 1 sector

I would like to find a very thorough description of the meaning of these values, how they relate to each other, and how to interpret them.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved