@@ 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