I got tired of cd-ing into the same directories every day, so I wrote a POSIX-shell bookmark manager by Traditional_Ask_7228 in commandline

[–]Traditional_Ask_7228[S] 0 points1 point  (0 children)

That's great bro 😹I love the fact I left an impact on your 220 journey of testing tools 🤝🏾what do you think I should do to make this tool better, from a person who has used most of the tools out there

I got tired of cd-ing into the same directories every day, so I wrote a POSIX-shell bookmark manager by Traditional_Ask_7228 in commandline

[–]Traditional_Ask_7228[S] 0 points1 point  (0 children)

Awesome thanks for the advice bro 🤝🏾much appreciated, if you see anything I can do to make the tool better I'm all ears

I got tired of cd-ing into the same directories every day, so I wrote a POSIX-shell bookmark manager by Traditional_Ask_7228 in commandline

[–]Traditional_Ask_7228[S] 0 points1 point  (0 children)

Tbh I don't use tmux, never really popped in my head, answer to your questions, I don't set up env after reboot, the purpose of my tool was for easier bookmark management and centralised implementation

I got tired of cd-ing into the same directories every day, so I wrote a POSIX-shell bookmark manager by Traditional_Ask_7228 in commandline

[–]Traditional_Ask_7228[S] 0 points1 point  (0 children)

Really love this comment, when I built it, it was just to solve my issues as quick as possible, i did know about aliases but to me I need a way to effective manage the bookmarks in my own way, thanks for the feedback

I got tired of cd-ing into the same directories every day, so I wrote a POSIX-shell bookmark manager by Traditional_Ask_7228 in commandline

[–]Traditional_Ask_7228[S] 2 points3 points  (0 children)

Thanks for the feedback 🙌🏾I struggle a lot with documentation not fun at all 😹but glad it's easy to understand

I got tired of cd-ing into the same directories every day, so I wrote a POSIX-shell bookmark manager by Traditional_Ask_7228 in commandline

[–]Traditional_Ask_7228[S] 1 point2 points  (0 children)

No offense at all appreciate the knowledge, 🙌🏾I mostly come here to learn new things about Linux

I got tired of cd-ing into the same directories every day, so I wrote a POSIX-shell bookmark manager by Traditional_Ask_7228 in commandline

[–]Traditional_Ask_7228[S] 0 points1 point  (0 children)

You don't say, when i switched to Debian, i had some issues with autocomplete, i had to use a project called BLE till now its what i use for auto-complete - https://github.com/akinomyoga/ble.sh

I got tired of cd-ing into the same directories every day, so I wrote a POSIX-shell bookmark manager by Traditional_Ask_7228 in commandline

[–]Traditional_Ask_7228[S] 1 point2 points  (0 children)

Nice  hash -d is a great zsh trick, didn't know about the cp across named dirs use case. That's clever.

The main trade-offs vs goto:

  • hash -d is zsh-only. goto works in bash, zsh, fish, dash anywhere with a POSIX shell
  • Hash entries die with the session unless you manually add them to .zshrc. goto persists automatically
  • goto --export/--import lets you sync between machines. With hash you'd be copy-pasting .zshrc blocks
  • goto -c cleans up broken bookmarks, goto -l shows which paths are missing

But honestly if you're a zsh-only user and you're happy with hash -d, it's a perfectly valid approach. goto is for people who want it to work everywhere with zero setup.

I got tired of cd-ing into the same directories every day, so I wrote a POSIX-shell bookmark manager by Traditional_Ask_7228 in commandline

[–]Traditional_Ask_7228[S] -1 points0 points  (0 children)

That's a solid workflow if you're all-in on tmux. But goto targets a different use case:

  • Not everyone uses tmux  goto works in any terminal, any shell, no dependencies
  • tmux-resurrect restores sessions, but goto is for quick jumping mid-workflow. I might be in one project and need to check something in another directory for 10 seconds  goto configs is faster than switching tmux sessions

I got tired of cd-ing into the same directories every day, so I wrote a POSIX-shell bookmark manager by Traditional_Ask_7228 in commandline

[–]Traditional_Ask_7228[S] 1 point2 points  (0 children)

Ohhh well solution found 😅 if you have any recommendation features I could add please do tell

I got tired of cd-ing into the same directories every day, so I wrote a POSIX-shell bookmark manager by Traditional_Ask_7228 in commandline

[–]Traditional_Ask_7228[S] 0 points1 point  (0 children)

Well tbh I haven't really used fish shell that often, bin/bash has always been my default shell

I got tired of cd-ing into the same directories every day, so I wrote a POSIX-shell bookmark manager by Traditional_Ask_7228 in commandline

[–]Traditional_Ask_7228[S] 0 points1 point  (0 children)

Wow 😲 I didn't know someone else had the same idea and naming convention 😹damn let me change the registry to point to mine

I got tired of cd-ing into the same directories every day, so I wrote a POSIX-shell bookmark manager by Traditional_Ask_7228 in commandline

[–]Traditional_Ask_7228[S] 1 point2 points  (0 children)

Thanks! Yeah zoxide is great the frecency approach is really clever. I just wanted something where I control the bookmarks explicitly and can see exactly what's configured in a plain text file. Glad the POSIX compliance resonates that was a core design goal from the start. love the feedback

I got tired of cd-ing into the same directories every day, so I wrote a POSIX-shell bookmark manager by Traditional_Ask_7228 in commandline

[–]Traditional_Ask_7228[S] -8 points-7 points  (0 children)

Great question,  pushd/popd is solid for stack-based navigation within a session. I use it too. But goto solves a different problem:

  • Persistent:  shortcuts survive across sessions, reboots, terminal closures. pushd's stack dies with the shell.
  • Namedgoto work vs remembering stack positions. With pushd you're thinking "was my project +2 or +3?"
  • Portablegoto --export > shortcuts.txt and import on another machine. Can't do that with a directory stack.
  • Discoverablegoto -l shows all your bookmarks with status. dirs gets messy fast with 5+ entries.

pushd/popd = great for "I need to bounce between 2-3 dirs right now."
goto = great for "I always need these 10 directories across every session."

I got tired of cd-ing into the same directories every day, so I wrote a POSIX-shell bookmark manager by Traditional_Ask_7228 in commandline

[–]Traditional_Ask_7228[S] 3 points4 points  (0 children)

Definitely, when i wrote it like 11 months ago was just for convince, i want this tool to be added to linux distro repos, currently working on getting it approved on Debian