[MacPorts] howto/bash-completion modified

MacPorts noreply at macports.org
Wed Jul 11 00:34:16 PDT 2012


Changed page "howto/bash-completion" by raimue at macports.org from 188.194.78.54*
Page URL: <https://trac.macports.org/wiki/howto/bash-completion>
Diff URL: <https://trac.macports.org/wiki/howto/bash-completion?action=diff&version=5>
Revision 5
Comment: Explain configuration of Terminal.app and iTerm2

-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/bash-completion
=========================================================================
--- howto/bash-completion (version: 4)
+++ howto/bash-completion (version: 5)
@@ -13,13 +13,13 @@
 
 == Installation ==
 
-=== Step 1: '''Install bash-completion''' ===
+=== Step 1: Install bash-completion ===
 
 {{{
 $ sudo port install bash-completion
 }}}
 
-=== Step 2: '''Enable bash-completion in your `.bash_profile` ===
+=== Step 2: Enable bash-completion in your `.bash_profile` ===
 
 You have to add bash-completion to your `.profile` or `.bash_profile`.
 
@@ -34,9 +34,26 @@
 }}}
 Important: Reopen your Terminal afterwards.
 
-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.
+=== Step 3: Use bash from MacPorts in your terminal ===
 
-And you are done. From now on, you are able to use customized bash-completion. 
+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.
+
+==== Terminal.app ====
+
+You need to change the command Terminal.app uses to launch the shell in the preferences.
+
+ 1. Menu > Preferences, "Shells open with:"
+ 1. Select "Command" and enter `/opt/local/bin/bash -l` to switch to bash provided by MacPorts.
+ 1. Close and reopen any terminal windows
+
+==== iTerm2 ====
+
+You need to change the command iTerm2 uses to launch the shell in the appropriate profile in the preferences.
+
+ 1. Menu > Preferences > Profiles tab
+ 1. Select your profile, on the right switch to the General tab, see "Command"
+ 1. Select "Command:" and enter `/opt/local/bin/bash -l`
+ 1. Close and reopen any terminal windows
 
 == Optional Parts ==
 

-------8<------8<------8<------8<------8<------8<------8<------8<--------

* The IP shown here might not mean anything if the user or the server is
behind a proxy.

--
MacPorts <http://www.macports.org/>
Ports system for Mac OS

This is an automated message. Someone at http://www.macports.org/ added your email
address to be notified of changes on howto/bash-completion. If it was not you, please
report to .


More information about the macports-changes mailing list