sensible-terminal

This commit is contained in:
Shihaam Abdul Rahman 2023-07-31 08:52:48 +05:00
parent ce77f97011
commit cf08990f6d
Signed by: shihaam
GPG Key ID: 6DA2E87EBC227636
2 changed files with 5 additions and 6 deletions

View File

@ -1,7 +1,9 @@
#!/bin/bash
if [ -z "$1" ]; then
if [ "$1" = "-e" ]; then
shift # Remove the first argument (-e) from the argument list
command_args="$*"
/sbin/xfce4-terminal -e "$command_args"
elif [ -z "$1" ]; then
/sbin/xfce4-terminal
else
/sbin/xfce4-terminal -e "ssh $1"
fi

View File

@ -1,3 +0,0 @@
#!/bin/bash
/sbin/xfce4-terminal -e "ssh $1"