3 ms·
I have a bunch of directories I always go to, and instead of cd-ing on a relative path from where I am, I prefer using an interactive way to select where to go
by jiehong 3y ago
I have a bunch of directories I always go to, and instead of cd-ing on a relative path from where I am, I prefer using an interactive way to select where to go (I’ve aliased this script as “c”):
d=$(ls ~/Dev | fzf)
if [ -z $d ]; then return 0
cd "~/Dev/$d"
- mrbombastic 3y agoNot quite the same but you should check out autojump if you haven’t before: https://github.com/wting/autojump https://github.com/wting/autojump
- beeburrt 3y agoWhy not just customize $CDPATH
- ttyprintk 3y agoIf fzf is installed fully, you’ll find Alt-C useful.
- dizhn 3y agoI rely on zsh and its search. Basically just type cd and follow it by enough characters to narrow down your search, then up arrow. History search has always surprised me seeing how I am mostly always doing the same thing. Things actually work before even needing to search manually since the history will suggest commands. (These use fairly well known plugins. I never use oh-my-zsh or any kind of plugin manager)