From 4932122f717f63d4c4b4aafc7d4fdf35f43129a9 Mon Sep 17 00:00:00 2001 From: nvbn Date: Tue, 1 Sep 2015 18:18:28 +0300 Subject: [PATCH] #349 Add installation of command-not-found in install script --- install.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index e3c9f72d..e115f01b 100755 --- a/install.sh +++ b/install.sh @@ -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: