1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-03-01 00:08:35 +00:00

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

@ -8,7 +8,12 @@ should_add_alias () {
if [ -f $(which apt-get) ]; then if [ -f $(which apt-get) ]; then
# Debian/ubuntu: # Debian/ubuntu:
sudo apt-get update -yy 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 else
if [ -f $(which brew) ]; then if [ -f $(which brew) ]; then
# OS X: # OS X: