Added .bashrc part of uberspace example.
This commit is contained in:
parent
4d68bb30ea
commit
4ce29bbf36
15
README.adoc
15
README.adoc
@ -43,3 +43,18 @@ 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
|
||||
|
||||
=== 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
|
||||
----
|
||||
|
||||
Loading…
Reference in New Issue
Block a user