20 lines
466 B
Bash
Executable File
20 lines
466 B
Bash
Executable File
#!/bin/bash
|
|
#function set-title() {
|
|
# if [[ -z "$ORIG" ]]; then
|
|
# ORIG=$PS1
|
|
# fi
|
|
# TITLE="\[\e]2;$*\a\]"
|
|
# PS1=${ORIG}${TITLE}
|
|
#}
|
|
#set-title "chrome terminal"
|
|
|
|
|
|
#gnome-terminal -x sh -c "export XDG_RUNTIME_DIR=/run/user/$UID; su - $1 -c chrome"
|
|
if [ -z "$1" ]
|
|
then
|
|
USER=$(zenity --entry --text="Enter user name for opening gnome-terminal")
|
|
else
|
|
USER=$1
|
|
fi
|
|
ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -Y -l $USER localhost gnome-terminal
|