diff options
-rw-r--r-- | etc/colors | 1 | ||||
-rw-r--r-- | etc/function | 6 | ||||
-rw-r--r-- | etc/functions/die | 2 | ||||
-rw-r--r-- | etc/functions/info | 1 | ||||
-rw-r--r-- | etc/functions/warn | 1 |
5 files changed, 8 insertions, 3 deletions
@@ -1,6 +1,7 @@ ## Colors ## vim:ft=zsh local fail=$'\e[1;31m' +local warn=$'\e[1;33m' local info=$'\e[0;36m' local yellow=$'\e[0;33m' local green=$'\e[0;32m' diff --git a/etc/function b/etc/function index 5bca1d9..7fa8a1d 100644 --- a/etc/function +++ b/etc/function @@ -1,6 +1,6 @@ -for i in $ZDIR/functions/*; { - autoload $i:t -} +autoload chpwd extr plonkhost world-readable youtube-watch +autoload gitd hgd +autoload xexport xsource autoload throw catch diff --git a/etc/functions/die b/etc/functions/die new file mode 100644 index 0000000..6aadfaf --- /dev/null +++ b/etc/functions/die @@ -0,0 +1,2 @@ +echo -e "${fail}${*}${reset}" +exit 1 diff --git a/etc/functions/info b/etc/functions/info new file mode 100644 index 0000000..b04951c --- /dev/null +++ b/etc/functions/info @@ -0,0 +1 @@ +echo -e "${info}${*}${reset}" diff --git a/etc/functions/warn b/etc/functions/warn new file mode 100644 index 0000000..ff8c7d3 --- /dev/null +++ b/etc/functions/warn @@ -0,0 +1 @@ +echo -e "${warn}${*}${reset}" |