diff --git a/zshrc.org b/zshrc.org index 8f986a3..499515e 100644 --- a/zshrc.org +++ b/zshrc.org @@ -83,15 +83,15 @@ The other two swap between build and src dirs on my local git checkout kde-current-activity-name () { qdbus >/dev/null && kactivities-cli --current-activity | awk {'print $3'} } - kde_src_basedir="/scratch/src/kde" - kde_build_basedir="/scratch/src/kde/build" + local kde_src_basedir="/scratch/src/kde" + local kde_build_basedir="/scratch/src/kde/build" kde-cd-build () { - cd $(pwd | sed -e "s+$kde_src_basedir+$kde_build_basedir+") + cd ${PWD/$kde_src_basedir/$kde_build_basedir/} } kde-cd-src () { - cd $(pwd | sed -e "s+$kde_build_basedir+$kde_src_basedir+") + cd ${PWD/$kde_build_basedir/$kde_src_basedir/} } #+end_src @@ -99,8 +99,6 @@ The other two swap between build and src dirs on my local git checkout source ~/scripts/kde-utils.sh #+end_src -**** TODO See if we can use zsh expansion instead of sed - *** Android helpers :daily: These are various helpers to drive my current Android phone when connected to the box.