made local really local
This commit is contained in:
@@ -286,6 +286,7 @@ function timer_stop
|
||||
# command, the elapsed time of the last command, and the current user and host.
|
||||
set_prompt()
|
||||
{
|
||||
local _prompt_git_segment
|
||||
_prompt_git_segment()
|
||||
{
|
||||
# Fast path: skip git lookup when feature is disabled.
|
||||
@@ -316,6 +317,7 @@ set_prompt()
|
||||
printf "%s" "git:${branch}${dirty}${sync}"
|
||||
}
|
||||
|
||||
local _prompt_conda_env
|
||||
_prompt_conda_env()
|
||||
{
|
||||
[[ "${PROMPT_SHOW_CONDA:-1}" == "0" ]] && return 0
|
||||
@@ -323,6 +325,7 @@ set_prompt()
|
||||
printf "%s" "conda:${CONDA_DEFAULT_ENV}"
|
||||
}
|
||||
|
||||
local _prompt_venv_env
|
||||
_prompt_venv_env()
|
||||
{
|
||||
[[ "${PROMPT_SHOW_VENV:-1}" == "0" ]] && return 0
|
||||
@@ -331,6 +334,7 @@ set_prompt()
|
||||
printf "%s" "venv:${VIRTUAL_ENV##*/}"
|
||||
}
|
||||
|
||||
local _prompt_session_markers
|
||||
_prompt_session_markers()
|
||||
{
|
||||
[[ "${PROMPT_SHOW_SESSION:-1}" == "0" ]] && return 0
|
||||
|
||||
Reference in New Issue
Block a user