added more conditional logic to dev.sh
This commit is contained in:
parent
8d3b945825
commit
361f578783
1 changed files with 6 additions and 1 deletions
|
@ -17,7 +17,12 @@ install_packwiz() {
|
|||
|
||||
# Generate autocompletion script
|
||||
packwiz completion bash > ~/.packwiz
|
||||
if ! grep -q "source ~/.packwiz" ~/.bashrc; then
|
||||
echo 'source ~/.packwiz' >> ~/.bashrc
|
||||
echo "Successfully enabled packwiz autocompletion";
|
||||
else
|
||||
echo "packwiz autocompletion already enabled"
|
||||
fi
|
||||
source ~/.bashrc
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue