Different elixir symbol
This commit is contained in:
parent
493c68e388
commit
4bc6207076
1 changed files with 3 additions and 3 deletions
|
@ -53,7 +53,7 @@ antigen apply
|
||||||
|
|
||||||
|
|
||||||
# custom functions for powerlevel9k
|
# custom functions for powerlevel9k
|
||||||
POWERLEVEL9K_ELIXIR_ICON=$'🥃'
|
POWERLEVEL9K_ELIXIR_ICON=$'💧'
|
||||||
POWERLEVEL9K_PYTHON_ICON=$'\U1F40D'
|
POWERLEVEL9K_PYTHON_ICON=$'\U1F40D'
|
||||||
|
|
||||||
prompt_custom_virtualenv() {
|
prompt_custom_virtualenv() {
|
||||||
|
@ -68,7 +68,7 @@ POWERLEVEL9K_CUSTOM_VIRTUALENV="prompt_custom_virtualenv"
|
||||||
|
|
||||||
prompt_asdf_elixir() {
|
prompt_asdf_elixir() {
|
||||||
if [ $commands[asdf] ]; then
|
if [ $commands[asdf] ]; then
|
||||||
ELIXIR_ICON=$'🥃'
|
ELIXIR_ICON=$'💧'
|
||||||
local asdf_global_conf="$HOME/.tool-versions"
|
local asdf_global_conf="$HOME/.tool-versions"
|
||||||
local version_regex="s/^\([.0-9]*\).*/\1/p"
|
local version_regex="s/^\([.0-9]*\).*/\1/p"
|
||||||
local config_regex="s/.*(set by \(.*\))/\1/p"
|
local config_regex="s/.*(set by \(.*\))/\1/p"
|
||||||
|
@ -81,7 +81,7 @@ prompt_asdf_elixir() {
|
||||||
local erlang_current_version="$(echo $erlang_current | sed -n $version_regex)"
|
local erlang_current_version="$(echo $erlang_current | sed -n $version_regex)"
|
||||||
local erlang_current_conf="$(echo $erlang_current | sed -n $config_regex)"
|
local erlang_current_conf="$(echo $erlang_current | sed -n $config_regex)"
|
||||||
if [[ "${asdf_global_conf}" != "${elixir_current_conf}" || "${asdf_global_conf}" != "${erlang_current_conf}" ]]; then
|
if [[ "${asdf_global_conf}" != "${elixir_current_conf}" || "${asdf_global_conf}" != "${erlang_current_conf}" ]]; then
|
||||||
echo -n "🥃 $elixir_current_version (on Erlang $erlang_current_version)"
|
echo -n "💧 $elixir_current_version (on Erlang $erlang_current_version)"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue