Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

  • Loading branch information...
commit 5e6d035537cb0e027d307faef8b5917fadfd838a 2 parents 90b24ce + 298e124
Andrew Whitworth authored

Showing 2 changed files with 26 additions and 0 deletions. Show diff stats Hide diff stats

  1. +22 0 addons/git.sh
  2. +4 0 utils.sh
22 addons/git.sh
... ... @@ -0,0 +1,22 @@
  1 +# Utilities for working with git and github
  2 +
  3 +function github-get {
  4 + # TODO: $2 can be the local name of the folder
  5 + local HASSLASH=$(expr index "$1" /)
  6 + local PROJECTNAME=""
  7 + if [ "$HASSLASH" == "0" ]; then
  8 + PROJECTNAME=$1
  9 + git clone git@github.com:Whiteknight/${1}.git $WKPROJECTS/$1
  10 + else
  11 + local PROJECTNAME=${1##*/}
  12 + git clone git@github.com:${1}.git $WKPROJECTS/$PROJECTNAME
  13 + fi
  14 + pg $PROJECTNAME
  15 + git config push.default current
  16 +}
  17 +
  18 +function github-create {
  19 + echo "Not done"
  20 + # TODO: Create a new repo in $WKPROJECTS/$1, git init, push to github.
  21 + # TODO: Create default files README.pod, LICENSE for initial commit
  22 +}
4 utils.sh
@@ -79,6 +79,10 @@ alias mj="make -j$WKNUMTHREADS"
79 79 alias ls="ls --color=auto"
80 80 alias ll="ls --color=auto -l"
81 81 alias la="ls --color=auto -a"
  82 +function cdl {
  83 + cd $*
  84 + ls
  85 +}
82 86
83 87 # Pick an editor to launch when I lazily type "e". Start with preferences
84 88 WKEDITORLIST=( gedit kwrite medit )

0 comments on commit 5e6d035

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