From 414dbcd058378103075193482159df29da0bf7f7 Mon Sep 17 00:00:00 2001 From: Teppei Taguchi Date: Sat, 9 Dec 2023 23:24:07 +0900 Subject: [PATCH] chore(fish): remove greeting message --- .config/fish/config.fish | 3 +++ .config/fish/functions/fish_greeting.fish | 22 +++++++++++----------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.config/fish/config.fish b/.config/fish/config.fish index 3ff94bb..151b3cb 100644 --- a/.config/fish/config.fish +++ b/.config/fish/config.fish @@ -4,6 +4,9 @@ end set -gx GPG_TTY (tty) +# remove greeting message +set -U fish_greeting + source $HOME/.config/fish/secrets.fish if test -d /opt/homebrew diff --git a/.config/fish/functions/fish_greeting.fish b/.config/fish/functions/fish_greeting.fish index a878495..80cc3af 100644 --- a/.config/fish/functions/fish_greeting.fish +++ b/.config/fish/functions/fish_greeting.fish @@ -1,11 +1,11 @@ -function fish_greeting -d "Display system information as a greeting" - set_color $fish_color_autosuggestion - - set -l system_info (system_profiler SPSoftwareDataType | string collect) - set -l sys_version (echo "$system_info" | rg "System Version: (.+)" -r '$1' | string trim) - set -l kernel_version (echo "$system_info" | rg "Kernel Version: (.+)" -r '$1' | string trim) - set -l time_since_boot (echo "$system_info" | rg "Time since boot: (.+)" -r '$1' | string trim) - - echo "You're running $sys_version with $kernel_version," - echo "and your system has been up for $time_since_boot." -end +# function fish_greeting -d "Display system information as a greeting" +# set_color $fish_color_autosuggestion +# +# set -l system_info (system_profiler SPSoftwareDataType | string collect) +# set -l sys_version (echo "$system_info" | rg "System Version: (.+)" -r '$1' | string trim) +# set -l kernel_version (echo "$system_info" | rg "Kernel Version: (.+)" -r '$1' | string trim) +# set -l time_since_boot (echo "$system_info" | rg "Time since boot: (.+)" -r '$1' | string trim) +# +# echo "You're running $sys_version with $kernel_version," +# echo "and your system has been up for $time_since_boot." +# end