Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Let t_prefix take precedence over the pwd when serving

  • Loading branch information...
commit bb03b0318e7a72a06df3ad9484c15bd2a5cf64af 1 parent 4b08197
@richo richo authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 zshrc
View
6 zshrc
@@ -137,8 +137,10 @@ function __richo_preexec() # {{{
arg=`sed $sed_r -e 's/^(be|bundle exec)/BE:/' <<< $1`
;;
"./serve"*) # Special case
- arg="`basename $PWD`: serve";;
-
+ arg="serve"
+ if [ -z "$t_prefix" ] &&
+ arg="`basename $PWD`: $arg"
+ ;;
"cd"*|"ls"*|"cp"*|"mv"*|"echo"*|"wiki"*|"screen"*|"dig"*|"rm"*|"mkdir"*|"tinfo"*)
reTITLE=""
return ;;
Please sign in to comment.
Something went wrong with that request. Please try again.