this repo has no description

thefuck config to auto-stash git changes

Also add pyenv-pyright, handy little convenience

+37 -13
+2
.config/thefuck/rules/pre_commit_missing.py
··· 3 3 """ 4 4 5 5 from thefuck.types import Command 6 + from thefuck.utils import for_app 6 7 7 8 enabled_by_default = True 8 9 requires_output = True 9 10 priority = 500 10 11 11 12 13 + @for_app("git") 12 14 def match(command: Command) -> bool: 13 15 return "No .pre-commit-config.yaml file was found" in command.output 14 16
+20
.config/thefuck/rules/stash_git_changes.py
··· 1 + """ 2 + Custom rule to automatically stash git changes if needed to perform an action. 3 + """ 4 + 5 + from thefuck.types import Command 6 + from thefuck.utils import for_app 7 + 8 + 9 + enabled_by_default = True 10 + requires_output = True 11 + priority = 500 12 + 13 + 14 + @for_app("git", "yadm") 15 + def match(command: Command) -> bool: 16 + return "Please commit your changes or stash them" in command.output 17 + 18 + 19 + def get_new_command(command: Command) -> str: 20 + return f"git stash && {command.script} && git stash pop"
+12 -13
.config/thefuck/settings.py
··· 8 8 # See https://github.com/nvbn/thefuck#settings for more information. 9 9 # 10 10 11 - # slow_commands = ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'] 11 + # rules = [<const: All rules enabled>] 12 + # exclude_rules = [] 13 + # wait_command = 3 12 14 # require_confirmation = True 13 - # wait_slow_command = 15 14 - # rules = [<const: All rules enabled>] 15 15 # no_colors = False 16 + # debug = False 17 + # priority = {} 18 + # history_limit = None 16 19 # alter_history = True 20 + # wait_slow_command = 15 21 + # slow_commands = ['lein', 'react-native', 'gradle', './gradlew', 'vagrant'] 17 22 # repeat = False 18 - # wait_command = 3 19 - # exclude_rules = [] 20 - # history_limit = None 21 - # env = {'LANG': 'C', 'LC_ALL': 'C', 'GIT_TRACE': '1'} 22 - # debug = False 23 - 24 - priority = { 25 - # workaround until https://github.com/nvbn/thefuck/issues/1207 is released 26 - "git_hook_bypass": 1100 27 - } 23 + # instant_mode = False 24 + # num_close_matches = 3 25 + # env = {'LC_ALL': 'C', 'LANG': 'C', 'GIT_TRACE': '1'} 26 + # excluded_search_path_prefixes = []
+3
.gitmodules
··· 16 16 [submodule ".vim/pack/bundle/start/info.vim"] 17 17 path = .vim/pack/bundle/start/info.vim 18 18 url = https://gitlab.com/HiPhish/info.vim 19 + [submodule "/Users/ichamberlain/.pyenv/plugins/pyenv-pyright"] 20 + path = /Users/ichamberlain/.pyenv/plugins/pyenv-pyright 21 + url = https://github.com/alefpereira/pyenv-pyright.git