]> git.phdru.name Git - dotfiles.git/blobdiff - .bashrc
.bashrc, .shellrc: Move `cdgitpath`
[dotfiles.git] / .bashrc
diff --git a/.bashrc b/.bashrc
index ef3423fc6ac7a262add2802dc18179e36ea9fbc8..85cb4d87d8dbe099264af8d6b323b72131fb6576 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -196,26 +196,6 @@ trap '[ "$VIRTUAL_ENV" ] && deactivate' EXIT
 
 
 if test -x /usr/bin/git >/dev/null 2>&1; then
-    # chdir to a directory
-    cdgitpath() {
-        if [ $# -ne 1 ]; then
-            echo "Usage: cdgitpath path_key" >&2
-            return 1
-        fi
-
-        path_key="$1"
-        if [ -z "$path_key" ]; then
-            echo "Usage: cdgitpath path_key" >&2
-            return 1
-        fi
-
-        path_url="`git config --get --path $path_key`"
-        if echo "$path_url" | grep -q '^file:/'; then
-            path_url="`echo \"$path_url\" | sed 's@^file:/\+@/@'`"
-        fi
-        cd "$path_url"
-    }
-
     # chdir to a remote's directory (if the remote is on the local FS)
     cdremote() {
         if [ $# -gt 1 ]; then