added gclone command and documented my zeptorc file

This commit is contained in:
hellerve
2016-09-02 19:57:47 +02:00
parent b0dbbb19e3
commit 541c1ddddc
2 changed files with 16 additions and 1 deletions

13
zeptorc
View File

@@ -1,6 +1,17 @@
(zepto:add-to-path (++ (get-home-dir) "/.zeps/")) (zepto:add-to-path (++ (get-home-dir) "/.zeps/"))
(define col (lambda (x) (color x #{:to-str #t})))
(define (*prompt*) (define (*prompt*)
"my personal prompt customization
complexity: O(1)
returns: the prompt string"
(define col (lambda (x) (color x #{:to-str #t})))
(++ (col :blue) (col :bold) "zepto [" (->string *statement-count*) "]> " (col :reset))) (++ (col :blue) (col :bold) "zepto [" (->string *statement-count*) "]> " (col :reset)))
(define (*ret*) (define (*ret*)
"my personal return customization
complexity: O(1)
returns: the return string"
(define col (lambda (x) (color x #{:to-str #t})))
(++ (col :red) (col :bold) "=[" (->string *statement-count*) "]> " (col :reset))) (++ (col :red) (col :bold) "=[" (->string *statement-count*) "]> " (col :reset)))

4
zshrc
View File

@@ -412,6 +412,10 @@ elif type compctl &>/dev/null; then
fi fi
###-end-npm-completion-### ###-end-npm-completion-###
function gclone {
git clone https://github.com/$1
}
function zeptosay () { function zeptosay () {
x=`fortune` x=`fortune`
zepto ~/.scripts/zeptosay.zp $x zepto ~/.scripts/zeptosay.zp $x