From 5de020bccd2a7ea6ba34087fef06f08df09ced41 Mon Sep 17 00:00:00 2001 From: Brobin Date: Wed, 22 Apr 2015 20:41:56 -0500 Subject: [PATCH] unf*ck sl -> ls --- thefuck/rules/sl_ls.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 thefuck/rules/sl_ls.py diff --git a/thefuck/rules/sl_ls.py b/thefuck/rules/sl_ls.py new file mode 100644 index 00000000..0b3d017a --- /dev/null +++ b/thefuck/rules/sl_ls.py @@ -0,0 +1,14 @@ +""" +This happens way too often + +When typing really fast cause I'm a 1337 H4X0R, +I often fuck up 'ls' and type 'sl'. No more! +""" + + +def match(command, settings): + return command.script == 'sl' + + +def get_new_command(command, settings): + return 'ls'