This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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" |