diff options
author | shmibs <shmibs@gmail.com> | 2014-04-30 19:58:09 -0700 |
---|---|---|
committer | shmibs <shmibs@gmail.com> | 2014-04-30 19:58:09 -0700 |
commit | 6c99aa6336dc92b4aeb4eb77cbe9853ad3de45b2 (patch) | |
tree | a9df4eea157cc05476d07466532a892d7769fd3f /.bashrc | |
parent | 6ad6dc3e7002415f59e514794fad2726e25ddc62 (diff) | |
download | dotfiles-6c99aa6336dc92b4aeb4eb77cbe9853ad3de45b2.tar.gz |
updated send/sendi functions
now i just have to set the tmp directory to
auto purge old stuff
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -46,7 +46,9 @@ send() { scp $@ shmibbles.me:/srv/http/tmp/ for name in "$@" do - echo "http://shmibbles.me/tmp/$(basename $name)" | xclip -i -selection clipboard + name=$(echo "http://shmibbles.me/tmp/$(basename $name)" | sed 's/ /%20/g') + echo $name | xclip -i -selection clipboard + echo $name | xclip -i -selection primary done } @@ -54,7 +56,9 @@ sendi() { scp $@ shmibbles.me:/srv/http/img/ for name in "$@" do - echo "http://shmibbles.me/img/$(basename $name)" | xclip -i -selection clipboard + name=$(echo "http://shmibbles.me/img/$(basename $name)" | sed 's/ /%20/g') + echo $name | xclip -i -selection clipboard + echo $name | xclip -i -selection primary done } |