mirror of
https://github.com/meineerde/dotfiles.git
synced 2026-02-06 00:53:23 +00:00
Allow to override gem version during c and d
This commit is contained in:
parent
1c98f69deb
commit
4220e3f4f9
2
.bashrc
2
.bashrc
@ -259,7 +259,7 @@ cat() {
|
||||
|
||||
# directory for project
|
||||
project_dirs() {
|
||||
local dirs="$HOME/workspace/__path__:$HOME/__path__:./__path__:/Volumes/Finn/__path__:$RUBY_PATH/$RUBY_VERSION/lib/ruby/gems/*/gems/__gempath__:$GEM_HOME/gems/__gempath__"
|
||||
local dirs="$HOME/workspace/__path__:$HOME/__path__:./__path__:/Volumes/Finn/__path__:$RUBY_PATH/$RUBY_VERSION/lib/ruby/gems/*/gems/__gempath__:$GEM_HOME/gems/__gempath__:$GEM_HOME/gems/__path__"
|
||||
if [[ -n "$1" ]]; then
|
||||
dirs="${dirs//__gempath__/__path__-*}"
|
||||
echo ${dirs//__path__/$1}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user