diff options
Diffstat (limited to 'etc/functions')
-rwxr-xr-x | etc/functions/countdown | 5 | ||||
-rwxr-xr-x | etc/functions/git-hook | 2 | ||||
-rwxr-xr-x | etc/functions/gtd-move | 3 | ||||
-rwxr-xr-x | etc/functions/off | 4 | ||||
-rw-r--r-- | etc/functions/progress | 2 | ||||
-rwxr-xr-x | etc/functions/put | 2 | ||||
-rwxr-xr-x | etc/functions/rtab | 7 |
7 files changed, 21 insertions, 4 deletions
diff --git a/etc/functions/countdown b/etc/functions/countdown index a4c4a26..c52f418 100755 --- a/etc/functions/countdown +++ b/etc/functions/countdown @@ -1,4 +1,9 @@ ## vim:ft=zsh +## Countdown to a specific date/time +## Usage: countdown <string understood by 'date -d'> +## Copyright (C) 2008 by Daniel Friesel <derf@derf.homelinux.org> +## License: WTFPL <http://sam.zoy.org/wtfpl> + autoload check_com typeset -i beep=0 typeset -i seconds diff --git a/etc/functions/git-hook b/etc/functions/git-hook index 3d0c705..86c2bbb 100755 --- a/etc/functions/git-hook +++ b/etc/functions/git-hook @@ -1,5 +1,7 @@ ## vim:ft=zsh ## Small function to help with git hooks +## Copyright (C) 2008 by Daniel Friesel <derf@derf.homelinux.org> +## License: WTFPL <http://sam.zoy.org/wtfpl> autoload fdie typeset hook_dir action=${1=list} hook=$2 diff --git a/etc/functions/gtd-move b/etc/functions/gtd-move index c9eee09..56a861d 100755 --- a/etc/functions/gtd-move +++ b/etc/functions/gtd-move @@ -1,4 +1,7 @@ ## vim:ft=zsh +## Helper for my gtd system +## Copyright (C) 2008 by Daniel Friesel <derf@derf.homelinux.org> +## License: WTFPL <http://sam.zoy.org/wtfpl> if [[ ${#*} != 3 ]] { echo "Usage: gtd-move <from-database> <item> <to-database>" diff --git a/etc/functions/off b/etc/functions/off index 97363dc..12555d3 100755 --- a/etc/functions/off +++ b/etc/functions/off @@ -1,4 +1,8 @@ ## vim:ft=zsh +## Small shutdown/reboot wrapper to work together with my other tools +## Copyright (C) 2008 by Daniel Friesel <derf@derf.homelinux.org> +## License: WTFPL <http://sam.zoy.org/wtfpl> + autoload warn fdie typeset filesystem line IFS=$'\n' typeset -a filesystems diff --git a/etc/functions/progress b/etc/functions/progress index d23caea..d472e54 100644 --- a/etc/functions/progress +++ b/etc/functions/progress @@ -1,6 +1,8 @@ ## vim:ft=zsh ## progress - draw a simple progress bar ## Usage: progress <current> <max> [left description] [right discription] +## Copyright (C) 2008 by Daniel Friesel <derf@derf.homelinux.org> +## License: WTFPL <http://sam.zoy.org/wtfpl> typeset -i current=$1 typeset -i max=$2 diff --git a/etc/functions/put b/etc/functions/put index 93ecec0..a24be62 100755 --- a/etc/functions/put +++ b/etc/functions/put @@ -2,6 +2,8 @@ ## put - make a file available via HTTP ## supports as many 'failover' hosts as an array can hold ## Usage: put <file> +## Copyright (C) 2008 by Daniel Friesel <derf@derf.homelinux.org> +## License: WTFPL <http://sam.zoy.org/wtfpl> autoload check_com fdie warn typeset hostname diff --git a/etc/functions/rtab b/etc/functions/rtab index 150aee4..920f881 100755 --- a/etc/functions/rtab +++ b/etc/functions/rtab @@ -1,8 +1,7 @@ ## vim:ft=zsh -## reverse tabbing -## written 2008 by Daniel Friesel <derf@derf.homelinux.org> -## Licence: You just DO WHAT THE FUCK YOU WANT TO. -## https://derf.homelinux.org/~derf/dotfiles/zsh/functions/rtab +## reverse tabbing, useful in the prompt +## Copyright (C) 2008 by Daniel Friesel <derf@derf.homelinux.org> +## License: WTFPL <http://sam.zoy.org/wtfpl> ## CAVEAT: directory-names containing two or more consecutive spaces ## are not yet supported |