Skip to content

Commit

Permalink
remove automatic saves
Browse files Browse the repository at this point in the history
  • Loading branch information
hoefler02 committed Jun 8, 2021
1 parent fac0fb4 commit 03bb804
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions gef.py
Expand Up @@ -10514,7 +10514,6 @@ def do_invoke(self, argv):
self.usage()
return
GefAlias(argv[0], " ".join(argv[1:]))
GefSaveCommand().invoke(None, False)
return

@register_command
Expand All @@ -10531,15 +10530,14 @@ def __init__(self):
def do_invoke(self, argv):
global __aliases__
if len(argv) != 1:
self.rm_usage()
self.usage()
return
try:
alias_to_remove = next(filter(lambda x: x._alias == argv[0], __aliases__))
__aliases__.remove(alias_to_remove)
except (ValueError, StopIteration) as e:
err("{0} not found in aliases.".format(argv[0]))
return
GefSaveCommand().invoke(None, False)
gef_print("You must reload GEF for alias removals to apply.")
return

Expand Down

0 comments on commit 03bb804

Please sign in to comment.