diff --git a/thefuck/conf.py b/thefuck/conf.py index 611ec84b7..2b36cb26b 100644 --- a/thefuck/conf.py +++ b/thefuck/conf.py @@ -14,7 +14,8 @@ def load_source(name, pathname, _file=None): module_spec.loader.exec_module(module) return module except ImportError: - from imp import load_source + # This block is no longer needed if importlib.util is always available. + pass class Settings(dict): diff --git a/~/.config/thefuck/settings.py b/~/.config/thefuck/settings.py new file mode 100644 index 000000000..8478f6d2c --- /dev/null +++ b/~/.config/thefuck/settings.py @@ -0,0 +1,26 @@ +# The Fuck settings file +# +# The rules are defined as in the example bellow: +# +# rules = ['cd_parent', 'git_push', 'python_command', 'sudo'] +# +# The default values are as follows. Uncomment and change to fit your needs. +# See https://github.com/nvbn/thefuck#settings for more information. +# + +# rules = [] +# exclude_rules = [] +# wait_command = 3 +# require_confirmation = True +# no_colors = False +# debug = False +# priority = {} +# history_limit = None +# alter_history = True +# wait_slow_command = 15 +# slow_commands = ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'] +# repeat = False +# instant_mode = False +# num_close_matches = 3 +# env = {'LC_ALL': 'C', 'LANG': 'C', 'GIT_TRACE': '1'} +# excluded_search_path_prefixes = []