pointfichiers/shell/bash/.bash_exec

39 lines
781 B
Bash
Raw Normal View History

2023-09-28 10:52:20 +02:00
#!/usr/bin/bash
# Start DE if on tty1
if [ "$(tty)" = /dev/tty1 ]; then
exec Hyprland-wrapper
fi
# Start DE if on tty1
if [ "$(tty)" = /dev/tty5 ]; then
exec gamescope -e -W 2560 -H 1440 -r 165 -- steam
fi
2024-08-18 18:57:43 +02:00
# Start in zellij by default
export ZELLIJ_AUTO_EXIT=true
export ZELLIJ_CONFIG_FILE=~/.config/zellij/config.kdl
2024-09-18 13:44:20 +02:00
# eval "$(zellij setup --generate-auto-start bash)"
2024-08-18 19:00:34 +02:00
# fnm
FNM_PATH="$HOME/.local/share/fnm"
if test -d "$FNM_PATH" ; then
export PATH="$FNM_PATH:$PATH"
eval "$(fnm env --use-on-cd)"
fi
# Prompt
if command -v starship > /dev/null; then
eval "$(starship init bash)"
fi
# Zoxide
if command -v zoxide > /dev/null; then
eval "$(zoxide init --cmd cd bash)"
fi
if command -v jaaj &> /dev/null && command -v dotacat &> /dev/null; then
jaaj
fi