Command to send stuff to hermes
This commit is contained in:
24
zsh/.zshrc
24
zsh/.zshrc
@@ -22,6 +22,30 @@ alias oc="opencode"
|
|||||||
# Hermes Agent - SSH directly to remote server
|
# Hermes Agent - SSH directly to remote server
|
||||||
alias hermes="ssh -t lazyworkhorse 'docker exec -it hermes /opt/hermes/.venv/bin/hermes'"
|
alias hermes="ssh -t lazyworkhorse 'docker exec -it hermes /opt/hermes/.venv/bin/hermes'"
|
||||||
|
|
||||||
|
hermes-cp() {
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
echo "Usage: hermes-cp <file_or_directory> [...]"
|
||||||
|
echo ""
|
||||||
|
echo "Copies files/directories from your Arch laptop into the Hermes"
|
||||||
|
echo "agent container at /opt/data/home/ preserving directory structure."
|
||||||
|
echo ""
|
||||||
|
echo "Examples:"
|
||||||
|
echo " hermes-cp document.pdf # single file"
|
||||||
|
echo " hermes-cp *.pdf # multiple files (glob)"
|
||||||
|
echo " hermes-cp manuals/ # whole directory"
|
||||||
|
echo " hermes-cp manuals/ keyence-docs/ # multiple items"
|
||||||
|
echo ""
|
||||||
|
echo "To copy to a different destination inside the container:"
|
||||||
|
echo " tar -czf - . | ssh gortium@lazyworkhorse \\"
|
||||||
|
echo " \"docker exec -i hermes sh -c 'cd /opt/data/projects && tar -xzf -'\""
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
# tar everything into a single SSH pipe, extract inside container
|
||||||
|
# Supports: single files, directories, glob patterns, mixed args
|
||||||
|
tar -czf - "$@" | ssh gortium@lazyworkhorse \
|
||||||
|
"docker exec -i hermes sh -c 'cd /opt/data/home && tar -xzf -'"
|
||||||
|
}
|
||||||
|
|
||||||
# Yazi
|
# Yazi
|
||||||
alias y="yazi"
|
alias y="yazi"
|
||||||
function yy() {
|
function yy() {
|
||||||
|
|||||||
Reference in New Issue
Block a user