aboutsummaryrefslogtreecommitdiffstats
path: root/.zshrc-linux
diff options
context:
space:
mode:
authorshmibs <shmibs@gmail.com>2015-07-19 13:04:31 -0700
committershmibs <shmibs@gmail.com>2015-07-19 13:04:31 -0700
commit38d0f0846d2573b59e6c3b5ca7822d8fea1d1d9b (patch)
tree0cdddfdc84b9c9e150a477c790aeceb529d4c900 /.zshrc-linux
parent591ce1d5e3009247f2417f86bc15555afc098a9d (diff)
downloaddotfiles-38d0f0846d2573b59e6c3b5ca7822d8fea1d1d9b.tar.gz
fix send
Diffstat (limited to '.zshrc-linux')
-rw-r--r--.zshrc-linux5
1 files changed, 3 insertions, 2 deletions
diff --git a/.zshrc-linux b/.zshrc-linux
index 6e295a4..bf95ebe 100644
--- a/.zshrc-linux
+++ b/.zshrc-linux
@@ -60,9 +60,10 @@ scap() {
# quickly send a file to hosted tmp dir
send() {
- if [ "$1" ]; then
+ if [[ "$1" ]]; then
scp $@ shmibbles.me:http/tmp/
- if [ $? -eq 0 ]; then
+ ssh shmibbles.me "cd http/tmp; chmod o+r '$@'"
+ if [[ $? -eq 0 ]]; then
for name in "$@"
do
name=$(echo "http://shmibbles.me/tmp/$(basename $name)"\