Minor edits

This commit is contained in:
Ilan Cosman 2021-01-26 15:33:10 -08:00
parent 972346fd7e
commit 8c8e3cb28d

View File

@ -1,6 +1,6 @@
function _tide_init_install --on-event _tide_init_install function _tide_init_install --on-event _tide_init_install
set -U _tide_var_list set -U _tide_var_list
# Tiny improvment to shell startup, which makes async faster # Tiny improvment to shell startup, which makes async faster
function _tide_set -a var_name function _tide_set -a var_name
set -U $var_name $argv[2..-1] set -U $var_name $argv[2..-1]
@ -14,7 +14,7 @@ function _tide_init_install --on-event _tide_init_install
_tide_set _tide_color_light_blue 00AFFF _tide_set _tide_color_light_blue 00AFFF
# Each string replace is kind of dirname # Each string replace is kind of dirname
_tide_set _tide_root (status current-filename | string replace --regex '/[^/]+$' '' | string replace --regex '/[^/]+$' '') _tide_set _tide_root (status filename | string replace --regex '/[^/]+$' '' | string replace --regex '/[^/]+$' '')
_tide_set VIRTUAL_ENV_DISABLE_PROMPT true _tide_set VIRTUAL_ENV_DISABLE_PROMPT true