Removed custom.bash and am now completely ignoring all files within the custom directory. Started de-macify to provide more support for linux (thanks to alsemyonov on github).
diff --git a/functions/base.funtions.bash b/functions/base.funtions.bash
index 4b41cce..d1f467d 100644
--- a/functions/base.funtions.bash
+++ b/functions/base.funtions.bash
@@ -6,22 +6,22 @@
function myip {
res=$(curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+')
- echo "Your public IP is: ${bold_green} $res ${normal}"
+ echo "Your public IP is: ${bold_green} $res ${normal}"
}
# View man documentation in Preview
pman () {
- man -t "${1}" | open -f -a /Applications/Preview.app/
+ man -t "${1}" | open -f -a $PREVIEW
}
pcurl() {
- curl "${1}" | open -f -a /Applications/Preview.app/
+ curl "${1}" | open -f -a $PREVIEW
}
pri() {
- ri -T "${1}" | open -f -a /Applications/Preview.app/
+ ri -T "${1}" | open -f -a $PREVIEW
}
diff --git a/functions/git.functions.bash b/functions/git.functions.bash
index a2607aa..9843253 100644
--- a/functions/git.functions.bash
+++ b/functions/git.functions.bash
@@ -18,3 +18,7 @@
function local-ignore() {
echo "$1" >> .git/info/exclude
}
+
+function gitignore() {
+ echo ".DS_Store" >> .gitignore
+}
\ No newline at end of file
diff --git a/functions/javascript.functions.bash b/functions/javascript.functions.bash
index f37859d..2e0b56c 100644
--- a/functions/javascript.functions.bash
+++ b/functions/javascript.functions.bash
@@ -1,4 +1,8 @@
#!/bin/bash
+#
+# The install directory is hard-coded. TOOD: allow the directory to be specified on the command line.
+#
+
function rails_jquery {
curl -o public/javascripts/rails.js http://github.com/rails/jquery-ujs/raw/master/src/rails.js