Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
arp242 committed May 31, 2020
1 parent b115994 commit 370ae2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _posts/2020-05-22-zshrc.markdown
Expand Up @@ -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
Expand Down

0 comments on commit 370ae2a

Please sign in to comment.