Skip to content

Instantly share code, notes, and snippets.

View jograb's full-sized avatar

Johann Grabmann jograb

View GitHub Profile
@jograb
jograb / sssh_remoterc.sh
Created July 24, 2016 18:51
Use a local .bashrc on a remote machine. For example for aliases. // Have to be placed @ .bashrc-file (local) Raw
sssh() {
name=$USER
ssh ${*:1} "cat > /tmp/.bashrc_$name" < ~/.bashrc_remote
ssh -t ${*:1} "bash --rcfile /tmp/.bashrc_$name ; rm /tmp/.bashrc_$name"
}

Keybase proof

I hereby claim:

  • I am jograb on github.
  • I am johann (https://keybase.io/johann) on keybase.
  • I have a public key ASAYOZTefofdTZHMeOkTqZkAWWYZVO1qZWTjiu7RvJxN_Ao

To claim this, I am signing this object: