1
0
mirror of https://github.com/meineerde/dotfiles.git synced 2026-02-06 00:53:23 +00:00

Prefer current directory with helper methods

This commit is contained in:
Holger Just 2012-12-05 14:38:13 +01:00
parent cc1b304cf9
commit 1f096928b8

View File

@ -266,7 +266,7 @@ cat() {
# directory for project
project_dirs() {
local dirs="$HOME/workspace/__path__:$HOME/__path__:./__path__:/Volumes/Finn/__path__:$GEM_HOME/gems/__gempath__:$GEM_HOME/gems/__path__:$GEM_HOME/bundler/gems/__gempath__:$GEM_HOME/bundler/gems/__path__"
local dirs="./__path__:$HOME/workspace/__path__:$HOME/__path__:/Volumes/Finn/__path__:$GEM_HOME/gems/__gempath__:$GEM_HOME/gems/__path__:$GEM_HOME/bundler/gems/__gempath__:$GEM_HOME/bundler/gems/__path__"
if [[ -n "$1" ]]; then
dirs="${dirs//__gempath__/__path__-*}"
echo ${dirs//__path__/$1}