~/.bashrcã«æ¸ãã¦ããã°å¤ååããbash以å¤ã§åããã¯è©¦ãã¦ãªãã Macç¨ã«æ¸ãã¦ãã®ã§Linuxã¨ãã¯é©å®ã³ãã³ãã(notify-sendã¨ãã«)ç½®ãæãã¦ãã ããã function notify-last-command { # 3ç§ä»¥ä¸ããã£ããGrowlã§éç¥ãã if [ 3 -lt $MYDATETIME ]; then growlnotify -n notify-last-command -t command -m "$( history 1 | awk '{s="";for(i=2;i<=NF;i++){s=s" "$i}print s}' )" fi MYDATETIME=0 } PROMPT_COMMAND='notify-last-command' MYDATETIME=0 function time_spent () { MYDATETIME=$(e
{{#tags}}- {{label}}
{{/tags}}