my_config/add_ssh_config
2023-04-30 13:37:26 +02:00

13 lines
324 B
Bash
Executable File

#!/bin/zsh
#
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
if [[ (-e ~/.ssh/config) ]]; then
echo "A ssh configuration already exists (~/.ssh/config)"
echo "Remove this configuration and start the script again"
else
echo "Creating link"
ln -vs $SCRIPTPATH/.ssh/config ~/.ssh/config
fi