aboutsummaryrefslogtreecommitdiffstats
path: root/.bashrc
diff options
context:
space:
mode:
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc8
1 files changed, 6 insertions, 2 deletions
diff --git a/.bashrc b/.bashrc
index f5d894d..cd4502e 100644
--- a/.bashrc
+++ b/.bashrc
@@ -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
}