Skip to content

Instantly share code, notes, and snippets.

View wyderkat's full-sized avatar

Tomasz Wyderka wyderkat

View GitHub Profile
@wyderkat
wyderkat / sshs.sh
Last active December 17, 2015 04:59 — forked from jonahbron/sshs.sh
# Wrapper for ssh to automatically source bash config file on remote machine.
# Sources ~/.bashrc
#
# Copyright Jonah Dahlquist
# License CC0
sshs() {
remote_rc="/tmp/.bashrc-$USER"
ssh ${*:1} ""
ssh -t ${*:1} "bash --rcfile $remote_rc ; rm $remote_rc"