~zethra/dotfiles

dc117692ce83432b0211f3882ac3058ab81ebb18 — Sashanoraa 1 year, 6 months ago efff33a
Better term image thingy
1 files changed, 9 insertions(+), 8 deletions(-)

M .config/fish/config.fish
M .config/fish/config.fish => .config/fish/config.fish +9 -8
@@ 92,6 92,10 @@ if status is-interactive
    end
    fzf_key_bindings

    if [ -f /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.fish ]
        source /nix/var/nix/profiles/default/etc/profile.d/nix-daemon.fish
    end

    # fre
    function __aj_add --on-variable PWD
        status --is-command-substitution; and return


@@ 102,14 106,11 @@ if status is-interactive
end

function fish_greeting
    if kitty +kitten icat --detect-support 2> /dev/null
        set img_path ~/.config/fish/pfp.png

        set pos (string split x (bash ~/.config/fish/pos.sh))
        echo 💖 hiya sashanoraa
        kitty +kitten icat --place 2x1@19x(math $pos[1]) $img_path
        echo '  ', welcome to (gethost) "~" 🏳️‍⚧️
    if type -q kitty-img
        printf '💖 hiya sashanoraa '
        kitty-img ~/.config/fish/pfp.png 2>/dev/null
        echo welcome to (gethost) "~" 🏳️‍⚧️
    else
        echo 💖 hiya sashanoraa, welcome to (gethost) "~" 🏳️‍⚧️
        echo 💖 hiya sashanoraa welcome to (gethost) "~" 🏳️‍⚧️
    end
end