cdhist
autojump
Our great sponsors
cdhist | autojump | |
---|---|---|
7 | 45 | |
60 | 15,877 | |
- | - | |
4.0 | 0.0 | |
8 months ago | 6 months ago | |
Python | Python | |
- | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
cdhist
-
Have you made a bash script that improved your life in some way? My examples
Consider also cdhist.
-
FZF: make CTRL-T work with directories outside the current one
Again, not answering your question directly but you could consider using cdhist which allows FZF to search over all your previously visited directories.
-
Jmp: you'll never want to cd into a directory again
Another option is cdhist which can work with fzf to fuzzy search over your directory history, rather than immediate directory paths. That is more useful to me.
-
What is a program that you use that's uncommon but essential for you?
I use ranger frequently also, e.g. for navigating around an unfamiliar directory tree to see what dirs and files are there. But cdist automatically keeps track of all directories I cd to and allows me to quickly jump back to any of them. Generally I work in various projects/dirs etc, and then just cd -- to switch between them (or I sometimes use fzf nowadays which can fuzzy search that cdhist history).
My own cdhist which I have used all day every day for the last 20 years and have no idea how the rest of you survive without it ;) It's also in the AUR.
-
Use fzf to fuzzy search and select from previously visited directories on Linux
command only provides fuzzy matching of directories under the current directory but many of us really want to fuzzy match across all the directories we have previously visited. The cdhist utility intercepts your shellcd command to maintain a history of previous directories for easy later selection. cdhist is also trivial to integrate with fzf as described here.
@wixig, can you please raise an issue on github for cdhist support. Not really appropriate here on reddit.
autojump
-
Zshell
I also use zsh for years and did not know that. What I like this: Actually having completions shown in the screen and being able to navigate them with tabs. I think that is not a default behavior, but that is what oh-my-zsh does for you in its default setup. Does someone have more insight on that?
I did not know about this, but I use https://github.com/wting/autojump, so I am not super sad that I missed something that hold me back severely. But good to know.
-
Z – Jump Around
Yes, I made a similar keybinding for xonsh, using fd and fzf. I press Alt-c, and fzf shows me all the subdirectories rooted where I'm at.
That's a good intermediary solution. But the one that totally changed my flow was to combine autojump[1] and fzf. autojump is similar to Z (this submission). It stores all the directories you've visited in an SQLite DB and can show them to you (ordered by visit frequency) with a command line argument. So I pipe that to fzf.
Now I can extremely quickly jump to any directory I've been to before - it really helps that they're sorted by visit frequency. I honestly use this more than any other approach - and I probably go for days on end without using the usual TAB autocompletion.
-
Some Useful Bash Aliases – Chuck Carroll
Not quite the same but you should check out autojump if you haven’t before: https://github.com/wting/autojump
- Cdpath: Easily Navigate Directories in the Terminal
-
People who use the terminal all the time. What are you up to?
I switched to linux recently and iam loving it the speed and CLI tools that linux provides are amazing you can do anything imaginable in the terminal i use Spotify in the terminal navigate very very fast using auto-jump and its just easier than navigating all those uis and using the keyboard for everything is way faster and easier on your hand than the mouse and keyboard combination especially if you use a window manager
-
stupid Linux tricks - cd one shell to the current dir of another, without using the clipboard, mouse, or even the pwd command
If you're interested in these types of things take a look at https://github.com/agkozak/zsh-z or https://github.com/wting/autojump
-
Have you made a bash script that improved your life in some way? My examples
Have you tried autojump?
-
What terminal apps are you using?
Dont forget to try Autojump (https://github.com/wting/autojump). Makes CDing to folders such a breeze
-
Is there an easy way to cd into a commonly used folder? Is creating an alias the best way?
Have a look at zoxide or its inspiration, autojump.
-
Jc – JSONifies the output of many CLI tools
There's a clash of names between this jc and autojump (https://github.com/wting/autojump) jc (jump to child)
What are some alternatives?
zoxide - A smarter cd command. Supports all major shells.
zsh-z - Jump quickly to directories that you have visited "frecently." A native Zsh port of z.sh with added features.
z - z - jump around
fasd - Command-line productivity booster, offers quick access to files and directories, inspired by autojump, z and v.
fzf - :cherry_blossom: A command-line fuzzy finder
z - Pure-fish z directory jumping
zsh-autosuggestions - Fish-like autosuggestions for zsh
nnn - n³ The unorthodox terminal file manager
fzf-marks - Plugin to manage bookmarks in bash and zsh
ohmyzsh - 🙃 A delightful community-driven (with 2,200+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to spice up your morning, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
direnv - unclutter your .profile
prezto - The configuration framework for Zsh