Skip to content

Commit

Permalink
alizator: create default ssh directory in github-pair if it doesn't e…
Browse files Browse the repository at this point in the history
…xists
  • Loading branch information
javier-lopez committed Jan 2, 2019
1 parent 755ffd2 commit 952a95a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aliazator/aliases/extra/curl.aliases
@@ -1,6 +1,6 @@
#curl
alias sprunge="curl -F 'sprunge=<-' http://sprunge.us"
alias down4me=sh\ -c\ \''curl -s "http://www.downforeveryoneorjustme.com/${1}" | sed "/just you/!d;s/<[^>]*>//g;s:&#x2F;:/:g" '\'\ -
alias github-pair='sh -c '\''curl -s https://github.com/"${1}".keys | grep -vi "not found" >> ~/.ssh/authorized_keys'\'' -'
alias github-pair='sh -c '\''mkdir -p ~/.ssh/; curl -s https://github.com/"${1}".keys | grep -vi "not found" >> ~/.ssh/authorized_keys'\'' -'
alias github-unpair='sh -c '\''curl -s https://github.com/"${1}".keys | grep -vi "not found" | grep -vf /dev/stdin .ssh/authorized_keys > /tmp/authorized_keys.tmp; mv /tmp/authorized_keys.tmp .ssh/authorized_keys'\'' -'
alias uploadpie='sh -c '\'' curl --progress-bar --upload-file "${1}" https://transfer.sh/$(basename "${1}")'\'' -'

0 comments on commit 952a95a

Please sign in to comment.