forked from ohmyzsh/ohmyzsh
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/upstream/master'
* remotes/upstream/master: (22 commits) Use `grep -q` for silent behavior Fix logic of bureau_git_status function Add git user profile functions for prompt display localization support for clock in candy theme Add 'asdf' plugin Update 'tm' function to take multiple files on the command-line Update README.markdown Remove "Mac" from "Mac OS X" Optimize the ys.zsh-theme make it simpler [feature/npm-outdated] - add alias for "npm outdated" to check outdated npm modules Update GitHub download URLs in README Minor README fixes Add missing alias to README of bundler plugin Closes ohmyzsh#4727 Avoid using "PREFIX" that cause nvm to complain about. Changed env based sf2 shortcuts to sfdev & sfprod Added environment based shortcuts in symfony2 plugin Fix checkmark for clean repo in bureau theme Added a short description of the plugin Update seach parameter ...
- Loading branch information
Showing
17 changed files
with
260 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
## asdf | ||
|
||
**Maintainer:** [@RobLoach](https://github.com/RobLoach) | ||
|
||
Adds integration with [asdf](https://github.com/asdf-vm/asdf), the extendable version manager, with support for Ruby, Node.js, Elixir, Erlang and more. | ||
|
||
### Installation | ||
|
||
1. Enable the plugin by adding it to your `plugins` definition in `~/.zshrc`. | ||
|
||
``` | ||
plugins=(asdf) | ||
``` | ||
|
||
2. [Install asdf](https://github.com/asdf-vm/asdf#setup) by running the following: | ||
``` | ||
git clone https://github.com/asdf-vm/asdf.git ~/.asdf | ||
``` | ||
|
||
### Usage | ||
|
||
See the [asdf usage documentation](https://github.com/asdf-vm/asdf#usage) for information on how to use asdf: | ||
|
||
``` | ||
asdf plugin-add nodejs git@github.com:asdf-vm/asdf-nodejs.git | ||
asdf install nodejs 5.9.1 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Find where asdf should be installed. | ||
ASDF_DIR="${ASDF_DIR:-$HOME/.asdf}" | ||
|
||
# Load asdf, if found. | ||
if [ -f $ASDF_DIR/asdf.sh ]; then | ||
. $ASDF_DIR/asdf.sh | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
## ZSH-Geeknote | ||
|
||
[Geeknote](https://github.com/VitaliyRodnenko/geeknote) plugin for [oh-my-zsh framework](http://github.com/robbyrussell/oh-my-zsh). | ||
|
||
Plugins provides: | ||
|
||
- auto completion of commands and their options | ||
- alias `gn` | ||
|
||
You can find information how to install Geeknote and it's available commands on the [project website](http://www.geeknote.me/). | ||
|
||
Maintainer : Ján Koščo ([@s7anley](https://twitter.com/s7anley)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
#compdef geeknote | ||
# --------------- ------------------------------------------------------------ | ||
# Name : _geeknote | ||
# Synopsis : zsh completion for geeknote | ||
# Author : Ján Koščo <3k.stanley@gmail.com> | ||
# HomePage : http://www.geeknote.me | ||
# Version : 0.1 | ||
# Tag : [ shell, zsh, completion, evernote ] | ||
# Copyright : © 2014 by Ján Koščo, | ||
# Released under current GPL license. | ||
# --------------- ------------------------------------------------------------ | ||
|
||
local -a _1st_arguments | ||
_1st_arguments=( | ||
'login' | ||
'logout' | ||
'settings' | ||
'create' | ||
'edit' | ||
'find' | ||
'show' | ||
'remove' | ||
'notebook-list' | ||
'notebook-create' | ||
'notebook-edit' | ||
'tag-list' | ||
'tag-create' | ||
'tag-edit' | ||
'tag-remove' | ||
'gnsync' | ||
'user' | ||
) | ||
|
||
_arguments '*:: :->command' | ||
|
||
if (( CURRENT == 1 )); then | ||
_describe -t commands "geeknote command" _1st_arguments | ||
return | ||
fi | ||
|
||
local -a _command_args | ||
case "$words[1]" in | ||
user) | ||
_command_args=( | ||
'(--full)--full' \ | ||
) | ||
;; | ||
logout) | ||
_command_args=( | ||
'(--force)--force' \ | ||
) | ||
;; | ||
settings) | ||
_command_args=( | ||
'(--editor)--editor' \ | ||
) | ||
;; | ||
create) | ||
_command_args=( | ||
'(-t|--title)'{-t,--title}'[note title]' \ | ||
'(-c|--content)'{-c,--content}'[note content]' \ | ||
'(-tg|--tags)'{-tg,--tags}'[one tag or the list of tags which will be added to the note]' \ | ||
'(-nb|--notebook)'{-nb,--notebook}'[name of notebook where to save note]' \ | ||
) | ||
;; | ||
edit) | ||
_command_args=( | ||
'(-n|--note)'{-n,--note}'[name or ID from the previous search of a note to edit]' \ | ||
'(-t|--title)'{-t,--title}'[note title]' \ | ||
'(-c|--content)'{-c,--content}'[note content]' \ | ||
'(-tg|--tags)'{-tg,--tags}'[one tag or the list of tags which will be added to the note]' \ | ||
'(-nb|--notebook)'{-nb,--notebook}'[name of notebook where to save note]' \ | ||
) | ||
;; | ||
remove) | ||
_command_args=( | ||
'(-n|--note)'{-n,--note}'[name or ID from the previous search of a note to edit]' \ | ||
'(--force)--force' \ | ||
) | ||
;; | ||
show) | ||
_command_args=( | ||
'(-n|--note)'{-n,--note}'[name or ID from the previous search of a note to edit]' \ | ||
) | ||
;; | ||
find) | ||
_command_args=( | ||
'(-s|--search)'{-s,--search}'[text to search]' \ | ||
'(-tg|--tags)'{-tg,--tags}'[notes with which tag/tags to search]' \ | ||
'(-nb|--notebook)'{-nb,--notebook}'[in which notebook search the note]' \ | ||
'(-d|--date)'{-d,--date}'[date in format dd.mm.yyyy or date range dd.mm.yyyy-dd.mm.yyyy]' \ | ||
'(-cn|--count)'{-cn,--count}'[how many notes show in the result list]' \ | ||
'(-uo|--url-only)'{-uo,--url-only}'[add direct url of each note in results to Evernote web-version]' \ | ||
'(-ee|--exact-entry)'{-ee,--exact-entry}'[search for exact entry of the request]' \ | ||
'(-cs|--content-search)'{-cs,--content-search}'[search by content, not by title]' \ | ||
) | ||
;; | ||
notebook-create) | ||
_command_args=( | ||
'(-t|--title)'{-t,--title}'[notebook title]' \ | ||
) | ||
;; | ||
notebook-edit) | ||
_command_args=( | ||
'(-nb|--notebook)'{-nb,--notebook}'[name of notebook to rename]' \ | ||
'(-t|--title)'{-t,--title}'[new notebook title]' \ | ||
) | ||
;; | ||
notebook-remove) | ||
_command_args=( | ||
'(-nb|--notebook)'{-nb,--notebook}'[name of notebook to remove]' \ | ||
'(--force)--force' \ | ||
) | ||
;; | ||
tag-create) | ||
_command_args=( | ||
'(-t|--title)'{-t,--title}'[title of tag]' \ | ||
) | ||
;; | ||
tag-edit) | ||
_command_args=( | ||
'(-tgn|--tagname)'{-tgn,--tagname}'[tag to edit]' \ | ||
'(-t|--title)'{-t,--title}'[new tag name]' \ | ||
) | ||
;; | ||
tag-remove) | ||
_command_args=( | ||
'(-tgn|--tagname)'{-tgn,--tagname}'[tag to remove]' \ | ||
'(--force)--force' \ | ||
) | ||
;; | ||
esac | ||
|
||
_arguments \ | ||
$_command_args \ | ||
&& return 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#Alias | ||
alias gn='geeknote' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,14 @@ | ||
# If the tm command is called without an argument, open TextMate in the current directory | ||
# If tm is passed a directory, cd to it and open it in TextMate | ||
# If tm is passed a file, open it in TextMate | ||
# If tm is passed anything else (i.e., a list of files and/or options), pass them all along | ||
# This allows easy opening of multiple files. | ||
function tm() { | ||
if [[ -z $1 ]]; then | ||
mate . | ||
else | ||
elif [[ -d $1 ]]; then | ||
mate $1 | ||
if [[ -d $1 ]]; then | ||
cd $1 | ||
fi | ||
cd $1 | ||
else | ||
mate "$@" | ||
fi | ||
} |
Oops, something went wrong.