| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files/Android/Android Studio/plugins/terminal/shell-integrations/zsh/ |
Upload File : |
# Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
function __jetbrains_intellij_update_environment() {
if [[ -n "${JEDITERM_SOURCE:-}" ]]; then
builtin source -- "$JEDITERM_SOURCE" ${=JEDITERM_SOURCE_ARGS:-}
fi
builtin unset JEDITERM_SOURCE JEDITERM_SOURCE_ARGS
# Enable native zsh options to make coding easier.
builtin emulate -L zsh
# To use `parameters` associative array
# https://zsh.sourceforge.io/Doc/Release/Zsh-Modules.html#The-zsh_002fparameter-Module
builtin zmodload zsh/parameter 2>/dev/null
builtin local ij_env_name
# For every _INTELLIJ_FORCE_SET_FOO=BAR run: export FOO=BAR.
for ij_env_name in ${parameters[(I)_INTELLIJ_FORCE_SET_*]}; do
# According to "Using associative arrays" https://zsh.sourceforge.io/Guide/zshguide05.html#l122:
# use (I) to retrieve all matching keys (not values) with the pattern given.
builtin local env_name="${ij_env_name:20}"
builtin export "$env_name"="${(P)ij_env_name}"
builtin unset "$ij_env_name"
done
# For every _INTELLIJ_FORCE_PREPEND_FOO=BAR run: export FOO=BAR$FOO.
for ij_env_name in ${parameters[(I)_INTELLIJ_FORCE_PREPEND_*]}; do
builtin local env_name="${ij_env_name:24}"
builtin export "$env_name"="${(P)ij_env_name}${(P)env_name}"
builtin unset "$ij_env_name"
done
}
__jetbrains_intellij_update_environment
builtin unset -f __jetbrains_intellij_update_environment
builtin local command_block_support="${JETBRAINS_INTELLIJ_ZSH_DIR}/command-block-support.zsh"
[ -r "$command_block_support" ] && builtin source "$command_block_support"
builtin unset JETBRAINS_INTELLIJ_ZSH_DIR