[MacPorts] howto/bash-completion modified
MacPorts
noreply at macports.org
Fri Aug 10 10:02:39 PDT 2012
Changed page "howto/bash-completion" by macsforever2000 at macports.org from 132.163.130.97*
Page URL: <https://trac.macports.org/wiki/howto/bash-completion>
Diff URL: <https://trac.macports.org/wiki/howto/bash-completion?action=diff&version=7>
Revision 7
Comment: Fix the code to put into the shell and add description so Terminal doesn't ask to close terminal windows every time you try to Quit it.
-------8<------8<------8<------8<------8<------8<------8<------8<--------
Index: howto/bash-completion
=========================================================================
--- howto/bash-completion (version: 6)
+++ howto/bash-completion (version: 7)
@@ -28,8 +28,8 @@
Open the file in any editor and add the following lines. Make sure you add this after any PATH manipulation as otherwise the bash-completion will not work correctly.
{{{
# bash-completion
-if [ -f /opt/local/etc/bash_completion ]; then
- . /opt/local/etc/bash_completion
+if [ -f /opt/local/etc/profile.d/bash_completion.sh ]; then
+ . /opt/local/etc/profile.d/bash_completion.sh
fi
}}}
Important: Reopen your Terminal afterwards.
@@ -44,6 +44,8 @@
1. Menu > Preferences > Startup, "Shells open with:"
1. Select "Command" and enter `/opt/local/bin/bash -l` to switch to bash provided by MacPorts.
+ 1. Menu > Preferences > Settings > Shell (per shell type), "Prompt before closing:"
+ 1. Click "+" and add "bash" to the list of processes.
1. Close and reopen any terminal windows
==== iTerm2 ====
-------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