Anyone knows if I can start fastfetch with kitty terminal without adding it to my zshrc?
@raccoon yea , chexk out the kitty config , its VERY extwnsive and has lots n lots of comments on every option explaining how they work
@raccoon or just do a .zshrc with
if [ $TERM=kitty ]; then fastfetch; fi
@fiore@brain.worm.pink
This doesn't work for me because it still starts fastfetch when I start tmux which is what I wanted to avoid
@fiore@brain.worm.pink
I did and the things I could try from reading it didn;t work :(
if test "$(cat /proc/$PPID/cmdline | (read -d '' parent; printf '%s' "$parent"))" = xfce4-terminal; then
neofetch
fi
this will check who is the parent of the shell and only execute the command if it’s the terminal emulator in question
replace xfce4-terminal with kitty (i use the former) and neofetch with fastfetch (i’m stuck in the stone age)
@fiore @raccoon @rose the only novel thing compared to [ it adds is regex .. everything else can be done by just combining multiple invocations of [ with the usual shell operators
and if u need regex u can use grep instead, it’s gonna be considerably slower but if your writing shell your not writing 4 speed anyway
@fiore @raccoon @kimapr you can also make your terminal set its own environment variable so you can make execution conditional in your shell rc based on that variable
e.g. konsole is integrated into different applications like dolphin, kdevelop and others, so the parent process might not always be “konsole”. but it has a concept of profiles that can be switched between, and each profile can have its own settings for environment variables, shell command, behavior, appearance etc. — i think it’s a neat feature@lucy@netzsphaere.xyz @eris@p.enes.lv
I must confess, I'm a bit puzzled too.
@eris@p.enes.lv @lucy@netzsphaere.xyz
Lucy be like: yeah have this elegant, simple solution I just threw together without even needing to test it because I'm THAT talented
@lucy@netzsphaere.xyz @eris@p.enes.lv
Lucy if I could hire you I would hire you for just existing because you're doing us all a favor for being around