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


ADVERTISEMENT

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

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 :: 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

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

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

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

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 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

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

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

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

Red Hat / Fedora :: Format And Setup An External HD From Step 1 To Completion?

Sep 21, 2010

I am a total and complete noob with Red Hat. I was handed down this system at work and told to setup new 2TB HD's to work with our backup system. I have been stumbling around trying to figure it out but I'm pretty sure I'm just making a mess of things. Could someone give me or show me how to format and setup an external HD from step 1 to completion?

I actually do have one of the new HD's kinda working but it doesn't auto-mount when I plug it in. I've tried so many different things I'm not sure what I've done anymore. I'd really just like to start from "remove the HD from the packaging" and go from there.

View 4 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

Fedora :: Grsync/rsync Crash / Grsync Run For Some Time And Once It Nears Completion It Will Crash?

Jun 14, 2011

I'm running Fedora 15 with current updates and kernel. I do not have anything special or non-standard about my configuration or setup. I use grsync to sync my home folder files to a remote rsync server on my network. I've checked my hard drives and my memory and everything else I can think. Here is the problem:

grsync will run for some time and once it nears completion it will crash. This, however, is no standard crash. It literally shuts my computer "OFF". I have shared the remote rsync folder through CIFS as well and I can copy those exact same files through nautilus with drag and drop without issue. I have had a few occasions where the rsync process will complete without issue, but this is a rare occasion. Since it powers my computer completely off I do not enjoy the luxury of having any log files or messages to attempt to diagnose from.

View 9 Replies View Related

Debian Configuration :: Tab Completion Within FTP Server

Nov 14, 2015

I'm having a lot of difficulty trying to use tab completion while working in my FTP server from a terminal.I access this server with other Linux distros and OSX and the completion works fine. I've tried changing a lot of Debian config, but it seems to only affect the completion within the local scope.

Tab completion does work for system related tasks, no problem.

System:
Debian 8.2/Kernel 3.16.0-4-amd64

FTP Server:
Trendnet TS-I300 NAS with FTP/upnp

Settings:
Enabled in bashrc:
Code: Select allif ! shopt -oq posix; then
   if [ -f /usr/share/bash-completion/bash_completion ]; then
         . /usr/share/bash-completion/bash_completion
   elif [ -f /etc/bash_completion ]; then
         . /etc/bash_completion
   fi
fi

View 5 Replies View Related

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

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

Programming :: .bashrc Function Tab Completion?

Jul 5, 2010

I tried to make a (very simple) function to put in my .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
{
cp -f --backup=numbered ${1} ${1}.bak

[code]....

View 2 Replies View Related

General :: No Command Completion For New Users?

Jul 18, 2011

I am using ubuntu 9.04. I created new users, & users logged in with their name & password. Everything is working fine. But when they open gui terminal or when they login using CLI(using ctrl+alt+f1), they will get only "$" symbol, instead of full path like pwd, hostname, etc. And if I do ls, it is listing the content, but command completion is not happening, i.e $cd Des(pressing tab). These all things can be fixed only after pressing "bash". So I don't always want to press "bash". So is there any way that I can fix this issue.

View 6 Replies View Related

Debian :: Squeeze Upgrade - Tab Completion Does Not Work

Mar 15, 2010

Since upgrading my laptop to Squeeze, terminals (tested Gnome terminal and xterm) show simply a "$" prompt; machine, path and username are missing. What's really annoying though is that tab completion doesn't work, it inserts a tab character instead. Fooling around showed me that typing in the command "bash" brings everything back to what I'm used to. So in my dire newbiness do I ask, how do I reenable bash as the default shell for these programs?

View 5 Replies View Related

Debian Configuration :: Cannot Get Ksh To Have Super Tab Completion Power

Oct 27, 2010

I cannot get ksh to have super tab completion power. Is it possible? I would like

apt-get in<tab>
and
apt-get install icewe<tab>
to auto complete

I am using lenny and ksh93

edit: Another problem. If I set ksh as /bin/sh I get errors during boot. Is it just me? Is it possible to set ksh as /bin/sh?

edit2: One more question. ksh does not seem to tab complete symlinks Is it just me? Any way to get it to recognize symlinks?

and my .kshrc
# Environment variables.
export PAGER=more

[code]....

View 5 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

General :: Scheduling Shutdown After Download Completion?

May 20, 2010

Is there any way to schedule shutdown, from terminal,right after some currently running download in mozilla completes??

View 6 Replies View Related







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