This commit is contained in:
Thomas Forgione 2024-06-21 17:52:13 +02:00
parent 3ff0c82b3f
commit b45049ac27
3 changed files with 5 additions and 6 deletions

View File

@ -4,6 +4,5 @@ WINDOW_ID=$(xdotool getactivewindow)
WM_NAME=$(xprop -id $WINDOW_ID WM_NAME | cut -d '"' -f 2)
if [ -f $HOME/.config/terminalscwd/$WM_NAME.ssh ]; then
echo $(cat $HOME/.config/terminalscwd/$WM_NAME.ssh) > ~/toto.txt
alacritty -e sh -c "PARENT_TERMINAL=$WM_NAME ssh $(cat $HOME/.config/terminalscwd/$WM_NAME.ssh)"
fi

View File

@ -14,11 +14,6 @@
# Uncomment following line if you want to disable autosetting terminal title.
DISABLE_AUTO_TITLE="true"
if [ -z $TERMINAL_UUID ]; then
export TERMINAL_UUID=$(uuidgen)
fi
echo -en "\e]2;$TERMINAL_UUID\a"
# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"

View File

@ -1,4 +1,9 @@
if [ "$PRESERVE_SSH_CWD" = "true" ]; then
if [ -z $TERMINAL_UUID ]; then
export TERMINAL_UUID=$(uuidgen)
fi
echo -en "\e]2;$TERMINAL_UUID\a"
mkdir -p $HOME/.config/terminalscwd/
cd() {
builtin cd $1