![]() Before we add one it’s a good idea to look in its directory to see what it does. As is the case with themes a large number of plugins are supplied in the default installation, this time in the ~/.oh-my-zsh/plugins directory. We can do this by removing the line that begins with export PATH from. This defaults to whatever value it had when we installed oh-my-zsh but it’s better to carry this over from our Bash profile. The line below that, source $ZSH/oh-my-zsh.sh, loads oh-my-zsh and finally there’s the line that configures our PATH. We only have git enabled for now, but we’ll add more shortly. Below this are some commented-out options so if, for example, we want to disable colours in directory listings we can uncomment the DISABLE_LS_COLORS option.įurther down the file is a list of the currently enabled plugins. # Example format: plugins=(rails git textmate ruby lighthouse)Įxport file first sets the path to oh-my-zsh’s configuration directory and then sets the theme, which is currently robbyrussell. ![]() # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) # Uncomment following line if you want red dots to be displayed while waiting for completion # Uncomment following line if you want to disable autosetting terminal title. # Uncomment following line if you want to disable colors in ls # Comment this out to disable weekly auto-update checks # Set to this to use case-sensitive completion # Optionally, if you set this to "random", it'll load a random theme each If we want to list all of the Ruby files in a Rails project we can use a double asterisk to do deeply-nested directory searching. verbose -v - show unified diff of all file changesĪnother useful feature is the ability to specify more extensive wildcard options. untracked-files -u - show files in untracked directories signoff -s - add Signed-off-by line at the end of the commit mess reuse-message -C - use existing commit object with same log message reedit-message -c - use existing commit object and edit log message quiet -q - suppress commit summary message no-verify -n - do not look for suspicious lines the commit introduc message -m - use the given message as the commit message interactive - interactively update paths in the index file include -i - update the given files and commit the whole index file -F - read commit message from given file edit -e - edit the commit message before committing cleanup - specify how the commit message should be cleaned up author - override the author name used in the commit amend - amend the tip of the current branch allow-empty - allow recording an empty commit all -a - update all paths in the index file
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |