aboutsummaryrefslogtreecommitdiffstats
path: root/.zshrc-linux-desktop
diff options
context:
space:
mode:
authorkatherine <shmibs@shmibbles.me>2016-01-13 16:36:28 -0700
committerkatherine <shmibs@shmibbles.me>2016-01-13 16:36:28 -0700
commite34698116a493c34fa4b584e500e9c6b5f5dd74a (patch)
treecee9038c135f9052120139645a423e258aecfa73 /.zshrc-linux-desktop
parentc0255be3de8e984106881ad8955bc14774e4cc21 (diff)
downloaddotfiles-e34698116a493c34fa4b584e500e9c6b5f5dd74a.tar.gz
handle filenames with question marks
Diffstat (limited to '.zshrc-linux-desktop')
-rw-r--r--.zshrc-linux-desktop4
1 files changed, 2 insertions, 2 deletions
diff --git a/.zshrc-linux-desktop b/.zshrc-linux-desktop
index aee3aa5..ac3f992 100644
--- a/.zshrc-linux-desktop
+++ b/.zshrc-linux-desktop
@@ -33,8 +33,8 @@ send() {
do
basename=$(basename $name)
ssh shmibbles.me "cd http/tmp; chmod o+r '$basename'"
- name=$(echo "http://shmibbles.me/tmp/$basename"\
- | sed 's/ /%20/g')
+ name=$(echo "https://shmibbles.me/tmp/$basename"\
+ | sed -e 's/ /%20/g' -e 's/?/%3f/g')
echo $name | tr -d '\n' | xclip -i -selection clipboard
echo $name | tr -d '\n' | xclip -i -selection primary
done