![]() ![]() The dirs displays the contents of the directory stack. The current directory is always the "top" of the directory stack. cd -2 changes directory to the second in the directory stack. autojump pluginĪutojump plugin loads the autojump navigation tool. autojump is a faster way to navigate your filesystem. $ brew install autojump # or for port user $ port install autojump It works by maintaining a database of the directories you use the most from the command line.įirst, install it on your Mac OS. To use it, add autojump to the plugins array in your. $(brew -prefix)/etc/profile.d/autojump.sh zshrc file: # no comma between plugins required plugins=(git autojump)Īdd the following to the end of ~/.zshrc (Intel x86_64 or arm64): &. zshrc on your terminal or open a new tab.īy changing your directory, autojump records directories. You type j + first few letters of a directory. # shows all command history $ history # shows first 10 commands $ history | head # shows last 10 commands $ hisotry | tail # shows less history $ history | less # Use grep to search your command history $ history | grep Search-word # Use grep to do a case-insensitive search of your command history $ hisotry | grep -i search-word You can see all your command history using a bash command history. ![]() In order to remove commands from your history list, you add the following to your. # This won't work $ cd ~ # This will work because there is a space before the command $ cd ~ This removes command lines from the history list when the first character on the line is a space. You may not want common commands in the command history. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |