Skip to content
Browse files

Merge branch 'master' of git@github.com:Whiteknight/utils

  • Loading branch information...
2 parents 90b24ce + 298e124 commit 5e6d035537cb0e027d307faef8b5917fadfd838a @Whiteknight committed Feb 5, 2010
Showing with 26 additions and 0 deletions.
  1. +22 −0 addons/git.sh
  2. +4 −0 utils.sh
View
22 addons/git.sh
@@ -0,0 +1,22 @@
+# Utilities for working with git and github
+
+function github-get {
+ # TODO: $2 can be the local name of the folder
+ local HASSLASH=$(expr index "$1" /)
+ local PROJECTNAME=""
+ if [ "$HASSLASH" == "0" ]; then
+ PROJECTNAME=$1
+ git clone git@github.com:Whiteknight/${1}.git $WKPROJECTS/$1
+ else
+ local PROJECTNAME=${1##*/}
+ git clone git@github.com:${1}.git $WKPROJECTS/$PROJECTNAME
+ fi
+ pg $PROJECTNAME
+ git config push.default current
+}
+
+function github-create {
+ echo "Not done"
+ # TODO: Create a new repo in $WKPROJECTS/$1, git init, push to github.
+ # TODO: Create default files README.pod, LICENSE for initial commit
+}
View
4 utils.sh
@@ -79,6 +79,10 @@ alias mj="make -j$WKNUMTHREADS"
alias ls="ls --color=auto"
alias ll="ls --color=auto -l"
alias la="ls --color=auto -a"
+function cdl {
+ cd $*
+ ls
+}
# Pick an editor to launch when I lazily type "e". Start with preferences
WKEDITORLIST=( gedit kwrite medit )

0 comments on commit 5e6d035

Please sign in to comment.
Something went wrong with that request. Please try again.