https://github.com/smeghead/atnd
Attendance memo tool.
https://github.com/smeghead/atnd
Last synced: 2 months ago
JSON representation
Attendance memo tool.
- Host: GitHub
- URL: https://github.com/smeghead/atnd
- Owner: smeghead
- Created: 2011-05-15T23:53:46.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2011-06-07T01:22:47.000Z (almost 14 years ago)
- Last Synced: 2025-02-07T22:53:55.058Z (4 months ago)
- Language: Python
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
##Clone repo:
git clone [email protected]:smeghead/atnd.git attendance##Edit your .bashrc
export ATND_TOOL=/home/fukata/usr/local/attendance
export PATH=$PATH:$ATND_TOOL##Reload .bashrc:
source ~/.bashrc##Usage:
atnd [-h] [-l num] [-d ids] msg
###OPTIONS:
- -L display latest 10 messages.
- -l num display latest given count messages.
- -d ids delete messages. separated comma ID.
- -h show help.##Tips:
###when svn or git command execute, register atnd.(zsh only)
add below in ~/.zshrc
#for atnd
function precmd() {
lastcmd=$(history -n -1 | head -1)
case $(echo $lastcmd | cut -d ' ' -f 1) in
git|svn)
atnd "$lastcmd [$(pwd)]"
;;
esac
}###when svn or git command execute, register atnd.(bash only, simple version)
function precmd() {
lastcmd=$(history 1 | awk '{printf("%s %s %s %s %s\n", $2, $3, $4, $5, $6);}')
case $(echo $lastcmd | cut -d ' ' -f 1) in
git|svn)
atnd "$lastcmd [$(pwd)]"
;;
esac
}
PROMPT_COMMAND='precmd'