Created
June 13, 2012 04:05
-
-
Save syohex/2921811 to your computer and use it in GitHub Desktop.
Use zaw-cdr in FreeBSD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- orig_cdr.zsh 2012-06-13 13:02:54.283074133 +0900 | |
+++ cdr.zsh 2012-06-13 13:03:06.091074311 +0900 | |
@@ -14,7 +14,8 @@ | |
} | |
function zaw-src-cdr-cd () { | |
- BUFFER="cd $1" | |
+ VAR=`echo -n $1 | awk '{ print \$2 }'` | |
+ BUFFER="cd $VAR" | |
zle accept-line | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment