From 4ffad3ac6c5259b975650cf1aeaaecb1fd255be3 Mon Sep 17 00:00:00 2001 From: shmibs Date: Wed, 28 May 2014 08:49:01 -0700 Subject: updated calc ans can now be used to refer to the previous answer value in a calculation --- .bash_aliases | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .bash_aliases (limited to '.bash_aliases') diff --git a/.bash_aliases b/.bash_aliases new file mode 100644 index 0000000..6d1796d --- /dev/null +++ b/.bash_aliases @@ -0,0 +1,46 @@ +#!/bin/bash + +export EDITOR="vim" +export PAGER="less -R" + +alias ls='ls --color=auto' +alias grep='grep --color=auto' +alias diff='colordiff' +alias less='less -R' + +alias vmount='udevil mount' +alias vumount='udevil umount' +alias def='sdcv' + +send() { + if [ "$1" ]; then + scp $@ shmibbles.me:/srv/http/tmp/ + if [ $? -eq 0 ]; then + for name in "$@" + do + name=$(echo "http://shmibbles.me/tmp/$(basename $name)" | sed 's/ /%20/g') + echo $name | tr -d '\n' | xclip -i -selection clipboard + echo $name | tr -d '\n' | xclip -i -selection primary + done + fi + else + echo "specify at least one file to send" + fi +} + +sendi() { + if [ "$1" ]; then + scp $@ shmibbles.me:/srv/http/img/ + if [ $? -eq 0 ]; then + for name in "$@" + do + name=$(echo "http://shmibbles.me/img/$(basename $name)" | sed 's/ /%20/g') + echo $name | tr -d '\n' | xclip -i -selection clipboard + echo $name | tr -d '\n' | xclip -i -selection primary + done + fi + else + echo "specify at least one file to send" + fi +} + -- cgit v1.2.3