Gbda='git branch -no-color -merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d' Gdt='git diff-tree -no-commit-id -name-only -r' For example, enabling the Git plugin gives you access to a number of useful aliases, such as: $ alias | grep -i git | sort -R | head -10 In addition to themes, Oh My Zsh bundles tons of useful plugins for zsh. Here's an example of Powerlevel9k, my theme of choice: Having this information at a glance saves you from typing the equivalent commands to obtain it, and it's a cool look. By default, it enables some sensible zsh configuration options and it comes loaded with hundreds of themes and plugins.Ī theme makes you more productive as it adds useful information to your prompt, such as the status of your Git repository or Python virtualenv in use. There are many available, but the most popular is Oh My Zsh. The quickest way to get started using themes and plugins is to use a zsh configuration framework. A theme is a predefined prompt configuration, while a plugin is a set of useful aliases and functions that make it easier to use a specific command or programming language. Through the years, the open source community has developed countless themes and plugins for zsh. In this article, I'll present five tips to make you more productive using the command line with zsh. It would be impossible to cover all the options of zsh here there are literally hundreds of pages documenting its many features. It has similarities to other shells in the sh (Bourne shell) family, such as as bash and ksh, but it provides many advanced features and powerful command line editing options, such as enhanced Tab completion. The Z shell known as zsh is a shell for Linux/Unix-like operating systems. See the sample outputs: # find -iname findme ! -path. Similar way we can exclude multiple directories also. See the example: # find -iname findme|grep -v bit It does the find first then exclude the specific string. So there is no advantage considering the find command execution time. It do the grep after performing the find operation. We can ignore the location by using inverse grep “grep -v” option. If you are interested to read some Kubernetes topics you can check this page Method 3 : Simple □ See the example pasted below: # find -iname findme ! -path. This is not much complicated compared to first method. The directory “bit” will be excluded from the find search! Method 2 : Using “! -path” We can exclude directories by using the help of “ path“, “ prune“, “ o” and “ print” switches with find command. cry/findme Method 1 : Using the option “-prune -o” Lets see the output: # find -iname findme
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |