Skip to content

Commit

Permalink
clear changing
Browse files Browse the repository at this point in the history
  • Loading branch information
Courtney Oka committed May 1, 2017
1 parent b728bac commit 2532835
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/command_modules/azure-cli-shell/azclishell/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,15 @@ def _special_cases(self, text, cmd, outside):

if cmd.strip() == "quit" or cmd.strip() == "exit":
break_flag = True
elif text.strip() == "clear": # clears the history, but only when you restart
elif text.strip() == "clear-history": # clears the history, but only when you restart
outside = True
cmd = 'echo -n "" >' +\
os.path.join(
SHELL_CONFIG_DIR(),
SHELL_CONFIGURATION.get_history())
elif text.strip() == 'clear':
outside = True

if '--version' in text:
try:
continue_flag = True
Expand Down

0 comments on commit 2532835

Please sign in to comment.