diff options
author | shmibs <shmibs@gmail.com> | 2014-05-28 08:49:01 -0700 |
---|---|---|
committer | shmibs <shmibs@gmail.com> | 2014-05-28 08:49:01 -0700 |
commit | 4ffad3ac6c5259b975650cf1aeaaecb1fd255be3 (patch) | |
tree | fd37665dad2eca4484f0978e6cf6750dea0cd348 /.bashrc | |
parent | f1ca9695d1d00955003af3c44b5aac5fbcce970b (diff) | |
download | dotfiles-4ffad3ac6c5259b975650cf1aeaaecb1fd255be3.tar.gz |
updated calc
ans can now be used to refer to the previous answer value in a
calculation
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 44 |
1 files changed, 1 insertions, 43 deletions
@@ -30,46 +30,4 @@ esac [ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion -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 -} +source ~/.bash_aliases |