Compare commits

...

2 Commits

Author SHA1 Message Date
4aa1631e50 clear screen before connect 2023-08-24 22:14:49 +02:00
6887350ce8 standard start directory 2023-08-24 22:13:52 +02:00
3 changed files with 4 additions and 1 deletions

5
s3h.sh
View File

@ -2,7 +2,7 @@
# config # config
DIALOG=dialog #gdialog kdialog DIALOG=dialog #gdialog kdialog
START_DIR='' START_DIR='~/.s3h'
if [[ $# -eq 1 && -d "$1" ]]; then if [[ $# -eq 1 && -d "$1" ]]; then
START_DIR="$1" START_DIR="$1"
@ -61,6 +61,9 @@ if [[ -f "$configFile" ]]; then
para+=($configLine) para+=($configLine)
done < "$configFile" done < "$configFile"
# clear screen // remove dialog colors
clear
# execute ssh # execute ssh
ssh ${para[@]} `basename "$configFile"` ssh ${para[@]} `basename "$configFile"`
fi fi

View File

View File