Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Oh My Zsh
Commits
ae0c6507
Commit
ae0c6507
authored
Mar 27, 2014
by
Robby Russell
Browse files
Merge pull request #2659 from simonc/allowing-pow-path-with-spaces
Allowing path with spaces in pow plugin
parents
861d380a
015b7421
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/pow/pow.plugin.zsh
View file @
ae0c6507
...
...
@@ -21,8 +21,8 @@
rack_root
(){
setopt chaselinks
local
orgdir
=
$(
pwd
)
local
basedir
=
$(
pwd
)
local
orgdir
=
"
$(
pwd
)
"
local
basedir
=
"
$(
pwd
)
"
while
[[
$basedir
!=
'/'
]]
;
do
test
-e
"
$basedir
/config.ru"
&&
break
...
...
@@ -30,7 +30,7 @@ rack_root(){
basedir
=
"
$(
pwd
)
"
done
builtin cd
$orgdir
2>/dev/null
builtin cd
"
$orgdir
"
2>/dev/null
[[
${
basedir
}
==
"/"
]]
&&
return
1
echo
$basedir
}
...
...
@@ -56,19 +56,19 @@ kapow(){
compctl
-W
~/.pow -/ kapow
powit
(){
local
basedir
=
$(
pwd
)
local
basedir
=
"
$(
pwd
)
"
local
vhost
=
$1
[
!
-n
"
$vhost
"
]
&&
vhost
=
$(
rack_root_detect
)
if
[
!
-h
~/.pow/
$vhost
]
then
echo
"pow: Symlinking your app with pow.
${
vhost
}
"
[
!
-d
~/.pow/
${
vhost
}
]
&&
ln
-s
$basedir
~/.pow/
$vhost
[
!
-d
~/.pow/
${
vhost
}
]
&&
ln
-s
"
$basedir
"
~/.pow/
$vhost
return
1
fi
}
powed
(){
local
basedir
=
$(
rack_root
)
local
basedir
=
"
$(
rack_root
)
"
find ~/.pow/
-type
l
-lname
"*
$basedir
*"
-exec
basename
{}
'.dev'
\;
}
...
...
@@ -82,4 +82,4 @@ repow(){
}
# View the standard out (puts) from any pow app
alias
kaput
=
"tail -f ~/Library/Logs/Pow/apps/*"
\ No newline at end of file
alias
kaput
=
"tail -f ~/Library/Logs/Pow/apps/*"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment