diff --git a/.travis.yml b/.travis.yml index df8d67b2..9938c46d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,8 +17,9 @@ addons: - pandoc - git install: - - pip install coveralls - - pip install -r requirements.txt + - pip install -U pip + - pip install -U coveralls + - pip install -Ur requirements.txt - python setup.py develop - rm -rf build script: diff --git a/thefuck/rules/sudo.py b/thefuck/rules/sudo.py index 3211acfa..7333a274 100644 --- a/thefuck/rules/sudo.py +++ b/thefuck/rules/sudo.py @@ -14,6 +14,7 @@ patterns = ['permission denied', 'must be root', 'need to be root', 'need root', + 'needs to be run as root', 'only root can ', 'You don\'t have access to the history DB.', 'authentication is required', diff --git a/thefuck/shells/fish.py b/thefuck/shells/fish.py index b617439e..534f2ff5 100644 --- a/thefuck/shells/fish.py +++ b/thefuck/shells/fish.py @@ -65,4 +65,5 @@ class Fish(Generic): return u'; and '.join(commands) def how_to_configure(self): - return 'eval thefuck --alias', '~/.config/fish/config.fish' + return (r"eval (thefuck --alias | tr '\n' ';')", + '~/.config/fish/config.fish')