add config for kitty + update fish shell config

This commit is contained in:
grassblock 2024-07-24 15:36:48 +08:00
parent 9f275c64c4
commit 8fe5a249b0
5 changed files with 190 additions and 4 deletions

View file

@ -2,13 +2,27 @@ if status is-interactive
# Commands to run in interactive sessions can go here
end
# zellij init for alacritty
if string match -q -- alacritty $TERM
set -gx ZELLIJ_AUTO_EXIT true
eval (zellij setup --generate-auto-start fish | string collect)
end
# zellij init for alacritty end
# starship custom conf
set -gx STARSHIP_CONFIG $__fish_config_dir/starship.toml
# starship custom conf end
starship init fish | source
# greeting
function fish_greeting
cat $__fish_config_dir/motd
echo ""
if [ $TERM = xterm-kitty ]
fastfetch -c $__fish_config_dir/fmotd/motd.jsonc
else
fastfetch -c $__fish_config_dir/fmotd/motd-fallback.jsonc
end
echo -e "\nWelcome to fish@$TERM, $USER!"
#cat $__fish_config_dir/motd
end
# greeting end
# pnpm
@ -44,6 +58,9 @@ rvm default
set PATH $PATH /home/grassblock/.local/bin
# pipx end
# 0x0 start
#0x0 end
# >>> mamba initialize >>>
# !! Contents within this block are managed by 'mamba init' !!
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 <<<

View file

@ -0,0 +1,52 @@
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"type": "small"
},
"display": {
"separator": " ",
"color": {
"keys": "magenta"
},
"size": {
"ndigits": 0,
"maxPrefix": "MB"
}
},
"modules": [
{
"type": "title",
"color": {
"user": "green",
"at": "red",
"host": "blue"
}
},
{
"type": "os",
"key": "󰌢",
"format": "{2} {8}"
},
{
"type": "kernel",
"key": "󰘨"
},
{
"type": "memory",
"key": ""
},
{
"type": "packages",
"key": "󰏖"
},
{
"type": "uptime",
"key": "󰅐"
},
{
"type": "custom",
"key": "",
"format": "{#31}███{#32}███{#33}███{#34}███{#35}███{#36}███"
}
]
}

View file

@ -0,0 +1,54 @@
{
"$schema": "https://github.com/fastfetch-cli/fastfetch/raw/dev/doc/json_schema.json",
"logo": {
"type": "auto",
"source": "/home/grassblock/Pictures/1017124-new.png",
"height": 6
},
"display": {
"separator": " ",
"color": {
"keys": "magenta"
},
"size": {
"ndigits": 0,
"maxPrefix": "MB"
}
},
"modules": [
{
"type": "title",
"color": {
"user": "green",
"at": "red",
"host": "blue"
}
},
{
"type": "os",
"key": "󰌢",
"format": "{2} {8}"
},
{
"type": "kernel",
"key": "󰘨"
},
{
"type": "memory",
"key": ""
},
{
"type": "packages",
"key": "󰏖"
},
{
"type": "uptime",
"key": "󰅐"
},
{
"type": "custom",
"key": "",
"format": "{#31}███{#32}███{#33}███{#34}███{#35}███{#36}███"
}
]
}