Oh My Zsh by default comes with lots of themes (default being: robbyrussell). Now, restart your terminal and you are good to go. Install Oh My Zsh using this command: sh -c "$(curl -fsSL )" Oh My Zsh is a framework for managing your zsh configuration. But if your system doesn’t have the zsh configuration, we will need to install it for the next steps to follow. MacOS ships with zsh by default and you don’t need to do anything. Install the iTerm2 using the command: brew cask install iterm2 3. Iterm contains much better features compared to the default terminal in macOS and most programmers prefer using it. Otherwise you can go ahead and install homebrew using the command below. If you are already working with terminal for some time and been into programming, you most likely have Homebrew installed. Let’s take a look at how we can setup our terminal that gives us the information we need and helps us with the productivity all packed in a attractive appearance. Zsh has huge number of features and when combined with iterm it becomes a beast for programming and productivity. Zsh also known as Z Shell is a shell built on top of the default shell for macOS(bash). The default terminal is just plain ordinary and doesn’t help you at all with limited information and blant design. kube-ps1 adds current Kubernetes context and namespace to the shell prompt.Programing requires you to frequently use the terminal to perform many actions.Since I wrote that post I came across further great command-line tools and tips ? It is frequently updated with builds of OpenJDK, Azul Zulu, GraalVM, Amazon Corretto, OpenJ9, etc. jabba is a tool for managing Java virtual machines.plantuml is a fantastic tool for generating all sorts of diagrams from… text.It is especially useful for checking out pull-requests. hub is the GitHub command-line tool for interacting with repositories.It is very useful in development when you need to start many processes. You just specify commands in a Procfile, and then start them all and check their logs. foreman is a tool for running multiple processes.dive is a tool for exploring Docker images, and especially see what each layer brings to the filesystem.watchexec is a general-purpose tool to watch files and trigger a command in response to changes.bat is similar to cat, except it offers syntax highlighting (and other goodies).This is not installed by default on macOS. pstree to list processes as a parent-child tree.It is much better that cURL in a development context. It comes with syntax highlighting and sensible ways to pass form fields, JSON data, files, etc. HTTPie is great for doing HTTP requests.There are a bunch of command-line tools that I use but that not everyone may know. Git clone \ $/plugins/zsh-autosuggestions They can be found in ~/dotfiles/env, and they get loaded from ~/.zshrc (or ~/.bash_profile if you prefer Bash) using a simple for-loop: There are various environment variables and shell functions that I rely on. The dot files get sym-linked using GNU Stow.įor instance ~/.zshrc points to ~/dotfiles/home/.zshrc. I am using a simple repository for that, with a bill-of-materials for applications to install automatically: (the 2019 edition, switch to another branch if you want). Dot filesĮveryone has their preferences for managing dot files. I also use the Cascadia font from Microsoft which is my preferred monospace font these days. I like this theme very much also in other tools, notably Visual Studio Code which is my currently preferred editor aside from IntelliJ IDEA for Java projects. I use the minimal theme with the tab bar on top and the status bar in the bottom with a few helper icons like CPU usage and current process. I especially enjoy the ability to split panes horizontally and vertically, as well as the keyboard shortcuts to move around. I am working on macOS, and I prefer the iTerm2 terminal emulator over the macOS Terminal application: I use iTerm2, Zsh, and a few cool command-line tools. I spend a fair amount of time in terminal emulators, and here is how I get a good experience on macOS.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |