blob: a6bbbbb3ce9560beab352826ba653378b32a5734 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/sh
# Helper script to execute commands on remote host
[ -n "$1" ] || (echo "Specify command to run" && exit 0)
host=$(cat $HOME/.config/exremote/host)
ssh "$host" "source /home/$(whoami)/.profile 2> /dev/null && $1"
|