mirror of
https://github.com/meineerde/dotfiles.git
synced 2026-02-06 00:53:23 +00:00
Search the plain path first, allow fully qualified paths here
This commit is contained in:
parent
7575742c0e
commit
c159feadbd
2
.bashrc
2
.bashrc
@ -275,7 +275,7 @@ cat() {
|
||||
|
||||
# directory for project
|
||||
project_dirs() {
|
||||
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__"
|
||||
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}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user