replace /home/something with /home/user
This commit is contained in:
parent
558b20509a
commit
8ffca7f6b5
|
@ -233,7 +233,8 @@ function o () {
|
|||
|
||||
function run_waypipe() {
|
||||
SSH_SESSION_ID=$RANDOM
|
||||
SSH_SESSION_ID=$SSH_SESSION_ID waypipe ssh -t $1 env REMOTE_PATH=\"$(pwd)\" SSH_SESSION_ID=$SSH_SESSION_ID "zsh --login"
|
||||
REMOTE_PATH=$(echo $(pwd) | sed "s|/home/[a-z]*|\$HOME|g")
|
||||
SSH_SESSION_ID=$SSH_SESSION_ID waypipe ssh -t $1 env REMOTE_PATH=\"$REMOTE_PATH\" SSH_SESSION_ID=$SSH_SESSION_ID "zsh --login"
|
||||
}
|
||||
|
||||
alias mallorea="run_waypipe mallorea"
|
||||
|
|
Loading…
Reference in New Issue