feat: fish motd: change logo to aperture

This commit is contained in:
grassblock 2025-01-18 14:03:31 +08:00
parent 315485b3b0
commit 5ad8fd7ffc
5 changed files with 29 additions and 71 deletions

View file

@ -1,5 +1,6 @@
if status is-interactive
# Commands to run in interactive sessions can go here
# zellij init for alacritty
if string match -q -- alacritty $TERM
set -gx ZELLIJ_AUTO_EXIT true
@ -23,12 +24,8 @@ end
# greeting
function fish_greeting
echo ""
# custom motd by fastfetch
if [ $TERM = xterm-kitty ] ; or [ $TERM = xterm-ghostty ]
fastfetch -c $__fish_config_dir/fmotd/motd.jsonc
else
fastfetch -c $__fish_config_dir/fmotd/motd-fallback.jsonc
end
# changed logo to ascii art so additional fallback is not needed
fastfetch -c $__fish_config_dir/motds/motd.jsonc
echo -e "\nHellllllo from fish@$TERM, $USER!"
#cat $__fish_config_dir/motd
end
@ -46,7 +43,7 @@ set -gx PATH "/home/grassblock/.local/share/npm/bin" $PATH
# ssh agent with rbw
set -gx SSH_ASKPASS_REQUIRE prefer
set -gx SSH_ASKPASS "$HOME/.local/bin/bw-askpass"
set -gx SSH_ASKPASS "$HOME/.local/bin/rbw-ssh-askpass"
# Created by `pipx` on 2023-10-13 01:41:55
set PATH $PATH /home/grassblock/.local/bin
@ -58,7 +55,6 @@ set -gx MAMBA_EXE "/usr/bin/micromamba"
set -gx MAMBA_ROOT_PREFIX "/home/grassblock/.local/share/micromamba"
$MAMBA_EXE shell hook --shell fish --root-prefix $MAMBA_ROOT_PREFIX | source
# <<< mamba initialize <<<
# micromamba has outdated dependency,,,,
# asdf
set -gx ASDF_CONFIG_FILE $XDG_CONFIG_HOME/asdf/asdfrc
@ -69,7 +65,10 @@ source /opt/asdf-vm/asdf.fish
# alias
alias wget "wget --hsts-file="$XDG_DATA_HOME/wget-hsts""
alias "yarn" "yarn $1 --use-yarnrc $XDG_CONFIG_HOME/yarn/config"
alias "ssh" "kitten ssh"
if [ $TERM = xterm-kitty ]
alias "ssh" "kitten ssh"
end
alias "nya" "echo nya && meow"
alias bat="bat --theme=\$( test $(darkman get) = 'dark' && echo Nord || echo ansi)"
alias hg="kitten hyperlinked-grep"
# alias end