Results 1 to 2 of 2

Thread: Apple OS X Bash Shell Enable File Name Completion Magic

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Location
    Florida
    Posts
    20
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default Apple OS X Bash Shell Enable File Name Completion Magic

    I seen this done but i have no clue how to set it up.
    on a shell or terminal you can press the tab key to go threw the files in the directory instead of listing them

    any idea how to do this.

    Thanks

  2. #2
    Never say die nixcraft's Avatar
    Join Date
    Jan 2005
    Location
    BIOS
    Posts
    4,374
    Thanks
    17
    Thanked 754 Times in 496 Posts
    Rep Power
    10

    Default

    Are you using Bash shell? If so install bash-completion package. RHEL/CentOS/Fedora/SL specific command:
    Code:
    yum install  bash-completion
    If you are using Debian / Ubuntu, enter:
    Code:
    sudo apt-get install bash-completion
    Add /etc/bash_completion to your $HOME/.bashrc file. Or run it:
    Code:
    source /etc/bash_completion
    Edit: This is posted under OS X. So, you need to enable MacPorts ( The MacPorts Project -- Home ) and run the command:
    Code:
     port install bash-completion
    See Getting <code>bash</code> Completion Magic on OS X &mdash; prb.io
    Last edited by nixcraft; 7th January 2013 at 05:09 PM.
    All [Solved] threads are closed by mods / admin to avoid spam issues. See Howto mark a thread as [Solved]


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Solved] Bash shell: Append text file command
    By aish in forum Shell scripting
    Replies: 1
    Last Post: 24th June 2011, 05:28 PM
  2. Bash Shell Check For Open File
    By awreneau in forum Shell scripting
    Replies: 9
    Last Post: 19th July 2010, 06:06 PM
  3. [HowTo] Bash Shell Script To Ftp File To Server
    By jaysunn in forum Getting started tutorials
    Replies: 8
    Last Post: 1st January 2010, 11:24 AM
  4. Enable Root Account Apple OSX 10.6
    By jaysunn in forum Getting started tutorials
    Replies: 1
    Last Post: 18th December 2009, 09:29 PM
  5. [Solved] UNIX File Descriptors In Bash Shell
    By raj in forum Shell scripting
    Replies: 5
    Last Post: 28th September 2009, 03:57 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41