1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-04-15 15:20:42 +01:00
thefuck/thefuck/rules/cd_parent.py

17 lines
321 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):
return command.script == 'cd..'
def get_new_command(command):
return 'cd ..'