diff options
-rw-r--r-- | .Xresources | 2 | ||||
-rw-r--r-- | .bashrc | 8 |
2 files changed, 7 insertions, 3 deletions
diff --git a/.Xresources b/.Xresources index e81fc18..bf458e8 100644 --- a/.Xresources +++ b/.Xresources @@ -166,7 +166,7 @@ URxvt*scrollBar: false ! URxvt*scrollTtyKeypress: boolean ! Save number lines in the scrollback buffer [default 64]. This resource is limited on most machines to 65535; option -sl. -! URxvt*saveLines: number +URxvt*saveLines: 16384 ! Internal border of number pixels. This resource is limited to 100; option -b. ! URxvt*internalBorder: number @@ -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 } |