Add the pacman_not_found rule
This commit is contained in:
@@ -3,11 +3,11 @@ from thefuck import shells
|
||||
|
||||
|
||||
def match(command, settings):
|
||||
return 'not found' in command.stderr and get_pkgfile(command)
|
||||
return 'not found' in command.stderr and get_pkgfile(command.script)
|
||||
|
||||
|
||||
def get_new_command(command, settings):
|
||||
packages = get_pkgfile(command)
|
||||
packages = get_pkgfile(command.script)
|
||||
|
||||
formatme = shells.and_('{} -S {}', '{}')
|
||||
return [formatme.format(pacman, package, command.script)
|
||||
|
||||
Reference in New Issue
Block a user