Tab-autocomplete in terminal

Hi fellow Mac users.
I have been !my head for a few hours.
When I am usin the Terminal program and I am in $HOME/me/other/ and I have a set of perl scripts (.pl or .sh) located in $HOME/dropbox/perl_stuff
how come when I type a few letters of the perl script while hitting TAB key it does not try to auto-complete
What can I change for this this to work?
BTW... I think my enviorment settings I am using is .profile
Thanks

It sounds vaguely like you're getting a visual bell with the sound muted. Is the sound muted? Is Visual bell selected in the Advanced Terminal preferences?

Similar Messages

  • Dragging tabs from one Terminal.app window to another

    In Safari, you can drag a tab off and "tear" it off from one window to another. Is there a way to make that work in Terminal.app? It doesn't seem to work on my end with Leopard OS X 10.5.5.

    g-pod wrote:
    That worked, thanks! I see what happened now. I tried to detach the tab by dragging the tab upward instead of downward, but didn't drag it up far enough for detachment.
    I discovered the "bug" with Safari - about dragging "up."
    I used the two tab example because it works more easily. But dragging "up" works even when the target terminal has no tab. It's a cool thing
    I suspect that the tab portion of termina (or Safari) only opens when "attacked" from below.

  • [SOLVED] xfce4-terminal doesn't tab-autocomplete with sudo commands

    Wondering if this is a limitation of xfce4-terminal or something that can be enabled.
    In xfce4-terminal, if I type pac and press tab key, it autocompletes to pacman. If I type sudo pac and press tab, it won't autocomplete. The same is true when trying to complete anything after starting with sudo as the first word of the command. Paths resolve fine though after sudo, just not program names or commands.
    Fixable?
    Last edited by nLinked (2013-08-03 20:45:00)

    Thank you so much
    I went for the option to add it in my ~/.bashrc file instead of installing the bash-completion package. Rebooted and it works!

  • Setting tab name in Terminal

    The tabs in terminal show the current shell. Is there a way to change the tab name to something else?

    sudo scutil --set HostName whatever-you-want
    If that doesn't work, the hostname is being set to the result of a reverse lookup of your IP address on a local DNS server, most likely your gateway.

  • How to type "tab" character in terminal?

    Hi,
    In the terminal, I would like to be able to simply type a literal "tab" character. I know, by default, the tab key is used for auto-completion based on file system (I would like to keep it that way).
    I tried several things, nothing seems to work for me:
    - Copy-paste an existing tab character within the terminal
    - Add keyboard shortcut in the Terminal preferences > Settings > Keyboard (/011)
    - Insert 'LINE TABULATION' character from the Terminal > Edit > Special Characters... window
    Hopefully, someone has done this before?

    You can type any character that has a special meaning in the terminal by preceding it with ^V. So to type a tab character, just type ^V followed by the tab.

  • Opening a new tab in the terminal in the same directory as the current tab?

    Hi,
    Is it possible to setup the terminal to open a new tab in the same directory as the current tab?
    Regards,
    Ken

    I don't believe so, no.

  • I cannot use the scroll, cannot change tabs, autocomplete for the URLs does not work

    cannot use scroll, cannot change tabs, cannot use autocomplete in the URL tab. this was working
    == This happened ==
    A few times a week

    Do you have that problem when running in the Firefox SafeMode?
    [http://support.mozilla.com/en-US/kb/Safe+Mode]
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this:
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • Tab Completion within Terminal

    I'm currently studying the Peachpit book on OSX Support Essentials and have just arrived at the section concerning tab completion in the Terminal. According to the book, if I start from my home folder, then type P, and then press the Tab key, I should get all the choices available to me within the home folder that start with P. I tried this and it worked for me once. Now, however, after restarting, if I do the same thing, I get only one choice - PPCExplain, which is located in Developer/usr/bin/, and not in my home directory. Thinking a preferences must have gotten screwed up, I deleted the preferences for the Terminal, and restarted - still I get this one result and have no explanation of why this command worked as the book said it would and now it doesn't. I'm quite positive I'm starting from my user folder. Any idea what's going on here? Thanks.

    Your terminal is working correctly. In unix-based systems, tab completion is situation-dependent, and for the most part is relative to the root of the drive. If you open a terminal and type P<tab> it will list all commands that are included in your $PATH variable. The $PATH contains file locations (starting from the drive's root) for all the commonly used utilities. To see what the $PATH contains, type the following command in the terminal:
    echo $PATH
    This command will output something like: /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
    All the paths listed there are targeted when you enter a command. When you press "P<tab>" the system looks for something in these directories that begins with a "P". The terminal assumes "/usr/bin/", "/bin", and the other paths have already been entered, so typing "P" just completes the path from there.
    If you want to run the command "top" which shows all your running processes (similar to activity monitor) is located in the "/usr/bin" directory. Since that directory is in your $PATH, all you have to do is type "top" and press enter. For longer and unique commands you can use tab completion.
    Running "top" as described above is the exact same thing as running "/usr/bin/top". This is the command that is actually run, but having the rest of the file path in the $PATH variable makes it easier than having to type out the whole command.
    As for directories and user files, they're accessed from the root ("/") as well. If you want to access your user folder and show the contents in it via tab completion, start at the root of your drive, as follows:
    /Users/username/<tab>
    Press tab twice to show the available commands or paths. If you want to change your current directory to a new folder, type "cd" before the full file path, as such:
    cd /Users/username/Desktop
    Unix bases everything from the root of the drive as I explained above. However, there are some ways to simplify commands instead of having to type the whole command path before the command itself, or to target a specific file or folder without having to enter the path for the file/folder. These are the period, and the tilde keys: ".", "..", "~".
    To reference the current folder, use the ".", and to reference the parent folder type "..". To reference the user home folder type "~". Other than these options, everything is assumed to be referenced from the root of the drive "/".
    As such, you can change to your home folder these ways:
    cd ~
    cd /Users/username
    These commands perform the same function. The tilde (~) just indicates the current user's home folder, so you dont have to always enter "/Users/username" whenever you want to target something in your home folder.
    Lets take your home folder for example. I'll assume your home's name is "jcoyle".
    If you want to reference your desktop, you are currently trying to do it by pressing "D" and the pressing tab. This wont work. To reference your desktop you'll need to start at the root, or at some of the shortcuts provided by Unix (namely the tilde):
    /Users/jcoyle/Desktop (references from the full path)
    ~/Desktop (references from the user's home folder)
    Continue to press tab to see all the available targets in the desktop folder, and then enter part of the name of one of them and tab-complete it. You can list contents of folders this way.
    Getting back to the periods ("." and ".."), you can reference things relative to your current position. For instance, if you are currently in your Desktop folder, you can change back to your home folder by pressing "cd .." to go up one level. From there you can "cd" into your Movies folder, for example. Alternatively, if you are in your "Desktop" folder you can get to your "Movies" folder directly by typing "cd ../Movies". This tells the computer to go up one level and then target the "Movies" folder that should be there.
    Targeting files and folders like this in the Terminal, however, will not do anything unless the final targeted file is an executable binary file (such as a program). You must perform an action (via a program, ie: one of the commands like "cd") on the referenced path in order to do anything.
    Think about wanting to open TextEdit. You can open it by entering this command:
    /Applications/TextEdit.app/Contents/MacOS/TextEdit
    If you are in the "Applications" directory, you can type the command above, or type:
    ./TextEdit.app/Contents/MacOS/TextEdit
    The period references the current directory ("Applications") and then continues the command from there.
    Say you want to open a file on your desktop called "file.txt" in TextEdit. With the TextEdit program, if you enter the full path of a target file after the command to open the program then the program will try to open that file. For instance, this full command will open the file "file.txt" in the TextEdit program:
    /Applications/TextEdit.app/Contents/MacOS/TextEdit /Users/jcoyle/Desktop/file.txt
    Alternatively, this will work:
    /Applications/TextEdit.app/Contents/MacOS/TextEdit ~/Desktop/file.txt
    (The tilde references the home folder)
    If you are currently in the Applications folder, then this command will also do the same thing:
    ./TextEdit.app/Contents/MacOS/TextEdit ~/Desktop/file.txt
    (The period references the Applications folder itself, so you dont have to type the path before where you currently are located)
    Lastly, if you are in the Applications folder, then this command will also work:
    ../Applications/TextEdit.app/Contents/MacOS/TextEdit ~/Desktop/file.txt
    (the double period references the folder above where you are. In this case it happens to be the root "/" folder, so the full path ends up being what's entered. However, imagine the TextEdit application is in your Desktop folder. In that case if you wanted to open the application (forget about opening files with it for now) you could type these commands (assuming you have just opened the terminal and are currently in your home folder):
    /Users/jcoyle/Desktop/TextEdit.app/Contents/MacOS/TextEdit
    ./Desktop/TextEdit.app/Contents/MacOS/TextEdit
    ~/Desktop/TextEdit.app/Contents/MacOS/TextEdit (in this case the tilde is redundant, since you are already at your home folder)
    ../jcoyle/Desktop/TextEdit.app/Contents/MacOS/TextEdit
    ../../Users/jcoyle/Desktop/TextEdit.app/Contents/MacOS/TextEdit
    The last command invokes two instances of "..", which bring you back two folder levels. In this case, the first would move your reference from "jcoyle" up to the "Users" directory, and from there the second ".." would move you up to the root of the drive "/".
    I hope this long-winded explanation clarifies how paths work in Unix-based systems. Just that by default everything is assumed to be referenced from root, and the included file paths in the $PATH variable is why you see the files from those folders when you just press a letter and tab-complete it.
    It's very logical, but it can be a bit funky to wrap your head around.

  • "Tab" in terminal dims the display

    Hi,
    When I press "tab" in the terminal (e.g. when I want an autocomplete), my screen dims for the moment. It is extremely annoying and I cannot find anyone with a similar problem. Any help?
    Best wishes,
    C

    It sounds vaguely like you're getting a visual bell with the sound muted. Is the sound muted? Is Visual bell selected in the Advanced Terminal preferences?

  • [SOLVED] Reverting Guake terminal tab names back to 'Terminal #'

    The new version of Guake (0.4.3) implemented 'Better Tab Titling'.  This means that instead of a new tab name being 'Terminal #' (where # is an auto incrementing integer), it instead forced the title to be equal to the VTE prompt.
    My issues were that there was no way to set a preference to switch back (as I prefer the simple tab name) and that tab names could/would take a very large amount of space (as it would put my whole username@server:/path/to/where/i/am/at).
    So   I figured out how to fix and thought I'd share in case anyone else would like to switch back:
    NOTE:  I believe python is spacing-sensitive (please correct me if I'm wrong).  All the lines (added/edited) are indented 8 spaces.
    edit /usr/bin/guake
    find: self.selected_tab = None
    after that line, add:
            # holds the number of created tabs. This counter will not be
            # reset to avoid problems of repeated tab names.
            self.tab_counter = 0
    find: def on_terminal_title_changed(self, vte, box):
    after that line add:
            return
    find: Adding a new radio button to the tabbar
    the next line will read:
            label = box.terminal.get_window_title() or _("Terminal")
    change to:
            label = box.terminal.get_window_title() or _('Terminal %s') % self.tab_counter
    find self.tabs.pack_start(bnt, expand=False, padding=1)
    after that line add:
            self.tab_counter += 1
    After editing the file, restart Guake for the change to take effect.
    Beemer

    I have been using Guake for years and I think the tab bar is in the way. I disabled it a very long time ago and didn't look back.
    Here are the shortcuts that I use:
    "~" to toggle it.
    Ctrl+T for a new tab (just like in Firefox, Chromium).
    F1 and F2 for next and previous tab.
    F3 close tab.
    Basically, I don't need more than two tabs at a time; three tops, in very rare cases.
    Hope it helps.

  • Terminal - Multiple tabs

    Hi,
    I use multiple tabs on the terminal window.
    I often want to jump to the nth tab, like for example I am in the 2nd tab but want to jump to 5th tab.
    I know you can jump to the next tab, but I want to directly jump to the nth tab, without having to use the mouse.
    I am looking for a keyboard shortcut, let me know if there are any shortcuts or if I can configure any (if so how ?).
    Is there a way to do this or is there a work around ?
    Thanks,
    Muthu
    Message was edited by: Muthuveerappan

    Here is something that might help you get it done:
    http://jo.irisson.free.fr/?p=59
    Hope that helps even if just a little.
    Paul

  • [SOLVED] The terminal in the Arch installation

    I've notice that the terminal in the Arch installation has interesting features: the TAB autocompletion shows lots of information, typing a command and using up/down arrow only navigates through the history of this command... I love it. I'm using Arch with LXDE and its lxterminal does not have those features. Is it possible to install the Arch-installation terminal in LXDE? Or maybe adapt lxterminal someway? Thanks.
    Last edited by David López (2012-09-03 22:52:50)

    Background info: http://mailman.archlinux.org/pipermail/ … 02683.html
    The config it uses: http://www.archlinux.org/packages/extra … sh-config/

  • Autocompletion on console slow

    G'day,
    for the last few days my beloved autocompletion on the console - whether it is on xterm, konsole or yakuake, or even a vterm accessed via ALT+CTRL+F2 - freezes up for several seconds whenever there is more than one possible hit.
    So, if I want to edit a file named test.txt while there is also a test.html in the same directory using yakuake I type
    nano test.
    and hit TAB twice the terminal freezed up for ten, maybe twenty seconds before I get a result. The rest of my machine is usable just fine in the meantime...
    ANY idea what that could be?

    In all frankness I have no clue. I never changed anything about it, so whatever comes as a standard with Arch?
    That being said, how do I start a debug shell that way?

  • Looking for a replacement for Terminal from XFCE [SOLVED]

    I'm looking for a terminal to replace Terminal from XFCE. The requirements are simple. It needs to be GTK2 based for full clipboard functionality and to not be ugly. There needs to be a right click menu to access copy/cut/paste. And I need to be able to toggle the file menu or access all functions from the mouse. LXTerminal comes very close to this except the file menu is just on and the new window launch keyboard shortcut doesn't work. I don't care either way about tabs, but a terminal launcher is necessary.
    ----> xterm, rxvt, and the derivatives that I've seen are either too ugly or too feature light. It's too bad because xterm is amazingly quick. <----
    So why not just use Terminal? There are times when it seems like there are some runaway processes in the background and it starts to lag behind the mouse when moving. I don't know if this in fact Terminal, but I'll find out soon enough. It wouldn't be surprising though; Thunar was a major headache for me.
    Last edited by skottish (2008-08-08 16:57:34)

    pressh wrote:
    skottish wrote:
    ghostHack wrote:roxterm ?
    Looks good to me. Solved.
    nah, you should give sakura a try
    Even better right click layout. Sweet!
    Last edited by skottish (2008-08-08 17:53:40)

  • Why does terminal behave differently when logged in as different users?

    when I'm logged into my mba as my regular normal user, bash behaves normally;  but when I create a new user or use any user other than my default the behavior is different.  (might be bash or sh)
    Specifically, the tab autocomplete function works fine when I'm logged in as my regular user (tab-complete;  tab twice for all available selections/options).
    But on a newly-created user (also an admin) there is no tab complete, no 'tab twice, other options' etc. 
    Has anyone else seen this?
    I searched in this forum and found some instructions for creating an .inputrc file but I don't appear to have one on my default user so not sure why I would need this on the new user ?!?!?
    p.s. here are the instructions I found previously via a post on this forum:
    http://www.ernieflores.net/osx-page-4/how-to-enable-tab-completion-in-mac-os-x-t erminal/

    Done!  Thanks!
    https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/6/wo/iLhrfiEtEJtPFTt J8S23O0/23.83.28.0.9
    https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/6/wo/iLhrfiEtEJtPFTt J8S23O0/23.83.28.1.9

Maybe you are looking for