Commit 344e813f authored by Ed Reel's avatar Ed Reel Committed by Kazushi (Jam) Marukawa

Fix bash: /usr/local/share/bash-completion/bash_completion: Permission denied

parent ffda973f
...@@ -18,9 +18,14 @@ class Bash_completion < Package ...@@ -18,9 +18,14 @@ class Bash_completion < Package
def self.install def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install" system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
puts "Add the floowing to your .bashrc" puts
puts "[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion ]] && \\" puts "To complete installation, execute the following:".lightblue
puts ". /usr/local/share/bash-completion/bash_completion" puts "echo '# bash completion' >> ~/.bashrc".lightblue
puts "echo 'if [ -f /usr/local/share/bash-completion/bash_completion ]; then' >> ~/.bashrc".lightblue
puts "echo ' source /usr/local/share/bash-completion/bash_completion' >> ~/.bashrc".lightblue
puts "echo 'fi' >> ~/.bashrc".lightblue
puts "source ~/.bashrc".lightblue
puts
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment