mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-31 10:11:14 +00:00
#349 Add installation of command-not-found in install script
This commit is contained in:
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user