forked from ungleich-public/ccollect
15 lines
164 B
Bash
Executable file
15 lines
164 B
Bash
Executable file
#!/bin/sh
|
|
|
|
host="home.schottelius.org"
|
|
|
|
pcmd()
|
|
{
|
|
if [ "$host" ]; then
|
|
ssh "$host" "$@"
|
|
else
|
|
"$@"
|
|
fi
|
|
}
|
|
|
|
pcmd ls /
|
|
pcmd cd /; ls "/is not there"
|