29 lines
726 B
Bash
29 lines
726 B
Bash
#!/bin/bash
|
|
# abduco integration
|
|
# if [ "$TERM" = "xterm-kitty" ] && [ -z "$IN_ABDUCO" ] && [ -n "$PS1" ]; then
|
|
# A_SESSION_NAME="kitty-$$"
|
|
#
|
|
# cleanup_abduco_session() {
|
|
# pkill -f "abduco.*$A_SESSION_NAME" >/dev/null 2>&1
|
|
# }
|
|
# trap cleanup_abduco_session EXIT
|
|
#
|
|
# export IN_ABDUCO=1
|
|
# export A_SESSION_NAME
|
|
# abduco -A "$A_SESSION_NAME" bash -c "tput rmcup; exec bash"
|
|
#
|
|
# exit
|
|
# fi
|
|
|
|
# tmux integration
|
|
# if [ -z "$TMUX" ] && [ "$TERM" = "xterm-kitty" ]; then
|
|
# T_SESSION_NAME="kitty-$$"
|
|
#
|
|
# cleanup_tmux_session() {
|
|
# tmux kill-session -t "$T_SESSION_NAME" >/dev/null 2>&1
|
|
# }
|
|
# trap cleanup_tmux_session EXIT
|
|
#
|
|
# exec tmux new -s "$T_SESSION_NAME"
|
|
# fi
|