X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=blobdiff_plain;f=.bashrc;fp=.bashrc;h=85cb4d87d8dbe099264af8d6b323b72131fb6576;hp=ef3423fc6ac7a262add2802dc18179e36ea9fbc8;hb=a090b02a21df5d04f3359a79d14eff3b4d72d934;hpb=2c9e8b23a92508c4fe13c9b43eae6274786f5aa9 diff --git a/.bashrc b/.bashrc index ef3423f..85cb4d8 100644 --- 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