Created
June 5, 2018 12:00
-
-
Save nea89o/69efb289a60ba7ecb9c26333ef00e766 to your computer and use it in GitHub Desktop.
https://github.com/nvbn/thefuck rule for lowercasing CAPSLOCKED scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
priority = 1200 | |
requires_output = False | |
enabled_by_default = True | |
def match(command): | |
return sum([ch.isupper() for ch in command.script]) > sum([ch.islower() for ch in command.script]) | |
def get_new_command(command): | |
return command.script.lower() | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment