1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-18 20:11:17 +00:00

#349 Add installation of command-not-found in install script

This commit is contained in:
nvbn 2015-09-01 18:18:28 +03:00
parent 8a4f4eea45
commit 4932122f71

View File

@ -8,7 +8,12 @@ should_add_alias () {
if [ -f $(which apt-get) ]; then
# Debian/ubuntu:
sudo apt-get update -yy
sudo apt-get install -yy python-pip python-dev
sudo apt-get install -yy python-pip python-dev command-not-found
if [[ -n $(apt-cache search python-commandnotfound) ]]; then
# In case of different python versions:
sudo apt-get install -yy python-commandnotfound
fi
else
if [ -f $(which brew) ]; then
# OS X: