You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
set fish_greeting
set -U fish_user_paths $fish_user_paths /home/linuxbrew/.linuxbrew/bin
set -U fish_user_paths $fish_user_paths $HOME/chrome/depot_tools
set -U fish_user_paths $fish_user_paths $HOME/.local/bin
set -U fish_user_paths $fish_user_paths $HOME/ohos/tools
ark init fish | source
if status is-interactive
export STARSHIP_LOG="error"
starship init fish | source
zoxide init --cmd j fish | source
end
ark init fish produce following config
set -gx OHOS_PATH "$HOME/ohos/standalone"
set -gx OHOS_STANDALONE true
set -gx OHOS_DEBUG true
function change_ohos_path
set -gx OHOS_PATH "$HOME/ohos/$argv[1]"
echo "OHOS_PATH: $OHOS_PATH"
end
function ohos
if test $OHOS_STANDALONE = false
set -gx OHOS_STANDALONE true
change_ohos_path standalone
else
set -gx OHOS_STANDALONE false
change_ohos_path main
end
echo "OHOS_STANDALONE: $OHOS_STANDALONE"
end
function debug
if test $OHOS_DEBUG = false
set -gx OHOS_DEBUG true
else
set -gx OHOS_DEBUG false
end
echo "OHOS_DEBUG: $OHOS_DEBUG"
end
Starship Configuration
# Set whatever time out in mscommand_timeout = 500
[custom.ohos]
command = '''if test "$OHOS_DEBUG" = "true"; echo (basename $OHOS_PATH) "debug"; else; echo (basename $OHOS_PATH) "release"; end'''when = "true"format = "on [$symbol($output )]($style)"
[character]
success_symbol = "[>](bold green)"error_symbol = "[x](bold red)"vimcmd_symbol = "[<](bold green)"
[git_commit]
tag_symbol = " tag "
[git_status]
ahead = ">"behind = "<"diverged = "<>"renamed = "r"deleted = "x"
[aws]
symbol = "aws "
[azure]
symbol = "az "
[bun]
symbol = "bun "
[c]
symbol = "C "
[cobol]
symbol = "cobol "
[conda]
symbol = "conda "
[crystal]
symbol = "cr "
[cmake]
symbol = "cmake "
[daml]
symbol = "daml "
[dart]
symbol = "dart "
[deno]
symbol = "deno "
[dotnet]
symbol = ".NET "
[directory]
truncation_length = 5truncate_to_repo = falseread_only = " ro"
[docker_context]
symbol = "docker "
[elixir]
symbol = "exs "
[elm]
symbol = "elm "
[fennel]
symbol = "fnl "
[fossil_branch]
symbol = "fossil "
[gcloud]
symbol = "gcp "
[git_branch]
always_show_remote = trueformat = "on [($remote_name/)$branch]($style) "
[golang]
symbol = "go "
[gradle]
symbol = "gradle "
[guix_shell]
symbol = "guix "
[hg_branch]
symbol = "hg "
[java]
symbol = "java "
[julia]
symbol = "jl "
[kotlin]
symbol = "kt "
[lua]
symbol = "lua "
[nodejs]
symbol = "nodejs "
[memory_usage]
symbol = "memory "
[meson]
symbol = "meson "
[nim]
symbol = "nim "
[nix_shell]
symbol = "nix "
[ocaml]
symbol = "ml "
[opa]
symbol = "opa "
[os.symbols]
Alpaquita = "alq "Alpine = "alp "Amazon = "amz "Android = "andr "Arch = "rch "Artix = "atx "CentOS = "cent "Debian = "deb "DragonFly = "dfbsd "Emscripten = "emsc "EndeavourOS = "ndev "Fedora = "fed "FreeBSD = "fbsd "Garuda = "garu "Gentoo = "gent "HardenedBSD = "hbsd "Illumos = "lum "Linux = "lnx "Mabox = "mbox "Macos = "mac "Manjaro = "mjo "Mariner = "mrn "MidnightBSD = "mid "Mint = "mint "NetBSD = "nbsd "NixOS = "nix "OpenBSD = "obsd "OpenCloudOS = "ocos "openEuler = "oeul "openSUSE = "osuse "OracleLinux = "orac "Pop = "pop "Raspbian = "rasp "Redhat = "rhl "RedHatEnterprise = "rhel "Redox = "redox "Solus = "sol "SUSE = "suse "Ubuntu = "ubnt "Unknown = "unk "Windows = "win "
[package]
symbol = "pkg "
[perl]
symbol = "pl "
[php]
symbol = "php "
[pijul_channel]
symbol = "pijul "
[pulumi]
symbol = "pulumi "
[purescript]
symbol = "purs "
[python]
symbol = "py "
[raku]
symbol = "raku "
[ruby]
symbol = "rb "
[rust]
symbol = "rs "
[scala]
symbol = "scala "
[spack]
symbol = "spack "
[solidity]
symbol = "solidity "
[status]
symbol = "[x](bold red) "
[sudo]
symbol = "sudo "
[swift]
symbol = "swift "
[terraform]
symbol = "terraform "
[zig]
symbol = "zig "
The text was updated successfully, but these errors were encountered:
ekil1100
changed the title
The prompt do not update when using set -gx change enviroment variable
[fish shell] The prompt do not update when using set -gx change enviroment variable
Apr 23, 2024
Bug Report
Current Behavior
set -gx OHOS_DEBUG false
xxxxx release
Expected Behavior
the prompt should update to
xxxxx release
Additional context/Screenshots
Possible Solution
Environment
Relevant Shell Configuration
ark init fish
produce following configStarship Configuration
The text was updated successfully, but these errors were encountered: