mirror of
https://github.com/nvbn/thefuck.git
synced 2025-01-18 20:11:17 +00:00
Fixed grammar in comments for easier understanding
This commit is contained in:
parent
a8e75aeced
commit
650c3f4e45
@ -13,7 +13,7 @@ Rule = namedtuple('Rule', ('match', 'get_new_command'))
|
|||||||
|
|
||||||
|
|
||||||
def setup_user_dir():
|
def setup_user_dir():
|
||||||
"""Returns user config dir, create it when it doesn't exists."""
|
"""Returns user config dir, create it when it doesn't exist."""
|
||||||
user_dir = Path(expanduser('~/.thefuck'))
|
user_dir = Path(expanduser('~/.thefuck'))
|
||||||
rules_dir = user_dir.joinpath('rules')
|
rules_dir = user_dir.joinpath('rules')
|
||||||
if not rules_dir.is_dir():
|
if not rules_dir.is_dir():
|
||||||
@ -98,7 +98,7 @@ def run_rule(rule, command, settings):
|
|||||||
|
|
||||||
|
|
||||||
def is_second_run(command):
|
def is_second_run(command):
|
||||||
"""It's second run of `fuck`?"""
|
"""Is it the second run of `fuck`?"""
|
||||||
return command.script.startswith('fuck')
|
return command.script.startswith('fuck')
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user