Changes between Version 4 and Version 5 of howto/bash-completion


Ignore:
Timestamp:
Jul 11, 2012, 7:34:15 AM (12 years ago)
Author:
raimue (Rainer Müller)
Comment:

Explain configuration of Terminal.app and iTerm2

Legend:

Unmodified
Added
Removed
Modified
  • howto/bash-completion

    v4 v5  
    1414== Installation ==
    1515
    16 === Step 1: '''Install bash-completion''' ===
     16=== Step 1: Install bash-completion ===
    1717
    1818{{{
     
    2020}}}
    2121
    22 === Step 2: '''Enable bash-completion in your `.bash_profile` ===
     22=== Step 2: Enable bash-completion in your `.bash_profile` ===
    2323
    2424You have to add bash-completion to your `.profile` or `.bash_profile`.
     
    3535Important: Reopen your Terminal afterwards.
    3636
    37 Important: The port bash-completion >=2.0 requires bash >=4.1; please make sure you are using ${prefix}/bin/bash by changing the preferences of your terminal accordingly. If your version of bash is too old, the script above will not modify your shell environment and no extended completion will be available.
     37=== Step 3: Use bash from MacPorts in your terminal ===
    3838
    39 And you are done. From now on, you are able to use customized bash-completion.
     39The port bash-completion at version 2.0 requires at least bash at version 4.1; the older bash 3.2 provided by Apple with Mac OS X is not compatible anymore with this version. Please make sure you are using /opt/local/bin/bash by changing the preferences of your terminal accordingly. If your version of bash is too old, the script above will not modify your shell environment and no extended completion will be available.
     40
     41==== Terminal.app ====
     42
     43You need to change the command Terminal.app uses to launch the shell in the preferences.
     44
     45 1. Menu > Preferences, "Shells open with:"
     46 1. Select "Command" and enter `/opt/local/bin/bash -l` to switch to bash provided by MacPorts.
     47 1. Close and reopen any terminal windows
     48
     49==== iTerm2 ====
     50
     51You need to change the command iTerm2 uses to launch the shell in the appropriate profile in the preferences.
     52
     53 1. Menu > Preferences > Profiles tab
     54 1. Select your profile, on the right switch to the General tab, see "Command"
     55 1. Select "Command:" and enter `/opt/local/bin/bash -l`
     56 1. Close and reopen any terminal windows
    4057
    4158== Optional Parts ==