You are not logged in.

#1 2015-11-27 12:29:03

oxygen_wobble
Member
Registered: 2012-05-20
Posts: 131

how to make zsh directory hashes persistent ?

So, i just found out about the hash feature of zsh:

hash -d folder=/long/path/to/some/folder

But, as soon as i close my terminal (i'm using xterm, by the way), all those nice hashes are gone ...

Is there a way to make them persistent ?

Offline

#2 2015-11-27 12:41:47

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: how to make zsh directory hashes persistent ?

Use autojump

Offline

#3 2015-11-27 12:49:24

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,718
Website

Re: how to make zsh directory hashes persistent ?

If you have a .zshrc, add the commands to that. If not, create one.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2015-11-27 17:14:40

oxygen_wobble
Member
Registered: 2012-05-20
Posts: 131

Re: how to make zsh directory hashes persistent ?

Hmm ok, i just created a little zsh function that creates the hash and appends the command to .zshrc ... perfect !

Offline

Board footer

Powered by FluxBB