Skip to content

Commit

Permalink
Add support for secondary acorn host.
Browse files Browse the repository at this point in the history
  • Loading branch information
drn committed Nov 1, 2024
1 parent 269da2e commit 8fd81da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/tor
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ if [ ${#torrents[@]} -eq 0 ]; then
echo -e "\033[00;31mNo torrents found\033[0m"
else
host="$ACORN_USERNAME@$ACORN_HOST"
if [ "$target" = "safe" ]; then
host="$ACORN_USERNAME@$ACORN_HOST2"
fi
destination="./downloads/torrents/$target"
for torrent in "${torrents[@]}"; do
echo -e "\033[00;34mUploading $torrent\033[0m"
Expand Down
1 change: 1 addition & 0 deletions zsh/aliases.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ alias data='tmux rename-window data 2>/dev/null; cd /Volumes/data'
alias 1pass='. 1pass'
alias acorn-misc="mkdir -p ~/Downloads/misc; scp -r \$ACORN_USERNAME@\$ACORN_HOST:~/downloads/misc/* ~/Downloads/misc"
alias acorn="ssh \$ACORN_USERNAME@\$ACORN_HOST"
alias acorn2="ssh \$ACORN_USERNAME@\$ACORN2_HOST"
alias binstubs='bundle install; bundle binstubs --path .bundle/bin --all'
alias cat='bat'
alias cgo='git ci-go'
Expand Down

0 comments on commit 8fd81da

Please sign in to comment.