Skip to content
Snippets Groups Projects
Commit 1c9689bf authored by Juntong Liu's avatar Juntong Liu
Browse files

iocsh_bash_id -> iocsh_id, iocsh_bash_completion -> iocsh_completion

parent d59bef55
No related branches found
No related tags found
No related merge requests found
...@@ -85,14 +85,14 @@ BASECODE="$(basecode_generator)" ...@@ -85,14 +85,14 @@ BASECODE="$(basecode_generator)"
check_mandatory_env_settings check_mandatory_env_settings
# ${BASHPID} returns iocsh PID # ${BASHPID} returns iocsh PID
iocsh_bash_id=${BASHPID} iocsh_id=${BASHPID}
# #
SC_VERSION+=-PID-${iocsh_bash_id} SC_VERSION+=-PID-${iocsh_id}
# #
# We define HOSTNAME + iocsh_bash_id # We define HOSTNAME + iocsh_id
IOCSH_PS1=$(iocsh_ps1 "${iocsh_bash_id}") IOCSH_PS1=$(iocsh_ps1 "${iocsh_id}")
REQUIRE_IOC=$(require_ioc "${iocsh_bash_id}") REQUIRE_IOC=$(require_ioc "${iocsh_id}")
# #
# Default Initial Startup file for REQUIRE and minimal environment # Default Initial Startup file for REQUIRE and minimal environment
# Create TMP_PATH path in order to keep tmp files secure until # Create TMP_PATH path in order to keep tmp files secure until
......
#!/usr/bin/env bash #!/usr/bin/env bash
_iocsh_bash_completion() { _iocsh_completion() {
local cur prev opts mods local cur prev opts mods
COMPREPLY=() COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}" cur="${COMP_WORDS[COMP_CWORD]}"
...@@ -38,4 +38,4 @@ _iocsh_bash_completion() { ...@@ -38,4 +38,4 @@ _iocsh_bash_completion() {
mapfile -t COMPREPLY < <(compgen -f -- "${cur}") mapfile -t COMPREPLY < <(compgen -f -- "${cur}")
} }
complete -o filenames -o nospace -o bashdefault -F _iocsh_bash_completion iocsh complete -o filenames -o nospace -o bashdefault -F _iocsh_completion iocsh
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment