-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkitty_startup.sh
More file actions
executable file
·25 lines (21 loc) · 894 Bytes
/
kitty_startup.sh
File metadata and controls
executable file
·25 lines (21 loc) · 894 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env bash
# SENTINEL Kitty Startup Script
# This script is executed when kitty starts a new shell session
# It ensures SENTINEL modules are loaded correctly in kitty
# Mark that we're starting in kitty
export SENTINEL_KITTY_PRIMARY_CLI=1
export SENTINEL_TERMINAL="kitty"
# Source kitty.rc if it exists
if [[ -f "${HOME}/kitty.rc" ]]; then
source "${HOME}/kitty.rc"
fi
# Ensure kitty integration module is loaded early
if [[ -f "${HOME}/bash_modules.d/kitty_integration.module" ]]; then
source "${HOME}/bash_modules.d/kitty_integration.module"
elif [[ -f "${SENTINEL_ROOT}/bash_modules.d/kitty_integration.module" ]]; then
source "${SENTINEL_ROOT}/bash_modules.d/kitty_integration.module"
fi
# Set kitty window title
if [[ -n "${KITTY_WINDOW_ID:-}" ]] && type sentinel_kitty_set_title &>/dev/null; then
sentinel_kitty_set_title "SENTINEL - $(basename "${PWD}")"
fi