diff --git a/README.adoc b/README.adoc index 504c891..58891a6 100644 --- a/README.adoc +++ b/README.adoc @@ -42,4 +42,19 @@ Better try modifications with a new user to keep the defaul user accessible to t See below links to proceed. * https://aws.amazon.com/de/premiumsupport/knowledge-center/new-user-accounts-linux-instance/ -* https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#retrieving-the-public-key \ No newline at end of file +* https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html#retrieving-the-public-key + +=== Uberspace + +Alternative way to include .sshrc by detecting SSH connection. + +[source,bash] +---- +# User specific aliases and functions +if [ -f ~/.sshrc ] && [ -z "$SSH_CLIENT" ]; then + echo "Not a ssh connection" +else + echo "ssh client is present: $SSH_CLIENT" + . ~/.sshrc +fi +----