From 75baad96098e75e471bf9b5ca308c520d5a6ec43 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 13 Dec 2008 13:30:20 +0100 Subject: Updated function and completion file headers --- etc/functions/countdown | 5 +++++ etc/functions/git-hook | 2 ++ etc/functions/gtd-move | 3 +++ etc/functions/off | 4 ++++ etc/functions/progress | 2 ++ etc/functions/put | 2 ++ etc/functions/rtab | 7 +++---- 7 files changed, 21 insertions(+), 4 deletions(-) (limited to 'etc/functions') 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 +## Copyright (C) 2008 by Daniel Friesel +## License: 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 +## License: 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 +## License: WTFPL if [[ ${#*} != 3 ]] { echo "Usage: gtd-move " 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 +## License: 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 [left description] [right discription] +## Copyright (C) 2008 by Daniel Friesel +## License: 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 +## Copyright (C) 2008 by Daniel Friesel +## License: 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 -## 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 +## License: WTFPL ## CAVEAT: directory-names containing two or more consecutive spaces ## are not yet supported -- cgit v1.2.3