dotfiles

Unnamed repository; edit this file 'description' to name the repository.
git clone git://edryd.org/dotfiles
Log | Files | Refs

commit ca1714bc2f0fd678e151250f4a70ce6ed172c634
parent 1b17cd489dcadb68718ac776518f717f0849a291
Author: Ed van Bruggen <edvb54@gmail.com>
Date:   Sun, 10 Aug 2014 03:27:26 -0700

Bin: Add todoium script

Diffstat:
bashrc | 1+
bin/todoium | 24++++++++++++++++++++++++
2 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/bashrc b/bashrc @@ -126,6 +126,7 @@ alias v='xmodmap ~/.vim-keys.xmodmap' alias emacs='emacs -nw' alias vless='vim -u /usr/share/vim/vim74/macros/less.vim' alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' +alias t='todoium' ipls () { ifconfig | grep 'inet addr:' | awk {'print $2'} diff --git a/bin/todoium b/bin/todoium @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +# manually change this path if you want to use your own folder +tododir="$HOME/.todo/" + +# make sure $tododir exists +if [ ! -d $tododir ]; then + echo -n "Warning: $tododir Does Not Exist, Making it For You ... " + mkdir $tododir + echo "done" +fi + +# handle options and file creation +# use `todoium -l` to list your todos +if [[ $1 == -l ]]; then + echo "`ls $tododir`" +# use `todoium -p` to echo where the todos are being stored +elif [[ $1 == -p ]]; then + echo $tododir +# if no options is specified then use $1 to create file +else + touch $tododir$1 +fi +