Created
December 14, 2009 01:14
Revisions
-
hara-y-u revised this gist
Dec 14, 2009 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,5 @@ #!/bin/sh #hoard.sh: Private twitter on the shell #usage: # hoard "some string here": for store your hoard into file # hoard -s: hoard: for See your recent hoard -
hara-y-u revised this gist
Dec 14, 2009 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@ #!/bin/sh #Local twitter on the shell #usage: # hoard "some string here": for store your hoard into file -
hara-y-u revised this gist
Dec 14, 2009 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -2,7 +2,7 @@ #Local twitter on the shell #usage: # hoard "some string here": for store your hoard into file # hoard -s: hoard: for See your recent hoard # hoard -e: for Edit your recent hoard #Change these lines for your System. -
hara-y-u created this gist
Dec 14, 2009 .There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,41 @@ #/bin/sh #Local twitter on the shell #usage: # hoard "some string here": for store your hoard into file # hoard -s: for See your recent hoard # hoard -e: for Edit your recent hoard #Change these lines for your System. hoarddir="/Users/$USER/Documents/Hoard/" hoardfile="`date +%Y%m`.txt" myPager="lv" myEditor="vi" while getopts "se" opt do case $opt in s ) $myPager "$hoarddir$hoardfile" exit 0 ;; e ) $myEditor "$hoarddir$hoardfile" exit 0 ;; esac done # Store string in hoardstr hoardstr=$* if [ -z "$hoardstr" ]; then $myPager "$hoarddir$hoardfile" exit 0 fi pushd "$hoarddir" hoardstr="$hoardstr [`date +%D-%H:%M`]" echo "$hoardstr" >> "$hoardfile" popd exit 0