feat:add short fortune sentence for greeting

This commit is contained in:
grassblock 2025-06-04 15:01:42 +08:00
parent 4156e6877b
commit 54ea69dd8e

View file

@ -26,6 +26,8 @@ function fish_greeting
echo "" echo ""
# changed logo to ascii art so additional fallback is not needed # changed logo to ascii art so additional fallback is not needed
fastfetch -c $__fish_config_dir/motds/motd.jsonc fastfetch -c $__fish_config_dir/motds/motd.jsonc
# in case you are overwhelmed
fortune -s
echo -e "\nHellllllo from fish@$TERM, $USER!" echo -e "\nHellllllo from fish@$TERM, $USER!"
#cat $__fish_config_dir/motd #cat $__fish_config_dir/motd
end end
@ -59,12 +61,13 @@ $MAMBA_EXE shell hook --shell fish --root-prefix $MAMBA_ROOT_PREFIX | source
# asdf # asdf
set -gx ASDF_CONFIG_FILE $XDG_CONFIG_HOME/asdf/asdfrc set -gx ASDF_CONFIG_FILE $XDG_CONFIG_HOME/asdf/asdfrc
set -gx ASDF_DATA_DIR $XDG_DATA_HOME/asdf set -gx ASDF_DATA_DIR $XDG_DATA_HOME/asdf
set -gx PATH $ASDF_DATA_DIR/shim $PATH
# not needed since it's implemented by the package itself # not needed since it's implemented by the package itself
# source /opt/asdf-vm/asdf.fish # source /opt/asdf-vm/asdf.fish
# asdf end # asdf end
# alias # alias
# some aliases are turned into fuctions so they are commented out, will be removed soon. # some aliases are turned into functions so they are commented out, will be removed soon.
# -- 2025-02-10 -- # -- 2025-02-10 --
# alias wget "wget --hsts-file="$XDG_DATA_HOME/wget-hsts"" # alias wget "wget --hsts-file="$XDG_DATA_HOME/wget-hsts""
# alias "yarn" "yarn $1 --use-yarnrc $XDG_CONFIG_HOME/yarn/config" # alias "yarn" "yarn $1 --use-yarnrc $XDG_CONFIG_HOME/yarn/config"