summaryrefslogtreecommitdiff
path: root/Biz/Bild/ShellHook.sh
blob: c2e191a284086101aa7fcd66ee39e3e9e3abe049 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
##
  function tips() {
    echo ""
    echo "bizdev" | figlet | lolcat
    echo ""
    echo "   bild   compile code"
    echo "   repl   start a repl"
    echo "   ci     run all builds and tests"
    echo "   deps   manage dependencies with niv"
    echo "   tips   show this message"
    echo "   lint   auto-lint all changed files"
    echo "   push   send a namespace to the cloud"
    echo "   ship   lint, bild, and push one (or all) namespace(s)"
  }
#
  alias runghc="runghc --ghc-arg=-i\$BIZ_ROOT"
  alias guile="guile -L \$BIZ_ROOT"
  alias tree="tree -I _ -F"
# configure git hooks
  git config --local core.hooksPath "$BIZ_ROOT/Biz/Ide/hooks"
#
  function deps() {
    niv --sources-file "$BIZ_ROOT/Biz/Bild/Sources.json" "$@"
  }
#
# Poor man's ci
  alias ci="$BIZ_ROOT/Biz/Ide/hooks/pre-push"
#
#
  tips
##