10/2/2023 0 Comments Big jump in direct desktop trafficIf you are regularly moving between directories in a command-line session, you might periodically run the jumpstat command so that you can see autojump's entries and type the minimum possible to jump. Note that all database entries are case-insensitive. Autojump has no way of choosing the second until you type more.įigure 2: Autojump moves you to the nearest match in its database. If two database entries match your typing, autojump suggests the first in alphabetical order. Type as much of the directory name as you think necessary, and autojump will try to match what you type with its database entries, printing its nearest match in red and switching to its suggestion ( Figure 2). To jump to a directory, use the command j DIRECTORY. Once the database has enough contents to be useful, start autojump. After all your edits, restart autojump so that it is using the latest figures. To remove a directory from the database, give it a negative weight and save the file. These manual edits can be especially useful if you have two directories with similar names, such as ~/scripts and ~/work/scripts, but you want to ensure that autojump suggests one in preference to the other. You can also edit ~/.local/share/autojump/autojump.txt, both to add paths and to adjust weights. To prevent such weight decay, you can use the command structure autojump -a DIRECTORY -completion. By default, each entry's weight decays over time – in other words, if you start moving less frequently to a directory, autojump will gradually become less likely to suggest it as a target into which to jump. In addition to the complete directory path, the autojump database also assigns a key weight to each entry, based on the amount of time you spend in the directory. You can view the contents of the database ( Figure 1) with either of these commands:įigure 1: View the contents of the autojump database to see how accurate it is. To get it working, you must either visit a few directories using cd, or else add directories manually to the database with autojump -a DIRECTORY or autojump -add DIRECTORYĪs you might expect, the more you use autojump, the more accurate and useful it becomes. Immediately after installation, the database will be empty, and autojump will not be functional. You can keep track of other limitations on the projects Issue page. For example, the man page for v20, the version of autojump in Debian Stable, states that it does not run on the zsh shell, nor in Gnome 3.0 or LXDE. install.py.īefore choosing your installation method, you might want to check how recent your distribution's version is and check its limitations. Then switching to the download directory and running the script. You can also install autojump by cloning the project's Git repository with the command Versions also exist for OS X and Windows. Many major distributions, including Debian, Fedora, ArchLinux, Gentoo, Frugalware, and Slackware, carry autojump in their repositories. Cd is fine when staying in the same area of the filesystem autojump is there to help when you need to jump far away from your current location." Autojump is especially useful with the root account, which tends to make longer jumps in the directory structure than most accounts. Autojump maintains a plain-text database of the directories you visit and how often you visit each one and, on the basis of this information, jumps to the closest match according to what you type.Īs the project homepage notes, "autojump isn't meant to be a drop-in replacement for cd, but rather a complement. Like its gaming namesake, autojump is a means of jumping straight to a directory without laboriously following its full path. Īutojump apparently takes its name from a means of pre-programming moves in some of the games in The Legend of Zelda series. ![]() At the command line, they have resulted in several different solutions, the most popular of which is autojump. ![]() On the desktop, these changes have prompted navigation alternatives like Nepomuk and Zeitgeist. Today, however, multiterabyte hard drives make the list of directories longer and deeper and therefore more difficult to navigate. The Linux directory structure was developed when hard drives were small, and all you needed for navigation was a file manager or a handful of commands like cd and ls.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |