changeset 642:b52004eb7761

no more moz
author Jeff Hammel <k0scist@gmail.com>
date Tue, 11 Mar 2014 11:38:45 -0700
parents 15c20cfc6b22
children a5cd31e0b8e7
files .bash_mozilla .bashrc
diffstat 2 files changed, 5 insertions(+), 78 deletions(-) [+]
line wrap: on
line diff
--- a/.bash_mozilla	Mon Mar 10 16:40:47 2014 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,71 +0,0 @@
-#!/bin/bash
-
-# mozilla-specific bash customizations
-
-# mozilla env vairables
-export MOZCONFIG=~/mozilla/mozconfigs/mozconfig
-export MOZSOURCE=~/mozilla/src/mozilla-central
-export MOZOBJ=~/mozilla/src/obj-browser
-unsetmozenv() {
-unset MOZCONFIG
-unset MOZSOURCE
-unset MOZOBJ
-env | sort
-}
-MOZCONFIGS=${HOME}/mozilla/mozconfigs
-MOZSRC=${HOME}/mozilla/src
-
-mozconfig() {
-
-if [ ! -e ${MOZCONFIGS} ]
-then
-    echo "MOZCONFIGS directory ${MOZCONFIGS} does not exist"
-    return 1
-fi
-
-if [[ "$#" == "0" ]]
-then
-    # list the available configs
-    ls -1 ${MOZCONFIGS} | sort
-elif [[ "$#" == "1" ]]
-then
-    # activate the chosen mozconfig
-    name=$1
-    for _MOZCONFIG in "${MOZCONFIGS}/${name}" "${MOZCONFIGS}/mozconfig.${name}"
-    do
-        if [[ -e "${_MOZCONFIG}" ]]
-        then
-            break
-        fi
-    done
-    if [[ ! -e "${_MOZCONFIG}" ]]
-    then
-        echo "MOZCONFIG ${name} not found"
-        return 1
-    fi
-
-    # get name of file
-    filename=$(basename $_MOZCONFIG)
-    if [[ "${filename}" == *.* ]]
-    then
-        name="${filename##*.}"
-        prefix="${name}"
-    else
-        name=".default."
-        prefix="obj"
-    fi
-
-    # set environment variables
-    export MOZCONFIG=${_MOZCONFIG}
-    export PS1="[${name}]${PS1}"
-
-    # print info
-    echo "Using MOZCONFIG=${MOZCONFIG} [${name}] :"
-    cat "${MOZCONFIG}"
-else
-    # print usage
-    echo "Usage: mozconfig <configname>"
-    return 1
-fi
-
-}
\ No newline at end of file
--- a/.bashrc	Mon Mar 10 16:40:47 2014 -0700
+++ b/.bashrc	Tue Mar 11 11:38:45 2014 -0700
@@ -48,12 +48,6 @@
     . ~/.bashttw
 fi
 
-# bzconsole aliases for filing bugs
-alias mozbase-bug="bz new Mozbase --cc ':wlach'"
-alias mozbuild-bug="bz new --product Core 'Build Config' --cc ':gps'"
-alias mozharness-bug="bz new --product 'Release Engineering' 'General Automation' --cc ':aki' --whiteboard 'mozharness'"
-alias talos-bug="bz new Talos --cc ':jmaher'"
-
 # notification: from
 # http://www.netinfinity.org/2013/02/4/bits-and-pieces-ubuntu-terminal-notification.html
 alias alert_helper='history|tail -n1|sed -e "s/^\s*[0-9]\+\s*//" -e "s/;\s*alert$//"'
@@ -245,6 +239,7 @@
 }
 
 abspath() {
+    # print absolute path
     python -c "import os; print (os.path.realpath('$*'))"
 }
 
@@ -383,10 +378,12 @@
 }
 
 distribute() {
+    # upload to pypi
     python setup.py egg_info -RDb "" sdist register upload develop
 }
 
 nearest-venv() {
+# find the nearest venv
 if [[ "$#" == "0" ]]
 then
 directory=$PWD
@@ -411,6 +408,7 @@
 }
 
 activate-nearest() {
+# activate the nearest virtualenv
 nearest=$(nearest-venv)
 activate=${nearest}/bin/activate
 if [ -e "${activate}" ]
@@ -573,7 +571,7 @@
 }
 
 quotemail() {
-
+    # TODO: -> textshaper
 command='s/^/> /'
 inplace=""
 if [ "$#" == "2" ]