Editing Bash completion

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 16: Line 16:
 
Add the following lines to your ~/.bash_profile or ~/.bashrc (depending on your preferred setup of startup files):
 
Add the following lines to your ~/.bash_profile or ~/.bashrc (depending on your preferred setup of startup files):
 
  export BASH_COMPLETION_COMPAT_DIR="/usr/local/etc/bash_completion.d"
 
  export BASH_COMPLETION_COMPAT_DIR="/usr/local/etc/bash_completion.d"
  if [ -r "/usr/local/etc/profile.d/bash_completion.sh" ]; then
+
  [[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
        . "/usr/local/etc/profile.d/bash_completion.sh"
+
fi
+
 
Install the ZFS bash completions:
 
Install the ZFS bash completions:
 
  cd /usr/local/share/bash-completion/completions
 
  cd /usr/local/share/bash-completion/completions

Please note that all contributions to OpenZFS on OS X may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenZFS on OS X:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)