Merge remote-tracking branch 'upstream/master'

Signed-off-by: Gaetan Semet <gaetan@xeberon.net>

Conflicts:
	lib/functions.zsh
This commit is contained in:
Gaetan Semet 2015-12-09 21:52:51 +01:00
commit 3fef439caa
66 changed files with 3375 additions and 804 deletions

View file

@ -16,19 +16,28 @@ function take() {
}
function open_command() {
emulate -L zsh
setopt shwordsplit
local open_cmd
# define the open command
case "$OSTYPE" in
darwin*) open_cmd="open" ;;
cygwin*) open_cmd="cygstart" ;;
linux*) open_cmd="xdg-open" ;;
darwin*) open_cmd='open' ;;
cygwin*) open_cmd='cygstart' ;;
linux*) open_cmd='xdg-open' ;;
msys*) open_cmd='start ""' ;;
*) echo "Platform $OSTYPE not supported"
return 1
;;
esac
nohup $open_cmd "$@" &>/dev/null
# don't use nohup on OSX
if [[ "$OSTYPE" == darwin* ]]; then
$open_cmd "$@" &>/dev/null
else
nohup $open_cmd "$@" &>/dev/null
fi
}
#
@ -111,7 +120,7 @@ zmodload zsh/langinfo
# Returns nonzero if encoding failed.
#
# Usage:
# omz_urlencode [-r] [-m] <string>
# omz_urlencode [-r] [-m] [-P] <string>
#
# -r causes reserved characters (;/?:@&=+$,) to be escaped
#
@ -223,4 +232,3 @@ function omz_urldecode {
echo -E "$decoded"
}