diff --git a/custom/example.zsh b/custom/example.zsh deleted file mode 100644 index c505a9673..000000000 --- a/custom/example.zsh +++ /dev/null @@ -1,10 +0,0 @@ -# You can put files here to add functionality separated per file, which -# will be ignored by git. -# Files on the custom/ directory will be automatically loaded by the init -# script, in alphabetical order. - -# For example: add yourself some shortcuts to projects you often work on. -# -# brainstormr=~/Projects/development/planetargon/brainstormr -# cd $brainstormr -# diff --git a/lib/bcbsnc.zsh b/lib/bcbsnc.zsh new file mode 100644 index 000000000..29d584f44 --- /dev/null +++ b/lib/bcbsnc.zsh @@ -0,0 +1,55 @@ +function login () { + mkdir /Volumes/iwserver + mount -t smbfs //u102084@wcms/iwserver /Volumes/iwserver +} + +function livereload() { + serve $1 +} + +function serve() { + serve_path=`pwd` + if [ -z "$1" ]; then + serve_path="$1" + echo "SERVE PATH: $serve_path" + fi + echo "==================================================" + echo "Starting livereload server for $serve_path" + echo "==================================================" + echo "" + lr-http-server -d $serve_path -w **/*.js,**/*.css,**/*.html,**/*.htm,**/*.xml,**/*.svg +} + +function wcms() { + login() + open -a Firefox http://wcms/iw-cc/command/iw.ui +} + +function work() { + echo "==================================================" + echo "Starting work in `pwd`" + echo "==================================================" + echo "" + echo "==================================================" + echo "Open in Sublime" + echo "==================================================" + work_dir=`pwd` + subl $work_dir + serve $work_dir +} + +function get() { + if [ -z "$1" ]; then + echo usage: $0 \ + exit + else + cd ~/Source + git clone $1 + fi +} + +export JIRA_URL="https://weboffice.atlassian.net" +export JIRA_NAME="nick.harris" +export JIRA_PREFIX="BC" +# export $JIRA_RAPID_BOARD="false" +# export $JIRA_DEFAULT_ACTION - Action to do when jira is called with no arguments; defaults to "new" diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh index ed258f0ea..63cfccf5d 100644 --- a/oh-my-zsh.sh +++ b/oh-my-zsh.sh @@ -31,6 +31,7 @@ fi for config_file ($ZSH/lib/*.zsh); do custom_config_file="${ZSH_CUSTOM}/lib/${config_file:t}" [ -f "${custom_config_file}" ] && config_file=${custom_config_file} + source $config_file done diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh old mode 100644 new mode 100755 diff --git a/tools/uninstall.sh b/tools/uninstall.sh old mode 100644 new mode 100755 diff --git a/tools/upgrade.sh b/tools/upgrade.sh old mode 100644 new mode 100755