diff options
author | shmibs <shmibs@gmail.com> | 2015-07-07 16:13:25 -0700 |
---|---|---|
committer | shmibs <shmibs@gmail.com> | 2015-07-07 16:13:25 -0700 |
commit | 12f912e9ed0b5decb5e88941a631619652b3ee3e (patch) | |
tree | 76456ad601aa425f3dd0589158c208933062d2ab /.config/sxiv/exec/key-handler | |
parent | a459421d82cf6de64be597286d4e327902b8437e (diff) | |
download | dotfiles-12f912e9ed0b5decb5e88941a631619652b3ee3e.tar.gz |
make .zshrc portable
also remove extraneous commands
Diffstat (limited to '.config/sxiv/exec/key-handler')
-rwxr-xr-x | .config/sxiv/exec/key-handler | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/.config/sxiv/exec/key-handler b/.config/sxiv/exec/key-handler index 01ec679..11160af 100755 --- a/.config/sxiv/exec/key-handler +++ b/.config/sxiv/exec/key-handler @@ -24,16 +24,8 @@ do notify-send "uploaded $(basename $file) to /tmp/" fi ;; - "i") - scp "$file" shmibbles.me:http/img/ - if [ $? -ne 0 ]; then - notify-send "uploading $(basename $file) to /img/ failed" - else - name=$(echo "http://shmibbles.me/img/$(basename $file)" | sed 's/ /%20/g') - echo "$name" | tr -d '\n' | xclip -i -selection clipboard - echo "$name" | tr -d '\n' | xclip -i -selection primary - notify-send "uploaded $(basename $file) to /img/" - fi + *) + notify-send "command not recognised" ;; esac done |