Merge branch 'java' of https://github.com/diezcami/thefuck into diezcami-java
Conflicts: README.md
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
# Fixes common java command mistake
|
||||
#
|
||||
# Example:
|
||||
# > java foo.java
|
||||
# Error: Could not find or load main class foo.java
|
||||
#
|
||||
|
||||
def match(command, settings):
|
||||
return (command.script.startswith ('java ')
|
||||
and command.script.endswith ('.java'))
|
||||
|
||||
def get_new_command(command, settings):
|
||||
return command.script[:-5]
|
||||
Reference in New Issue
Block a user