aboutsummaryrefslogtreecommitdiffstats
path: root/.zshrc-linux
diff options
context:
space:
mode:
authorshmibs <shmibs@gmail.com>2015-07-24 17:19:29 -0700
committershmibs <shmibs@gmail.com>2015-07-24 17:19:29 -0700
commit74495ab4c2aff7dc618b021990ce098dafbd22ad (patch)
treef6bfe1576caac08cd760a1eda6828b264383d3d1 /.zshrc-linux
parent94c7d964e1a52507fdf36b364c6cf8bd50c7bf47 (diff)
downloaddotfiles-74495ab4c2aff7dc618b021990ce098dafbd22ad.tar.gz
ACTUALLY fix send (...i hope?)
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 bf95ebe..0e7daa3 100644
--- a/.zshrc-linux
+++ b/.zshrc-linux
@@ -62,11 +62,12 @@ scap() {
send() {
if [[ "$1" ]]; then
scp $@ shmibbles.me:http/tmp/
- 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)"\
+ basename=$(basename $name)
+ ssh shmibbles.me "cd http/tmp; chmod o+r '$basename'"
+ name=$(echo "http://shmibbles.me/tmp/$basename"\
| sed 's/ /%20/g')
echo $name | tr -d '\n' | xclip -i -selection clipboard
echo $name | tr -d '\n' | xclip -i -selection primary