1/8/2024 0 Comments Iterm2 for mac m1![]() I have virtualenv and virtualenvwrapper installed. # brew update & brew outdated & brew upgrade alias buou="brew update & brew outdated & brew upgrade & brew cleanup" # npm outdated -g -depth=0 & npm update -g alias npmou="npm outdated -g -depth=0 & npm update -g" zshaddhistory() zshaddhistory Creating aliasesĪs I showed before with buou, you can add your own alias to. Adding the following to zshrc prevent ll ls la cd man scp vim nvim less ping open file which whois drill uname md5sum traceroute commands in the command history. You may not want common commands in the command history. # 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. In order to remove commands from your history list, you add the following to your. # 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. You type j + first few letters of a directory. zshrc on your terminal or open a new tab.īy changing your directory, autojump records directories. $(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): &. To use it, add autojump to the plugins array in your. $ 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. autojump is a faster way to navigate your filesystem. autojump pluginĪutojump plugin loads the autojump navigation tool. cd -2 changes directory to the second in the directory stack. The current directory is always the "top" of the directory stack. The dirs displays the contents of the directory stack. with the dirs command as you can see in the above image. You can install all packages in this article with a line of code, see this article. macOS/Linux commands ∘ Terminal calendars ∘ date ∘ ditto ∘ Common terminal commands ĭo you use your terminal all day? Is the terminal the first app you start after restarting your computer? In this article, you will find how to improve your terminal look and practical commands for your day-to-day work.Fun with Terminal ∘ Screensaver ∘ FIGlet ∘ Colors ∘ Fonts.Themes ∘ Starship (Updated) ∘ iTerm2 Theme.Oh-My-Zsh ∘ Errors ∘ Shortcut for toggling hidden files. ![]() Inside cask are all the applications with Graphical Interface.Background image by Jackson Hendry from Unsplash. Inside brew can found the CLI app and utilities. Pssttt: Powerlevel10K shows the command history number and visual Git notifications.īrew has his own classification. This is handy if a command fails because it needs admin rights. Entering !! will bring up the last command.Run history command with ! followed by the number in history, like !137.Works with directories, files, and commands. Autocomplete, jump between options with tab, and press return for selection.Spelling correction and approximate completion, automatic correct when having minor mistake typing a directory name.With Z plugin change quickly to another path just naming the folder not the complete path.List all with alias or filter it with grep for example alias | grep git Change between last and current path with - (like a TV remote control).With take command create a directory and change the path to it.(parent from parent dir), / (root) or ~ (home). No more cd (change directory) command.It can be used on GNU Linux and macOS, but I will teach you how to install and configure it on MacOS. ZSH (Z Shell) it’s a real evolution, modernize terminal things with simple solutions. Oh My Zsh - a delightful & open-source framework for Z-Shell You may wonder: Why did not I hear about this before? D’oh! There is a before and after listening to these letters together: ZSH.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |