39 | | And you are done. From now on, you are able to use customized bash-completion. |
| 39 | The 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 | |
| 43 | You 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 | |
| 51 | You 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 |