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?
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).
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
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.
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.
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?
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?
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.
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).
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!
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.
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 &
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.
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.
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
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.
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.
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
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.
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?
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.
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,
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)
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?