mirror of
https://github.com/nvbn/thefuck.git
synced 2025-04-15 15:20:42 +01:00
Add brew update
to Homebrew commands
`brew update` is implemented in shell instead of ruby, so `_get_brew_commands` needs to list .sh files as well as .rb Resolves https://github.com/nvbn/thefuck/issues/526
This commit is contained in:
parent
965c05bfdf
commit
29ed1800e1
@ -15,7 +15,7 @@ def _get_brew_commands(brew_path_prefix):
|
|||||||
brew_cmd_path = brew_path_prefix + BREW_CMD_PATH
|
brew_cmd_path = brew_path_prefix + BREW_CMD_PATH
|
||||||
|
|
||||||
return [name[:-3] for name in os.listdir(brew_cmd_path)
|
return [name[:-3] for name in os.listdir(brew_cmd_path)
|
||||||
if name.endswith('.rb')]
|
if name.endswith(('.rb', '.sh'))]
|
||||||
|
|
||||||
|
|
||||||
def _get_brew_tap_specific_commands(brew_path_prefix):
|
def _get_brew_tap_specific_commands(brew_path_prefix):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user