Files
thefuck/thefuck/rules/cd_parent.py
T
2015-04-17 22:14:01 +02:00

15 lines
339 B
Python

# Adds the missing space between the cd command and the target directory
# when trying to cd to the parent directory.
#
# Does not really save chars, but is fun :D
#
# Example:
# > cd..
# cd..: command not found
def match(command, settings):
return command.script == 'cd..'
def get_new_command(command, settings):
return 'cd ..'