Browse Source

Added Mac OS specific configs, conf.sh for machine-specific configs

R. Alex Matevish 7 years ago
parent
commit
d13dee5a02
4 changed files with 14 additions and 7 deletions
  1. 1 0
      .gitignore
  2. 2 1
      install.sh
  3. 6 0
      mac.sh
  4. 5 6
      main.sh

+ 1 - 0
.gitignore

@@ -1,3 +1,4 @@
 *_secret.sh
 common.sh
+conf.sh
 

+ 2 - 1
install.sh

@@ -1,7 +1,8 @@
 #!/bin/bash
 
 OUTPUT_FILE="./common.sh"
-declare -a INSTALLED=("git"  "main"  "networking"  "python"  "ruby"  "ssh"  "svn"  "webdev" "aws")
+declare -a INSTALLED=("conf")
+INSTALLED+=("git" "main" "networking" "ssh" "webdev" "granular_secret")
 
 # Remove old outputed file
 if [ -f $OUTPUT_FILE ]

+ 6 - 0
mac.sh

@@ -0,0 +1,6 @@
+
+# Record audio files
+function record() {
+  sox -d $1
+}
+

+ 5 - 6
main.sh

@@ -5,7 +5,6 @@ alias isodate='date -u +"%Y-%m-%dT%H:%M:%SZ"'
 # prepend an iso timestamp (requires moreutils)
 alias tsp="ts '[%Y-%m-%dT%H:%M:%S:%SZ]'"
 
-
 # You may need to manually set your language environment
 export LANG=en_US.UTF-8
 
@@ -22,7 +21,11 @@ function killit () {
 }
 
 # Mount reginald public folder
-alias mount-public='umount ~/Mounts/public;  mkdir -p ~/Mounts/public  && sshfs matevi.sh:/var/www/files ~/Mounts/public -oreconnect,defer_permissions,volname=reginald-public'
+export PUBLIC_MOUNT_DIR='~/Mounts/public'
+function mount-public() {
+    umount $PUBLIC_MOUNT_DIR;
+    mkdir -p ~/Mounts/public && sshfs matevi.sh:/var/www/file $PUBLIC_MOUNT_DIR -oreconnect,defer_permissions,volname=reginald-public;
+}
 
 # Keep stuff out of history
 function offrecord() {
@@ -32,7 +35,3 @@ function onrecord() {
     fc -P;
 }
 
-# Record audio files
-function record() {
-  sox -d $1
-}