commit 15d0f00550824bf23cdf406b23b0b5254aed4857
parent 77ef11dbd6fd732129c30f7d316b8604ef1faac7
Author: Antoine Amarilli <a3nm@a3nm.net>
Date: Sat, 5 Nov 2011 01:59:43 +0100
more zshrc
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/zsh/zshrc b/zsh/zshrc
@@ -175,6 +175,7 @@ function save-alias()
chmod +x $FILE
BUFFER="$REPLY"
fi
+ rehash
}
function jump()
@@ -219,7 +220,7 @@ function precmd () {
if [[ "$TERM" == "screen" ]]; then
echo -ne "\ek_\e\\"
elif [[ "$TERM" == "rxvt-unicode" ]]; then
- local WD=$(pwd | sed "s/^\/home\/$USER/~/")
+ local WD="$(pwd | sed "s/^\/home\/$USER/~/")"
if [ -n "$LASTCMD" ]
then
#TODO
@@ -248,3 +249,6 @@ alias mw="grep \$\* | cut -d ' ' -f 1 | while read a; do notmuch show \$a; done
alias msw="history | tail -1 | cut -d ' ' -f2- | mw \$\*"
alias myip="curl icanhazip.com"
+#TODO
+bindkey '^Q' push-line
+