Skip to content

Commit

Permalink
ALIENPY_NO_HISTORY toggle do disable history and autocompletion
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansev committed Mar 1, 2024
1 parent 27d074b commit 7a13ef6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions alienpy/alien.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ def shlex_join(split_command: list) -> str: return ' '.join(shlex.quote(arg) for
# Session save
from .setup_cwd import SessionRestore, SessionSave
# Setup history
from .tools_history import setupHistory
if not os.getenv('ALIENPY_NO_HISTORY'):
from .tools_history import setupHistory
# XRootD functions
from .xrd_tools import expand_path_grid, extract_glob_pattern, lfn2meta, lfn2uri, list_files_grid
from .xrd_core import (DO_XrootdCp, HAS_XROOTD, download_tmp, upload_tmp, xrd_client, xrd_config_init,
Expand Down Expand Up @@ -1863,7 +1864,8 @@ def JAlien(commands: Union[list, str, None] = None) -> int:
ALIENPY_GLOBAL_WB = InitConnection(cmdlist_func = constructCmdList) # we are doing the connection recovery and exception treatment in AlienConnect()
# Begin Shell-like interaction

setupHistory(ALIENPY_GLOBAL_WB) # Setup command history
if not os.getenv('ALIENPY_NO_HISTORY'):
setupHistory(ALIENPY_GLOBAL_WB) # Setup command history

print_out('Welcome to the ALICE GRID\nsupport mail: adrian.sevcenco@cern.ch\n')
if DEBUG:
Expand Down

0 comments on commit 7a13ef6

Please sign in to comment.