adtac / climate

The swiss-army knife of utility tools for Linux.
GNU General Public License v3.0
1.42k stars 76 forks source link

no /etc/bash_completion.d/climate_completion created during install on arch linux #24

Open hong-duc opened 7 years ago

hong-duc commented 7 years ago

i get this error during install environment: line 162: /etc/bash_completion.d/climate_completion: No such file or directory, should this file created by me or climate ?

Theldus commented 7 years ago

Climate creates the climate_completion file but assumes the /etc/bash_completion.d/ directory already exists on your system, which Linux distribution do you use?

hong-duc commented 7 years ago

arch linux and i use zsh, also i use the curl method to install

Theldus commented 7 years ago

Perhaps the folder doesn't exist by default in Arch.

Could you please check if the /etc/bash_completion.d/ directory exists on your system, when I put bash completion I thought every linux would have this folder.

Since climate requires root to install, this is easily solved by checking whether the directory exists or not and creating one if that's the case.

I can make a PR with this if @adtac agrees.

hong-duc commented 7 years ago

Ah yes the folder does not exists

may be because this is arch linux, and every thing install from scratch

i just created it and reinstall thanks you :smile:

adtac commented 7 years ago

@Theldus hmm, probably a good idea to create the directory if it doesn't exist :+1: