From 370ae2a12c83e07b52ce34fa7f041df39e4f30f5 Mon Sep 17 00:00:00 2001 From: Martin Tournoij Date: Mon, 1 Jun 2020 02:59:43 +0800 Subject: [PATCH] Fix --- _posts/2020-05-22-zshrc.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_posts/2020-05-22-zshrc.markdown b/_posts/2020-05-22-zshrc.markdown index 254518e..d1481ab 100644 --- a/_posts/2020-05-22-zshrc.markdown +++ b/_posts/2020-05-22-zshrc.markdown @@ -46,13 +46,13 @@ If you put `%~` in your `PROMPT` then the short version will show up there, too: A related little helper I have is `hashcwd`, to quickly add the current directory in case you find yourself in a (very) long path taking up all your -screen space: +screen space or want to make a temporary "bookmark": hashcwd() { hash -d "$1"="$PWD" } And then: - [~/.cache/go-path/pkg/mod/golang.org/x/tools@v0.0.0-20200519205726-57a9e4404bf7/go/analysis]$ hashcwd a + [~/go/pkg/mod/golang.org/x/tools@v0.0.0-20200519205726-57a9e4404bf7/go/analysis]$ hashcwd a [~a]$ Filter history completion with what you typed