blob: a28816c5bc15a1bf0d4edfd31d1f5dc308fdb130 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# cd-memo
Enhanced cd that memorizes your working directory across sessions
## Functionality
Any newly opened shell instance will be right where you left off \
Additionally you can `cd --` to go to the last cd in all shell sessions \
If you want to cd without the destination being memorized, use `\cd <destination>`
## Install
If you are using Arch Linux, an AUR package is available \
\
If you are using other distro, you can manually download and copy `cd-memo` and `cd-memo-init` to `/usr/bin` \
Alternatively you can run this in your terminal to automatically download & install using wget
```
sudo wget 'https://raw.githubusercontent.com/BlackFuffey/cd-memo/refs/heads/main/cd-memo' -O '/usr/bin/cd-memo'
sudo wget 'https://raw.githubusercontent.com/BlackFuffey/cd-memo/refs/heads/main/cd-memo-init' -O '/usr/bin/cd-memo-init'
```
## Usage
Add `source /usr/bin/cd-memo-init` to your shell init \
\
If you don't want new shell sessions to open in previous working directory but want to enjoy other features \
Add `source /usr/bin/cd-memo-init-ns` to your shell init instead \
\
For example:
- For bash, this will be `~/.bashrc`
- For zsh, this will be `~/.zshrc`
- For fish, this will be `~/.config/fish/config.fish`
## What shell am I using?
You can check by executing \
`echo $0`
|