Clean
This commit is contained in:
parent
3ff0c82b3f
commit
b45049ac27
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue