Difference between revisions of "Bash completion"
From OpenZFS on OS X
(Created page with "Assuming you already have [http://brew.sh/ Homebrew] installed brew install bash-completion Add the following lines to your ~/.bash_profile: if [ -f $(brew --prefix)/etc/bas...") |
|||
Line 8: | Line 8: | ||
cd /usr/local/etc/bash_completion.d | cd /usr/local/etc/bash_completion.d | ||
curl -O https://raw.githubusercontent.com/zfsonlinux/zfs/master/contrib/bash_completion.d/zfs | curl -O https://raw.githubusercontent.com/zfsonlinux/zfs/master/contrib/bash_completion.d/zfs | ||
+ | sudo chmod -R ugo+x /usr/local/etc/bash_completion.d/zfs | ||
Open a new terminal window. | Open a new terminal window. |
Revision as of 22:03, 31 October 2018
Assuming you already have Homebrew installed
brew install bash-completion
Add the following lines to your ~/.bash_profile:
if [ -f $(brew --prefix)/etc/bash_completion ]; then . $(brew --prefix)/etc/bash_completion fi
Install the ZFS bash completions:
cd /usr/local/etc/bash_completion.d curl -O https://raw.githubusercontent.com/zfsonlinux/zfs/master/contrib/bash_completion.d/zfs
sudo chmod -R ugo+x /usr/local/etc/bash_completion.d/zfs Open a new terminal window.