Skip to content

Commit

Permalink
chore: implement command sync (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed Jun 12, 2021
1 parent 0fd636e commit 9b39bfa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/base.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

export SSH_CONFIG_FILE="${HOME}"/.ssh/config
export ASSH_FILE_SETTINGS="${HOME}"/.ssh/assh.yml
export SSH_PATH_CONF="${ZSH_SSH_PATH}"/conf
export SSH_MESSAGE_BREW="Please install brew or use antibody bundle hadenlabs/zsh-brew branch:develop"
export SSH_MESSAGE_NVM="Please install NVM or use antibody bundle hadenlabs/zsh-nvm branch:develop"

Expand Down
4 changes: 4 additions & 0 deletions internal/base.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ function ssh::internal::ssh::connect {
echo -e "ssh ${buffer}" | ghead -c -1 | pbcopy
fi
}

function ssh::internal::ssh::sync {
rsync -avzh --progress "${SSH_PATH_CONF}/" "${HOME}/.ssh/"
}
4 changes: 4 additions & 0 deletions pkg/base.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ function ssh::build {
function ssh::connect {
ssh::internal::ssh::connect
}

function ssh::sync {
ssh::internal::ssh::sync
}

0 comments on commit 9b39bfa

Please sign in to comment.