From 96d10e2147b59adc25e9c3b90ac6f31935495ef3 Mon Sep 17 00:00:00 2001
From: Robert Strack
Date: Fri, 13 Nov 2015 23:42:21 -0500
Subject: [PATCH 001/644] calculating command's execution time
---
plugins/timer/timer.plugin.zsh | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 plugins/timer/timer.plugin.zsh
diff --git a/plugins/timer/timer.plugin.zsh b/plugins/timer/timer.plugin.zsh
new file mode 100644
index 000000000..aa4573b9f
--- /dev/null
+++ b/plugins/timer/timer.plugin.zsh
@@ -0,0 +1,18 @@
+preexec() {
+ __timer_cmd_start_time=$(date '+%s')
+}
+
+precmd() {
+ if [ -n "${__timer_cmd_start_time}" ]; then
+ local cmd_end_time=$(date '+%s')
+ local tdiff=$((${cmd_end_time} - ${__timer_cmd_start_time}))
+ unset __timer_cmd_start_time
+ local tdiffstr='/'
+ if (( tdiff >= 60 )); then
+ tdiffstr+="$((tdiff / 60))m"
+ fi
+ tdiffstr+="$((tdiff % 60))s"
+ local cols=$(($COLUMNS - ${#tdiffstr} - 1))
+ echo -e "\033[1A\033[${cols}C ${tdiffstr}"
+ fi
+}
From 1b8f05a3d395c107d81724445cac7fcd599942d8 Mon Sep 17 00:00:00 2001
From: Robert Strack
Date: Sat, 14 Nov 2015 23:13:44 -0500
Subject: [PATCH 002/644] simplified time string calculation
---
plugins/timer/timer.plugin.zsh | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)
diff --git a/plugins/timer/timer.plugin.zsh b/plugins/timer/timer.plugin.zsh
index aa4573b9f..f73d2ab53 100644
--- a/plugins/timer/timer.plugin.zsh
+++ b/plugins/timer/timer.plugin.zsh
@@ -7,12 +7,8 @@ precmd() {
local cmd_end_time=$(date '+%s')
local tdiff=$((${cmd_end_time} - ${__timer_cmd_start_time}))
unset __timer_cmd_start_time
- local tdiffstr='/'
- if (( tdiff >= 60 )); then
- tdiffstr+="$((tdiff / 60))m"
- fi
- tdiffstr+="$((tdiff % 60))s"
- local cols=$(($COLUMNS - ${#tdiffstr} - 1))
- echo -e "\033[1A\033[${cols}C ${tdiffstr}"
+ local tdiffstr="$((tdiff / 60))m$((tdiff % 60))s"
+ local cols=$(($COLUMNS - ${#tdiffstr#0m} - 2))
+ echo -e "\033[1A\033[${cols}C \`${tdiffstr#0m}"
fi
}
From 120e8620af6e1d7d01159614186403c7a816457d Mon Sep 17 00:00:00 2001
From: Robert Strack
Date: Sat, 14 Nov 2015 23:48:26 -0500
Subject: [PATCH 003/644] cleaning up
---
plugins/timer/timer.plugin.zsh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/plugins/timer/timer.plugin.zsh b/plugins/timer/timer.plugin.zsh
index f73d2ab53..ee2cb66c1 100644
--- a/plugins/timer/timer.plugin.zsh
+++ b/plugins/timer/timer.plugin.zsh
@@ -3,12 +3,12 @@ preexec() {
}
precmd() {
- if [ -n "${__timer_cmd_start_time}" ]; then
+ if [ -n "$__timer_cmd_start_time" ]; then
local cmd_end_time=$(date '+%s')
- local tdiff=$((${cmd_end_time} - ${__timer_cmd_start_time}))
+ local tdiff=$((cmd_end_time - __timer_cmd_start_time))
unset __timer_cmd_start_time
local tdiffstr="$((tdiff / 60))m$((tdiff % 60))s"
- local cols=$(($COLUMNS - ${#tdiffstr#0m} - 2))
+ local cols=$((COLUMNS - ${#tdiffstr#0m} - 2))
echo -e "\033[1A\033[${cols}C \`${tdiffstr#0m}"
fi
}
From d4c74690b61b74e317410df3b80b784891ab55ed Mon Sep 17 00:00:00 2001
From: Robert Strack
Date: Sun, 15 Nov 2015 22:08:16 -0500
Subject: [PATCH 004/644] increased timer's pecision
---
plugins/timer/timer.plugin.zsh | 23 +++++++++++++++++------
1 file changed, 17 insertions(+), 6 deletions(-)
diff --git a/plugins/timer/timer.plugin.zsh b/plugins/timer/timer.plugin.zsh
index ee2cb66c1..729dd3ee2 100644
--- a/plugins/timer/timer.plugin.zsh
+++ b/plugins/timer/timer.plugin.zsh
@@ -1,14 +1,25 @@
+__timer_current_time() {
+ perl -MTime::HiRes=time -e'print time'
+}
+
+__timer_format_duration() {
+ local mins=$(printf '%.0f' $(($1 / 60)))
+ local secs=$(printf '%.1f' $(($1 - 60 * mins)))
+ local duration_str=$(echo "${mins}m${secs}s")
+ echo "\`${duration_str#0m}"
+}
+
preexec() {
- __timer_cmd_start_time=$(date '+%s')
+ __timer_cmd_start_time=$(__timer_current_time)
}
precmd() {
- if [ -n "$__timer_cmd_start_time" ]; then
- local cmd_end_time=$(date '+%s')
+ if [ -n "${__timer_cmd_start_time}" ]; then
+ local cmd_end_time=$(__timer_current_time)
local tdiff=$((cmd_end_time - __timer_cmd_start_time))
unset __timer_cmd_start_time
- local tdiffstr="$((tdiff / 60))m$((tdiff % 60))s"
- local cols=$((COLUMNS - ${#tdiffstr#0m} - 2))
- echo -e "\033[1A\033[${cols}C \`${tdiffstr#0m}"
+ local tdiffstr=$(__timer_format_duration ${tdiff})
+ local cols=$((COLUMNS - ${#tdiffstr} - 1))
+ echo -e "\033[1A\033[${cols}C ${tdiffstr}"
fi
}
From 111dd018b9b821fad2c7899b31aa46b5c0aaa218 Mon Sep 17 00:00:00 2001
From: Robert Strack
Date: Mon, 16 Nov 2015 22:20:26 -0500
Subject: [PATCH 005/644] allow changes in display format
---
plugins/timer/timer.plugin.zsh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/timer/timer.plugin.zsh b/plugins/timer/timer.plugin.zsh
index 729dd3ee2..33481ea4e 100644
--- a/plugins/timer/timer.plugin.zsh
+++ b/plugins/timer/timer.plugin.zsh
@@ -4,9 +4,9 @@ __timer_current_time() {
__timer_format_duration() {
local mins=$(printf '%.0f' $(($1 / 60)))
- local secs=$(printf '%.1f' $(($1 - 60 * mins)))
+ local secs=$(printf "%.${TIMER_PRECISION:-1}f" $(($1 - 60 * mins)))
local duration_str=$(echo "${mins}m${secs}s")
- echo "\`${duration_str#0m}"
+ echo "${TIMER_SYMBOL:-\`}${duration_str#0m}"
}
preexec() {
From 96148d2275b848dbfb976a58967535067def4210 Mon Sep 17 00:00:00 2001
From: Robert Strack
Date: Tue, 17 Nov 2015 20:50:30 -0500
Subject: [PATCH 006/644] customizable timer format
---
plugins/timer/timer.plugin.zsh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/plugins/timer/timer.plugin.zsh b/plugins/timer/timer.plugin.zsh
index 33481ea4e..f7f039b78 100644
--- a/plugins/timer/timer.plugin.zsh
+++ b/plugins/timer/timer.plugin.zsh
@@ -6,7 +6,8 @@ __timer_format_duration() {
local mins=$(printf '%.0f' $(($1 / 60)))
local secs=$(printf "%.${TIMER_PRECISION:-1}f" $(($1 - 60 * mins)))
local duration_str=$(echo "${mins}m${secs}s")
- echo "${TIMER_SYMBOL:-\`}${duration_str#0m}"
+ local format="${TIMER_FORMAT:-/%d}"
+ echo "${format//\%d/${duration_str#0m}}"
}
preexec() {
From de8d6841b00903f2873a8b009faf7002bfbc1273 Mon Sep 17 00:00:00 2001
From: Robert Strack
Date: Wed, 18 Nov 2015 20:33:38 -0500
Subject: [PATCH 007/644] added pre_functions
---
plugins/timer/timer.plugin.zsh | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/plugins/timer/timer.plugin.zsh b/plugins/timer/timer.plugin.zsh
index f7f039b78..231134e7d 100644
--- a/plugins/timer/timer.plugin.zsh
+++ b/plugins/timer/timer.plugin.zsh
@@ -10,11 +10,11 @@ __timer_format_duration() {
echo "${format//\%d/${duration_str#0m}}"
}
-preexec() {
+__timer_save_time_preexec() {
__timer_cmd_start_time=$(__timer_current_time)
}
-precmd() {
+__timer_display_timer_precmd() {
if [ -n "${__timer_cmd_start_time}" ]; then
local cmd_end_time=$(__timer_current_time)
local tdiff=$((cmd_end_time - __timer_cmd_start_time))
@@ -24,3 +24,6 @@ precmd() {
echo -e "\033[1A\033[${cols}C ${tdiffstr}"
fi
}
+
+preexec_functions+=(__timer_save_time_preexec)
+precmd_functions+=(__timer_display_timer_precmd)
From d615961430aca9668cfb056aef6024c4ed41eff8 Mon Sep 17 00:00:00 2001
From: Robert Strack
Date: Wed, 18 Nov 2015 21:09:18 -0500
Subject: [PATCH 008/644] readme file
---
plugins/timer/README.md | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 plugins/timer/README.md
diff --git a/plugins/timer/README.md b/plugins/timer/README.md
new file mode 100644
index 000000000..19072cb24
--- /dev/null
+++ b/plugins/timer/README.md
@@ -0,0 +1,18 @@
+This plugin allows to display command's execution time in a very nonintrusive way.
+
+Timer can be tuned by these two variables:
+* `TIMER_PRECISION` allows to control number of decimal places (default `1`)
+* `TIMER_FORMAT` allows to adjust display format (default `'/%d'`)
+
+Sample session:
+
+ me@here:~$ sleep 1 /1.0s
+ me@here:~$ sleep 73 /1m13.0s
+ me@here:~$ TIMER_FORMAT='[%d]'; TIMER_PRECISION=2 [0.00s]
+ me@here:~$ head -c50 < /dev/urandom | hexdump
+ 0000000 b2 16 20 f0 29 1f 61 2d 8a 29 20 8c 8c 39 5a ab
+ 0000010 21 47 0e f9 ee a4 76 46 71 9e 4f 6b a4 c4 51 cb
+ 0000020 f9 1f 7e b9 6f 2c ae dd cf 40 6d 64 a8 fb d3 db
+ 0000030 09 37
+ 0000032 [0.02s]
+
From 7553bcb4185b9d584a40b41cf15501e43041fe57 Mon Sep 17 00:00:00 2001
From: Robert Strack
Date: Wed, 18 Nov 2015 21:27:29 -0500
Subject: [PATCH 009/644] minor corrections in the readme file
---
plugins/timer/README.md | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/plugins/timer/README.md b/plugins/timer/README.md
index 19072cb24..321307e59 100644
--- a/plugins/timer/README.md
+++ b/plugins/timer/README.md
@@ -8,11 +8,10 @@ Sample session:
me@here:~$ sleep 1 /1.0s
me@here:~$ sleep 73 /1m13.0s
- me@here:~$ TIMER_FORMAT='[%d]'; TIMER_PRECISION=2 [0.00s]
+ me@here:~$ TIMER_FORMAT='[%d]'; TIMER_PRECISION=2 [0.00s]
me@here:~$ head -c50 < /dev/urandom | hexdump
0000000 b2 16 20 f0 29 1f 61 2d 8a 29 20 8c 8c 39 5a ab
0000010 21 47 0e f9 ee a4 76 46 71 9e 4f 6b a4 c4 51 cb
0000020 f9 1f 7e b9 6f 2c ae dd cf 40 6d 64 a8 fb d3 db
0000030 09 37
0000032 [0.02s]
-
From a1200f5bccd7c0ebe327ccbc554d56247136d48c Mon Sep 17 00:00:00 2001
From: slavaGanzin
Date: Thu, 29 Sep 2016 19:05:49 +0300
Subject: [PATCH 010/644] git auto fetch on change directory
---
plugins/git-auto-fetch/git-auto-fetch.plugin.zsh | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
diff --git a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
new file mode 100644
index 000000000..841f47baf
--- /dev/null
+++ b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
@@ -0,0 +1,5 @@
+function git_fetch_on_chpwd {
+ ([[ -d .git ]] && git fetch --all >! ./.git/FETCH_LOG &)
+}
+chpwd_functions=(${chpwd_functions[@]} "git_fetch_on_chpwd")
+unset git_fetch_on_cpwd
From 1427fbffef68d5796c8296ba105f325598b809f8 Mon Sep 17 00:00:00 2001
From: slavaGanzin
Date: Thu, 29 Sep 2016 22:14:04 +0300
Subject: [PATCH 011/644] redirect output
---
plugins/git-auto-fetch/git-auto-fetch.plugin.zsh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
index 841f47baf..cbf6984a0 100644
--- a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
+++ b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
@@ -1,5 +1,5 @@
function git_fetch_on_chpwd {
- ([[ -d .git ]] && git fetch --all >! ./.git/FETCH_LOG &)
+ ([[ -d .git ]] && git fetch --all &>! ./.git/FETCH_LOG &)
}
-chpwd_functions=(${chpwd_functions[@]} "git_fetch_on_chpwd")
-unset git_fetch_on_cpwd
+chpwd_functions+=(git_fetch_on_chpwd)
+git_fetch_on_chpwd
From 25fcf0c265c682f092ce49a6849e5e09b38dffa9 Mon Sep 17 00:00:00 2001
From: slavaGanzin
Date: Tue, 4 Oct 2016 21:26:19 +0300
Subject: [PATCH 012/644] git-auto-fetch: README.md
---
plugins/git-auto-fetch/README.md | 22 +++++++++++++++++++
.../git-auto-fetch/git-auto-fetch.plugin.zsh | 12 +++++++++-
2 files changed, 33 insertions(+), 1 deletion(-)
create mode 100644 plugins/git-auto-fetch/README.md
diff --git a/plugins/git-auto-fetch/README.md b/plugins/git-auto-fetch/README.md
new file mode 100644
index 000000000..7f5eac49d
--- /dev/null
+++ b/plugins/git-auto-fetch/README.md
@@ -0,0 +1,22 @@
+# Git auto fetch
+
+Automatically fetches all changes from all remotes every time you cd into yout git-initialized project.
+
+####Usage
+Add ```git-auto-fetch``` to the plugins array in your zshrc file:
+```shell
+plugins=(... git-auto-fetch)
+```
+
+Every time you change directory to your git project all remotes will be fetched in background. Log of ```git fetch --all``` will be saved into .git/FETCH_LOG
+
+####Toggle auto fetch per folder
+If you are using mobile connection or for any other reason you can disable git-auto-fetch for any folder:
+
+```shell
+$ cd to/your/project
+$ git-auto-fetch
+disabled
+$ git-auto-fetch
+enabled
+```
diff --git a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
index cbf6984a0..87535b251 100644
--- a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
+++ b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
@@ -1,5 +1,15 @@
function git_fetch_on_chpwd {
- ([[ -d .git ]] && git fetch --all &>! ./.git/FETCH_LOG &)
+ ([[ -d .git ]] && [[ ! -f ".git/NO_AUTO_FETCH" ]] && git fetch --all &>! .git/FETCH_LOG &)
+}
+
+function git-auto-fetch {
+ [[ ! -d .git ]] && return
+ if [[ -f ".git/NO_AUTO_FETCH" ]]; then
+ rm ".git/NO_AUTO_FETCH" && echo "disabled"
+ else
+ touch ".git/NO_AUTO_FETCH" && echo "enabled"
+ fi
}
chpwd_functions+=(git_fetch_on_chpwd)
git_fetch_on_chpwd
+unset git_fetch_on_chpwd
From ac7dcdb21cfb57180c7d8007d95232ee62086997 Mon Sep 17 00:00:00 2001
From: slavaGanzin
Date: Thu, 6 Oct 2016 16:55:21 +0300
Subject: [PATCH 013/644] add colors
---
plugins/git-auto-fetch/git-auto-fetch.plugin.zsh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
index 87535b251..0bcefa931 100644
--- a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
+++ b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
@@ -5,9 +5,9 @@ function git_fetch_on_chpwd {
function git-auto-fetch {
[[ ! -d .git ]] && return
if [[ -f ".git/NO_AUTO_FETCH" ]]; then
- rm ".git/NO_AUTO_FETCH" && echo "disabled"
+ rm ".git/NO_AUTO_FETCH" && echo "${fg_bold[red]}disabled${reset_color}"
else
- touch ".git/NO_AUTO_FETCH" && echo "enabled"
+ touch ".git/NO_AUTO_FETCH" && echo "${fg_bold[green]}enabled${reset_color}"
fi
}
chpwd_functions+=(git_fetch_on_chpwd)
From 028fdf2e9948fa720599a63cd36124eff95cb6fc Mon Sep 17 00:00:00 2001
From: slavaGanzin
Date: Mon, 10 Oct 2016 22:33:09 +0300
Subject: [PATCH 014/644] add coloring
---
.../git-auto-fetch/git-auto-fetch.plugin.zsh | 27 +++++++++++--------
1 file changed, 16 insertions(+), 11 deletions(-)
diff --git a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
index 0bcefa931..949709e4c 100644
--- a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
+++ b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
@@ -1,15 +1,20 @@
-function git_fetch_on_chpwd {
- ([[ -d .git ]] && [[ ! -f ".git/NO_AUTO_FETCH" ]] && git fetch --all &>! .git/FETCH_LOG &)
+function git-fetch-on-chpwd {
+ (`git rev-parse --is-inside-work-tree 2>/dev/null` &&
+ dir=`git rev-parse --git-dir` &&
+ [[ ! -f $dir/NO_AUTO_FETCH ]] &&
+ git fetch --all &>! $dir/FETCH_LOG &)
}
function git-auto-fetch {
- [[ ! -d .git ]] && return
- if [[ -f ".git/NO_AUTO_FETCH" ]]; then
- rm ".git/NO_AUTO_FETCH" && echo "${fg_bold[red]}disabled${reset_color}"
- else
- touch ".git/NO_AUTO_FETCH" && echo "${fg_bold[green]}enabled${reset_color}"
- fi
+ `git rev-parse --is-inside-work-tree 2>/dev/null` || return
+ guard="`git rev-parse --git-dir`/NO_AUTO_FETCH"
+
+ (rm $guard 2>/dev/null &&
+ echo "${fg_bold[green]}enabled${reset_color}") ||
+ (touch $guard &&
+ echo "${fg_bold[red]}disabled${reset_color}")
}
-chpwd_functions+=(git_fetch_on_chpwd)
-git_fetch_on_chpwd
-unset git_fetch_on_chpwd
+
+chpwd_functions+=(git-fetch-on-chpwd)
+git-fetch-on-chpwd
+unset git-fetch-on-chpwd
From 9f2977f3eb969a8b026d1fc84394bef0d1a9ee78 Mon Sep 17 00:00:00 2001
From: slavaGanzin
Date: Mon, 10 Oct 2016 22:30:47 +0300
Subject: [PATCH 015/644] reimplement
---
$ | 0
disabled | 0
echo | 0
plugins/zsh-syntax-highlighting | 1 +
4 files changed, 1 insertion(+)
create mode 100644 $
create mode 100644 disabled
create mode 100644 echo
create mode 160000 plugins/zsh-syntax-highlighting
diff --git a/$ b/$
new file mode 100644
index 000000000..e69de29bb
diff --git a/disabled b/disabled
new file mode 100644
index 000000000..e69de29bb
diff --git a/echo b/echo
new file mode 100644
index 000000000..e69de29bb
diff --git a/plugins/zsh-syntax-highlighting b/plugins/zsh-syntax-highlighting
new file mode 160000
index 000000000..094329eb1
--- /dev/null
+++ b/plugins/zsh-syntax-highlighting
@@ -0,0 +1 @@
+Subproject commit 094329eb145e00b810e65415ed4b9ad58aa7c34a
From dbee3dd9c69c8d2e3299f2f7e7c68fabd06e33c5 Mon Sep 17 00:00:00 2001
From: slavaGanzin
Date: Wed, 26 Oct 2016 23:47:51 +0300
Subject: [PATCH 016/644] 1. autofetch on zle-line-init 2.
GIT_AUTO_FETCH_INTERVAL
---
plugins/git-auto-fetch/README.md | 11 ++++++++--
.../git-auto-fetch/git-auto-fetch.plugin.zsh | 20 +++++++++++++++----
2 files changed, 25 insertions(+), 6 deletions(-)
diff --git a/plugins/git-auto-fetch/README.md b/plugins/git-auto-fetch/README.md
index 7f5eac49d..04f1c9445 100644
--- a/plugins/git-auto-fetch/README.md
+++ b/plugins/git-auto-fetch/README.md
@@ -1,6 +1,6 @@
# Git auto fetch
-Automatically fetches all changes from all remotes every time you cd into yout git-initialized project.
+Automatically fetches all changes from all remotes while you are working in git-initialized directory.
####Usage
Add ```git-auto-fetch``` to the plugins array in your zshrc file:
@@ -8,7 +8,14 @@ Add ```git-auto-fetch``` to the plugins array in your zshrc file:
plugins=(... git-auto-fetch)
```
-Every time you change directory to your git project all remotes will be fetched in background. Log of ```git fetch --all``` will be saved into .git/FETCH_LOG
+Every time you launch a command in your shell all remotes will be fetched in background.
+By default autofetch will be triggered only if last fetch was done at least 60 seconds ago.
+You can change fetch interval in your .zshrc:
+```
+GIT_AUTO_FETCH_INTERVAL=1200 #in seconds
+```
+Log of ```git fetch --all``` will be saved into .git/FETCH_LOG
+
####Toggle auto fetch per folder
If you are using mobile connection or for any other reason you can disable git-auto-fetch for any folder:
diff --git a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
index 949709e4c..e9946ef3f 100644
--- a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
+++ b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
@@ -1,7 +1,10 @@
-function git-fetch-on-chpwd {
+GIT_AUTO_FETCH_INTERVAL=${GIT_AUTO_FETCH_INTERVAL:=60}
+
+function git-fetch-all {
(`git rev-parse --is-inside-work-tree 2>/dev/null` &&
dir=`git rev-parse --git-dir` &&
[[ ! -f $dir/NO_AUTO_FETCH ]] &&
+ (( `date +%s` - `date -r $dir/FETCH_LOG +%s` > $GIT_AUTO_FETCH_INTERVAL )) &&
git fetch --all &>! $dir/FETCH_LOG &)
}
@@ -15,6 +18,15 @@ function git-auto-fetch {
echo "${fg_bold[red]}disabled${reset_color}")
}
-chpwd_functions+=(git-fetch-on-chpwd)
-git-fetch-on-chpwd
-unset git-fetch-on-chpwd
+eval "original-$(declare -f zle-line-init)"
+
+function zle-line-init () {
+ git-fetch-all
+ original-zle-line-init
+}
+zle -N zle-line-init
+
+# chpwd_functions+=(git-fetch-on-chpwd)
+# git-fetch-on-chpwd
+unset git-auto-fetch
+unset original-zle-line-init
From 41ad705f93bfb1cd75e4c69d1cc936107556b827 Mon Sep 17 00:00:00 2001
From: slavaGanzin
Date: Thu, 27 Oct 2016 00:03:31 +0300
Subject: [PATCH 017/644] cut comments
---
plugins/git-auto-fetch/git-auto-fetch.plugin.zsh | 5 -----
1 file changed, 5 deletions(-)
diff --git a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
index e9946ef3f..7dbd63fe1 100644
--- a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
+++ b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
@@ -25,8 +25,3 @@ function zle-line-init () {
original-zle-line-init
}
zle -N zle-line-init
-
-# chpwd_functions+=(git-fetch-on-chpwd)
-# git-fetch-on-chpwd
-unset git-auto-fetch
-unset original-zle-line-init
From 41e65c0872fc29a604aea007aeba011334a6ac4c Mon Sep 17 00:00:00 2001
From: slavaGanzin
Date: Thu, 17 Nov 2016 15:30:27 +0200
Subject: [PATCH 018/644] remove trash
---
$ | 0
disabled | 0
echo | 0
plugins/zsh-syntax-highlighting | 1 -
4 files changed, 1 deletion(-)
delete mode 100644 $
delete mode 100644 disabled
delete mode 100644 echo
delete mode 160000 plugins/zsh-syntax-highlighting
diff --git a/$ b/$
deleted file mode 100644
index e69de29bb..000000000
diff --git a/disabled b/disabled
deleted file mode 100644
index e69de29bb..000000000
diff --git a/echo b/echo
deleted file mode 100644
index e69de29bb..000000000
diff --git a/plugins/zsh-syntax-highlighting b/plugins/zsh-syntax-highlighting
deleted file mode 160000
index 094329eb1..000000000
--- a/plugins/zsh-syntax-highlighting
+++ /dev/null
@@ -1 +0,0 @@
-Subproject commit 094329eb145e00b810e65415ed4b9ad58aa7c34a
From a90527b46d67e70f92258849b265b6bfd5e910e0 Mon Sep 17 00:00:00 2001
From: slavaGanzin
Date: Thu, 17 Nov 2016 15:51:40 +0200
Subject: [PATCH 019/644] fix FETCH_LOG bug
---
plugins/git-auto-fetch/git-auto-fetch.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
index 7dbd63fe1..03fa911e7 100644
--- a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
+++ b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
@@ -4,7 +4,7 @@ function git-fetch-all {
(`git rev-parse --is-inside-work-tree 2>/dev/null` &&
dir=`git rev-parse --git-dir` &&
[[ ! -f $dir/NO_AUTO_FETCH ]] &&
- (( `date +%s` - `date -r $dir/FETCH_LOG +%s` > $GIT_AUTO_FETCH_INTERVAL )) &&
+ (( `date +%s` - `date -r $dir/FETCH_LOG +%s 2>/dev/null || echo 0` > $GIT_AUTO_FETCH_INTERVAL )) &&
git fetch --all &>! $dir/FETCH_LOG &)
}
From 6fe2028a1264a79330f16b1dbd6da8f59dc6854f Mon Sep 17 00:00:00 2001
From: Dariusz Luksza
Date: Sun, 25 Jan 2015 13:29:42 +0100
Subject: [PATCH 020/644] Fix emacs client terminal
Fixes #3305
Signed-off-by: Dariusz Luksza
---
plugins/emacs/emacs.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/emacs/emacs.plugin.zsh b/plugins/emacs/emacs.plugin.zsh
index c102a5a1e..929aa0616 100644
--- a/plugins/emacs/emacs.plugin.zsh
+++ b/plugins/emacs/emacs.plugin.zsh
@@ -16,7 +16,7 @@ if "$ZSH/tools/require_tool.sh" emacs 24 2>/dev/null ; then
# set EDITOR if not already defined.
export EDITOR="${EDITOR:-${EMACS_PLUGIN_LAUNCHER}}"
- alias emacs="$EMACS_PLUGIN_LAUNCHER --no-wait"
+ alias emacs="$EMACS_PLUGIN_LAUNCHER -t"
alias e=emacs
# open terminal emacsclient
alias te="$EMACS_PLUGIN_LAUNCHER -nw"
From 76c102944c8c164f2cf8908712b6c6a1d9fe5d70 Mon Sep 17 00:00:00 2001
From: Ilyes Kechidi
Date: Wed, 23 Nov 2016 02:21:18 +0100
Subject: [PATCH 021/644] added a transfer.sh plugin created a function to
easily upload files to transfer.sh file sharing site Usage : transfer
file.txt
---
plugins/transfer/transfer.plugin.zsh | 7 +++++++
1 file changed, 7 insertions(+)
create mode 100644 plugins/transfer/transfer.plugin.zsh
diff --git a/plugins/transfer/transfer.plugin.zsh b/plugins/transfer/transfer.plugin.zsh
new file mode 100644
index 000000000..7d0d84bea
--- /dev/null
+++ b/plugins/transfer/transfer.plugin.zsh
@@ -0,0 +1,7 @@
+# transfer.sh Easy file sharing from the command line
+# transfer Plugin
+# Usage Example :
+# > transfer file.txt
+
+transfer() { if [ $# -eq 0 ]; then echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi
+tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; }
\ No newline at end of file
From 8013d3d8a933b6bae3ed9ceb37bebb42cf28ea56 Mon Sep 17 00:00:00 2001
From: Ilyes Kechidi
Date: Tue, 7 Feb 2017 14:40:21 +0100
Subject: [PATCH 022/644] added README for transfer.sh plugin
---
plugins/transfer/README.md | 7 +++++++
1 file changed, 7 insertions(+)
create mode 100644 plugins/transfer/README.md
diff --git a/plugins/transfer/README.md b/plugins/transfer/README.md
new file mode 100644
index 000000000..e14b94aa9
--- /dev/null
+++ b/plugins/transfer/README.md
@@ -0,0 +1,7 @@
+# `transfer.sh` plugin
+transfer.sh is an easy file sharing service from the command line
+
+## Usage
+Example
+> transfer file.txt
+
From d2dfa69419845daebcfd20fed3253ae06faa2876 Mon Sep 17 00:00:00 2001
From: slavaGanzin
Date: Tue, 7 Feb 2017 15:44:12 +0200
Subject: [PATCH 023/644] change name of overriden zle-line-init
---
plugins/git-auto-fetch/git-auto-fetch.plugin.zsh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
index 03fa911e7..1d20bc04b 100644
--- a/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
+++ b/plugins/git-auto-fetch/git-auto-fetch.plugin.zsh
@@ -18,10 +18,10 @@ function git-auto-fetch {
echo "${fg_bold[red]}disabled${reset_color}")
}
-eval "original-$(declare -f zle-line-init)"
+eval "override-git-auto-fetch-$(declare -f zle-line-init)"
function zle-line-init () {
git-fetch-all
- original-zle-line-init
+ override-git-auto-fetch-zle-line-init
}
zle -N zle-line-init
From 845fdfaae0a913143d1ff03220a1bf1596871225 Mon Sep 17 00:00:00 2001
From: Ilyes Kechidi
Date: Thu, 9 Feb 2017 02:28:33 +0100
Subject: [PATCH 024/644] replaced transfer function with @nl5887 version
---
plugins/transfer/transfer.plugin.zsh | 62 +++++++++++++++++++++++++++-
1 file changed, 60 insertions(+), 2 deletions(-)
diff --git a/plugins/transfer/transfer.plugin.zsh b/plugins/transfer/transfer.plugin.zsh
index 7d0d84bea..796faa9a2 100644
--- a/plugins/transfer/transfer.plugin.zsh
+++ b/plugins/transfer/transfer.plugin.zsh
@@ -2,6 +2,64 @@
# transfer Plugin
# Usage Example :
# > transfer file.txt
+# > transfer directory/
-transfer() { if [ $# -eq 0 ]; then echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"; return 1; fi
-tmpfile=$( mktemp -t transferXXX ); if tty -s; then basefile=$(basename "$1" | sed -e 's/[^a-zA-Z0-9._-]/-/g'); curl --progress-bar --upload-file "$1" "https://transfer.sh/$basefile" >> $tmpfile; else curl --progress-bar --upload-file "-" "https://transfer.sh/$1" >> $tmpfile ; fi; cat $tmpfile; rm -f $tmpfile; }
\ No newline at end of file
+
+
+# Author:
+# Remco Verhoef
+# https://gist.github.com/nl5887/a511f172d3fb3cd0e42d
+#
+
+curl --version 2>&1 > /dev/null
+if [ $? -ne 0 ]; then
+ echo "Could not find curl."
+ return 1
+fi
+
+transfer() {
+ # check arguments
+ if [ $# -eq 0 ];
+ then
+ echo "No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md"
+ return 1
+ fi
+
+ # get temporarily filename, output is written to this file show progress can be showed
+ tmpfile=$( mktemp -t transferXXX )
+
+ # upload stdin or file
+ file=$1
+
+ if tty -s;
+ then
+ basefile=$(basename "$file" | sed -e 's/[^a-zA-Z0-9._-]/-/g')
+
+ if [ ! -e $file ];
+ then
+ echo "File $file doesn't exists."
+ return 1
+ fi
+
+ if [ -d $file ];
+ then
+ # zip directory and transfer
+ zipfile=$( mktemp -t transferXXX.zip )
+ cd $(dirname $file) && zip -r -q - $(basename $file) >> $zipfile
+ curl --progress-bar --upload-file "$zipfile" "https://transfer.sh/$basefile.zip" >> $tmpfile
+ rm -f $zipfile
+ else
+ # transfer file
+ curl --progress-bar --upload-file "$file" "https://transfer.sh/$basefile" >> $tmpfile
+ fi
+ else
+ # transfer pipe
+ curl --progress-bar --upload-file "-" "https://transfer.sh/$file" >> $tmpfile
+ fi
+
+ # cat output link
+ cat $tmpfile
+
+ # cleanup
+ rm -f $tmpfile
+}
\ No newline at end of file
From 6cefe70ffc8f5d827a9b4341129114a843ceb248 Mon Sep 17 00:00:00 2001
From: Ilyes Kechidi
Date: Thu, 9 Feb 2017 02:29:24 +0100
Subject: [PATCH 025/644] updated transfer README.md
---
plugins/transfer/README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/transfer/README.md b/plugins/transfer/README.md
index e14b94aa9..9bf488d4e 100644
--- a/plugins/transfer/README.md
+++ b/plugins/transfer/README.md
@@ -4,4 +4,5 @@ transfer.sh is an easy file sharing service from the command line
## Usage
Example
> transfer file.txt
+> transfer directory/
From c36474b7dfbe19c0628f6f21d8da40b535eeb5fb Mon Sep 17 00:00:00 2001
From: Ilyes Kechidi
Date: Thu, 9 Feb 2017 19:41:09 +0100
Subject: [PATCH 026/644] modified the script to use tar command instead of zip
---
plugins/transfer/transfer.plugin.zsh | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/plugins/transfer/transfer.plugin.zsh b/plugins/transfer/transfer.plugin.zsh
index 796faa9a2..7a7cd85ec 100644
--- a/plugins/transfer/transfer.plugin.zsh
+++ b/plugins/transfer/transfer.plugin.zsh
@@ -9,6 +9,7 @@
# Author:
# Remco Verhoef
# https://gist.github.com/nl5887/a511f172d3fb3cd0e42d
+# Modified to use tar command instead of zip
#
curl --version 2>&1 > /dev/null
@@ -43,11 +44,12 @@ transfer() {
if [ -d $file ];
then
- # zip directory and transfer
- zipfile=$( mktemp -t transferXXX.zip )
- cd $(dirname $file) && zip -r -q - $(basename $file) >> $zipfile
- curl --progress-bar --upload-file "$zipfile" "https://transfer.sh/$basefile.zip" >> $tmpfile
- rm -f $zipfile
+ echo $file
+ # tar directory and transfer
+ tarfile=$( mktemp -t transferXXX.tar.gz )
+ cd $(dirname $file) && tar -czf $tarfile $(basename $file)
+ curl --progress-bar --upload-file "$tarfile" "https://transfer.sh/$basefile.tar.gz" >> $tmpfile
+ rm -f $tarfile
else
# transfer file
curl --progress-bar --upload-file "$file" "https://transfer.sh/$basefile" >> $tmpfile
From fbc878cb66cbe0067998034c2d2e383b2742c0de Mon Sep 17 00:00:00 2001
From: Rob Freiburger
Date: Sat, 18 Feb 2017 04:31:36 -0600
Subject: [PATCH 027/644] Adds option to disable auto update prompt
I noticed this option was missing from the template. When I followed the directions in README to enable it, I put it below line 59 without noticing it wouldn't have any effect by then. Prevent others from making a rookie mistake like mine.
---
templates/zshrc.zsh-template | 3 +++
1 file changed, 3 insertions(+)
diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template
index af42e5b9f..93bbf36aa 100644
--- a/templates/zshrc.zsh-template
+++ b/templates/zshrc.zsh-template
@@ -19,6 +19,9 @@ ZSH_THEME="robbyrussell"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
+# Uncomment the following line to automatically update without prompting.
+# DISABLE_UPDATE_PROMPT="true"
+
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
From 9b1c21a409beb349d97fe4e9b9a0a9302ce68c9a Mon Sep 17 00:00:00 2001
From: fREW Schmidt
Date: Mon, 2 Apr 2018 04:43:41 -0700
Subject: [PATCH 028/644] Get rid of some silly copy pasta (#3187)
Said gem instead of vagrant
---
plugins/vagrant/_vagrant | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/vagrant/_vagrant b/plugins/vagrant/_vagrant
index c5335e72e..a32347daa 100644
--- a/plugins/vagrant/_vagrant
+++ b/plugins/vagrant/_vagrant
@@ -81,7 +81,7 @@ __vagrant-box ()
case $state in
(command)
- _describe -t commands "gem subcommand" _box_arguments
+ _describe -t commands "vagrant subcommand" _box_arguments
return
;;
@@ -110,7 +110,7 @@ _arguments -C \
case $state in
(command)
- _describe -t commands "gem subcommand" _1st_arguments
+ _describe -t commands "vagrant subcommand" _1st_arguments
return
;;
From 62b8a70a7c5d0c939d8dabfef48796a092d1a55f Mon Sep 17 00:00:00 2001
From: Jean-Benoit Griesner <33450151+jbgriesner@users.noreply.github.com>
Date: Fri, 6 Apr 2018 19:09:00 +0200
Subject: [PATCH 029/644] Add Qwant engine - web_search plugin (#6701)
Co-authored-by: Maxime AURIAU
---
plugins/web-search/web-search.plugin.zsh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/web-search/web-search.plugin.zsh b/plugins/web-search/web-search.plugin.zsh
index cc970e5fd..863384223 100644
--- a/plugins/web-search/web-search.plugin.zsh
+++ b/plugins/web-search/web-search.plugin.zsh
@@ -16,6 +16,7 @@ function web_search() {
baidu "https://www.baidu.com/s?wd="
ecosia "https://www.ecosia.org/search?q="
goodreads "https://www.goodreads.com/search?q="
+ qwant "https://www.qwant.com/?q="
)
# check whether the search engine is supported
@@ -49,6 +50,7 @@ alias github='web_search github'
alias baidu='web_search baidu'
alias ecosia='web_search ecosia'
alias goodreads='web_search goodreads'
+alias qwant='web_search qwant'
#add your own !bang searches here
alias wiki='web_search duckduckgo \!w'
From 2aa2ea744eff2322b1fc2a31be556d95dda83797 Mon Sep 17 00:00:00 2001
From: Eric Hudon
Date: Sun, 15 Apr 2018 07:17:23 -0400
Subject: [PATCH 030/644] Change the br argument to branch to follow PR #6678.
(#6680)
---
plugins/jira/_jira | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/jira/_jira b/plugins/jira/_jira
index 890f97f4c..d64614233 100644
--- a/plugins/jira/_jira
+++ b/plugins/jira/_jira
@@ -7,7 +7,7 @@ _1st_arguments=(
'dashboard:open the dashboard'
'reported:search for issues reported by a user'
'assigned:search for issues assigned to a user'
- 'br:open the issue named after the git branch of the current directory'
+ 'branch:open the issue named after the git branch of the current directory'
'dumpconfig:display effective jira configuration'
)
From 15d051c32b1b11d37b38c5f3e7a1491c4d859db0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Franz=20K=C3=B6nig?=
Date: Sun, 15 Apr 2018 11:38:25 +0000
Subject: [PATCH 031/644] hotfix for archlinux.plugin.zsh (#5909)
Co-authored-by: dalu <2694548+dalu@users.noreply.github.com>
---
plugins/archlinux/archlinux.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/archlinux/archlinux.plugin.zsh b/plugins/archlinux/archlinux.plugin.zsh
index 0fab1252b..81e7a6688 100644
--- a/plugins/archlinux/archlinux.plugin.zsh
+++ b/plugins/archlinux/archlinux.plugin.zsh
@@ -83,7 +83,7 @@ alias pacmir='sudo pacman -Syy'
alias paclsorphans='sudo pacman -Qdt'
alias pacrmorphans='sudo pacman -Rs $(pacman -Qtdq)'
alias pacfileupg='sudo pacman -Fy'
-alias pacfiles='pacman tFs'
+alias pacfiles='pacman -Fs'
if (( $+commands[abs] && $+commands[aur] )); then
From f9d4a067ecb9d3fa65326e5e6a76649ccf65434c Mon Sep 17 00:00:00 2001
From: Cory Snider
Date: Sun, 15 Apr 2018 08:45:58 -0400
Subject: [PATCH 032/644] Reduce number of git calls when displaying prompt
(#3795)
The avit theme's _git_time_since_commit function was running git twice.
Reduce it with a single call to `git log`, checking the exit code for
success.
---
themes/avit.zsh-theme | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/themes/avit.zsh-theme b/themes/avit.zsh-theme
index 4f0dcbcc6..c43fcc9fe 100644
--- a/themes/avit.zsh-theme
+++ b/themes/avit.zsh-theme
@@ -50,9 +50,7 @@ function _ruby_version() {
# use a neutral color, otherwise colors will vary according to time.
function _git_time_since_commit() {
# Only proceed if there is actually a commit.
- if git log -1 > /dev/null 2>&1; then
- # Get the last commit.
- last_commit=$(git log --pretty=format:'%at' -1 2> /dev/null)
+ if last_commit=$(git log --pretty=format:'%at' -1 2> /dev/null); then
now=$(date +%s)
seconds_since_last_commit=$((now-last_commit))
From 30a5124f9d087ca7184c9ccf797a2e1dcfe79845 Mon Sep 17 00:00:00 2001
From: Arthur Brainville
Date: Sun, 15 Apr 2018 14:47:08 +0200
Subject: [PATCH 033/644] Added trizen to the archlinux plugin (#6650)
* Added trizen to the archlinux plugin
trizen is the recomended solution for using the Arch User Repository.
both yaourt and pacaur have some issues.
Signed-off by: Arthur Brainville (Ybalrid)
* Add trizen aliases to the readme
Also fixed inconsistency in formatting on readme file.
(also added myself in the contributor list)
---
plugins/archlinux/README.md | 28 ++++++++++++++++++++-
plugins/archlinux/archlinux.plugin.zsh | 35 +++++++++++++++++++++++++-
2 files changed, 61 insertions(+), 2 deletions(-)
diff --git a/plugins/archlinux/README.md b/plugins/archlinux/README.md
index e408db13d..a249ad62b 100644
--- a/plugins/archlinux/README.md
+++ b/plugins/archlinux/README.md
@@ -2,6 +2,31 @@
## Features
+#### TRIZEN
+
+| Alias | Command | Description |
+|---------|------------------------------------|---------------------------------------------------------------------|
+| trconf | trizen -C | Fix all configuration files with vimdiff |
+| trin | trizen -S | Install packages from the repositories |
+| trins | trizen -U | Install a package from a local file |
+| trinsd | trizen -S --asdeps | Install packages as dependencies of another package |
+| trloc | trizen -Qi | Display information about a package in the local database |
+| trlocs | trizen -Qs | Search for packages in the local database |
+| trlst | trizen -Qe | List installed packages including from AUR (tagged as "local") |
+| trmir | trizen -Syy | Force refresh of all package lists after updating mirrorlist |
+| trorph | trizen -Qtd | Remove orphans using yaourt |
+| trre | trizen -R | Remove packages, keeping its settings and dependencies |
+| trrem | trizen -Rns | Remove packages, including its settings and unneeded dependencies |
+| trrep | trizen -Si | Display information about a package in the repositories |
+| trreps | trizen -Ss | Search for packages in the repositories |
+| trupd | trizen -Sy && sudo abs && sudo aur | Update and refresh local package, ABS and AUR databases |
+| trupd | trizen -Sy && sudo abs | Update and refresh the local package and ABS databases |
+| trupd | trizen -Sy && sudo aur | Update and refresh the local package and AUR databases |
+| trupd | trizen -Sy | Update and refresh the local package database |
+| trupd | trizen -Syua | Sync with repositories before upgrading all packages (from AUR too) |
+| trsu | trizen -Syua --no-confirm | Same as `trupg`, but without confirmation |
+| upgrade | trizen -Syu | Sync with repositories before upgrading packages |
+
#### YAOURT
| Alias | Command | Description |
@@ -27,7 +52,7 @@
| yasu | yaourt -Syua --no-confirm | Same as `yaupg`, but without confirmation |
| upgrade | yaourt -Syu | Sync with repositories before upgrading packages |
-### PACAUR
+#### PACAUR
| Alias | Command | Description |
|---------|------------------------------------|---------------------------------------------------------------------|
@@ -95,3 +120,4 @@
- ornicar - thibault.duplessis@gmail.com
- Juraj Fiala - doctorjellyface@riseup.net
- Majora320 (Moses Miller) - Majora320@gmail.com
+- Ybalrid (Arthur Brainville) - ybalrid@ybalrid.info
diff --git a/plugins/archlinux/archlinux.plugin.zsh b/plugins/archlinux/archlinux.plugin.zsh
index 81e7a6688..9172aaa70 100644
--- a/plugins/archlinux/archlinux.plugin.zsh
+++ b/plugins/archlinux/archlinux.plugin.zsh
@@ -1,3 +1,32 @@
+if (( $+commands[trizen] )); then
+ alias trconf='trizen -C'
+ alias trupg='trizen -Syua'
+ alias trsu='trizen -Syua --noconfirm'
+ alias trin='trizen -S'
+ alias trins='trizen -U'
+ alias trre='trizen -R'
+ alias trrem='trizen -Rns'
+ alias trrep='trizen -Si'
+ alias trreps='trizen -Ss'
+ alias trloc='trizen -Qi'
+ alias trlocs='trizen -Qs'
+ alias trlst='trizen -Qe'
+ alias trorph='trizen -Qtd'
+ alias trinsd='trizen -S --asdeps'
+ alias trmir='trizen -Syy'
+
+
+ if (( $+commands[abs] && $+commands[aur] )); then
+ alias trupd='trizen -Sy && sudo abs && sudo aur'
+ elif (( $+commands[abs] )); then
+ alias trupd='trizen -Sy && sudo abs'
+ elif (( $+commands[aur] )); then
+ alias trupd='trizen -Sy && sudo aur'
+ else
+ alias trupd='trizen -Sy'
+ fi
+fi
+
if (( $+commands[yaourt] )); then
alias yaconf='yaourt -C'
alias yaupg='yaourt -Syua'
@@ -54,7 +83,11 @@ if (( $+commands[pacaur] )); then
fi
fi
-if (( $+commands[pacaur] )); then
+if (( $+commands[trizen] )); then
+ upgrade() {
+ trizen -Syu
+ }
+elif (( $+commands[pacaur] )); then
upgrade() {
pacaur -Syu
}
From 8e1cfc91541a2c9daef9e0790323ecaf369229c2 Mon Sep 17 00:00:00 2001
From: Alexis Hildebrandt
Date: Sun, 15 Apr 2018 15:16:28 +0200
Subject: [PATCH 034/644] Fix emotty theme when using zsh 5.2 (#5998)
see http://www.zsh.org/mla/workers/2015/msg03259.html
---
themes/emotty.zsh-theme | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/themes/emotty.zsh-theme b/themes/emotty.zsh-theme
index 34d491ff0..13adad78d 100644
--- a/themes/emotty.zsh-theme
+++ b/themes/emotty.zsh-theme
@@ -68,6 +68,10 @@ prompt_glyph="%{%(#.${root_prompt}.${user_prompt}) %2G%}"
setopt promptsubst
+# Workaround for zsh 5.2 release (kudos to @timothybasanov)
+autoload +X VCS_INFO_nvcsformats
+functions[VCS_INFO_nvcsformats]=${functions[VCS_INFO_nvcsformats]/local -a msgs/}
+
autoload -U add-zsh-hook
autoload -Uz vcs_info
From 88d21fea6c0d90e58f221f9a2320ba7b73dac97a Mon Sep 17 00:00:00 2001
From: Alexis Hildebrandt
Date: Sun, 15 Apr 2018 15:16:44 +0200
Subject: [PATCH 035/644] Improve emotty plugin (#5999)
* The display_emotty function show the name of the displayed emotty set
* Unless an emotty set was given show the emotty set configured
in $emotty_set
---
plugins/emotty/emotty.plugin.zsh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/plugins/emotty/emotty.plugin.zsh b/plugins/emotty/emotty.plugin.zsh
index b32dd1a4c..6a8bf6127 100644
--- a/plugins/emotty/emotty.plugin.zsh
+++ b/plugins/emotty/emotty.plugin.zsh
@@ -32,7 +32,8 @@ function emotty() {
}
function display_emotty() {
- local name=$1
+ local name=${1:-$emotty_set}
+ echo $name
for i in ${=_emotty_sets[$name]}; do
printf "${emoji[$i]}${emoji2[emoji_style]} "
done
From aa5279f2dc2502d13ae0e7d2fa8647db833e31f1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sun, 15 Apr 2018 15:20:26 +0200
Subject: [PATCH 036/644] Fix typo that resulted in math error (#6731)
[emotty] fix typo that resulted in math error
---
plugins/emotty/emotty.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/emotty/emotty.plugin.zsh b/plugins/emotty/emotty.plugin.zsh
index 6a8bf6127..b0d24c322 100644
--- a/plugins/emotty/emotty.plugin.zsh
+++ b/plugins/emotty/emotty.plugin.zsh
@@ -26,7 +26,7 @@ function emotty() {
# Use emotty set defined by user, fallback to default
local emotty=${_emotty_sets[${emotty_set:-$emotty_default_set}]}
# Parse $TTY number, normalizing it to an emotty set index
- (( tty = (${TTY##/dev/ttys} % ${#${=emotty}}) + 1 ))
+ (( tty = (${TTY##/dev/tty} % ${#${=emotty}}) + 1 ))
local character_name=${${=emotty}[tty]}
echo "${emoji[${character_name}]}${emoji2[emoji_style]}"
}
From fa93ea0d75c5079407862c3bbb48d2131577cd5d Mon Sep 17 00:00:00 2001
From: cori schlegel <46317+cori@users.noreply.github.com>
Date: Sun, 15 Apr 2018 08:48:31 -0500
Subject: [PATCH 037/644] [rkj-repos] Check for 'hg prompt' and exit if not
found (#6655)
* Check for extension, and exit if not found. Addresses #6036
* Fix styles in rkj-repos.theme
---
themes/rkj-repos.zsh-theme | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/themes/rkj-repos.zsh-theme b/themes/rkj-repos.zsh-theme
index ba2a0dba6..0d5a166ba 100644
--- a/themes/rkj-repos.zsh-theme
+++ b/themes/rkj-repos.zsh-theme
@@ -1,6 +1,9 @@
-# user, host, full path, and time/date
-# on two lines for easier vgrepping
-# entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
+# user, host, full path, and time/date on two lines for easier vgrepping
+
+if ! grep -q "prompt" ~/.hgrc; then
+ echo "This theme requires 'hg prompt' (https://bitbucket.org/sjl/hg-prompt/overview)"
+ return 1
+fi
function hg_prompt_info {
hg prompt --angle-brackets "\
@@ -33,4 +36,3 @@ function retcode() {}
PROMPT=$'%{$fg_bold[blue]%}┌─[%{$fg_bold[green]%}%n%b%{$fg[black]%}@%{$fg[cyan]%}%m%{$fg_bold[blue]%}]%{$reset_color%} - %{$fg_bold[blue]%}[%{$fg_bold[white]%}%~%{$fg_bold[blue]%}]%{$reset_color%} - %{$fg_bold[blue]%}[%b%{$fg[yellow]%}'%D{"%Y-%m-%d %I:%M:%S"}%b$'%{$fg_bold[blue]%}]
%{$fg_bold[blue]%}└─[%{$fg_bold[magenta]%}%?$(retcode)%{$fg_bold[blue]%}] <$(mygit)$(hg_prompt_info)>%{$reset_color%} '
PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
-
From 2fce6a0faf4e9c2c44521cd51ff8c88f11346e02 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sun, 15 Apr 2018 15:53:43 +0200
Subject: [PATCH 038/644] [archlinux] Fix function syntax to avoid clashes with
aliases
See https://bugs.debian.org/871816
Fixes #6592
---
plugins/archlinux/archlinux.plugin.zsh | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/plugins/archlinux/archlinux.plugin.zsh b/plugins/archlinux/archlinux.plugin.zsh
index 9172aaa70..79cc6ed11 100644
--- a/plugins/archlinux/archlinux.plugin.zsh
+++ b/plugins/archlinux/archlinux.plugin.zsh
@@ -84,19 +84,19 @@ if (( $+commands[pacaur] )); then
fi
if (( $+commands[trizen] )); then
- upgrade() {
+ function upgrade() {
trizen -Syu
}
elif (( $+commands[pacaur] )); then
- upgrade() {
+ function upgrade() {
pacaur -Syu
}
elif (( $+commands[yaourt] )); then
- upgrade() {
+ function upgrade() {
yaourt -Syu
}
else
- upgrade() {
+ function upgrade() {
sudo pacman -Syu
}
fi
@@ -129,13 +129,13 @@ else
alias pacupd='sudo pacman -Sy'
fi
-paclist() {
+function paclist() {
# Source: https://bbs.archlinux.org/viewtopic.php?id=93683
LC_ALL=C pacman -Qei $(pacman -Qu | cut -d " " -f 1) | \
awk 'BEGIN {FS=":"} /^Name/{printf("\033[1;36m%s\033[1;37m", $2)} /^Description/{print $2}'
}
-pacdisowned() {
+function pacdisowned() {
emulate -L zsh
tmp=${TMPDIR-/tmp}/pacman-disowned-$UID-$$
@@ -153,14 +153,14 @@ pacdisowned() {
comm -23 "$fs" "$db"
}
-pacmanallkeys() {
+function pacmanallkeys() {
emulate -L zsh
curl -s https://www.archlinux.org/people/{developers,trustedusers}/ | \
awk -F\" '(/pgp.mit.edu/) { sub(/.*search=0x/,""); print $1}' | \
xargs sudo pacman-key --recv-keys
}
-pacmansignkeys() {
+function pacmansignkeys() {
emulate -L zsh
for key in $*; do
sudo pacman-key --recv-keys $key
From ccd02866f67e704cd4844029c0f5787c0714e21c Mon Sep 17 00:00:00 2001
From: Jacopo De Simoi
Date: Sun, 15 Apr 2018 12:44:48 -0400
Subject: [PATCH 039/644] Fix git_commits_{ahead,before} when no upstream
branch is defined (#6658)
If @{u} is not defined, git rev-list will give an error; redirect
to stderr the error and deal with this case in what follows.
---
lib/git.zsh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/lib/git.zsh b/lib/git.zsh
index 9b0f6e36f..b55b762d7 100644
--- a/lib/git.zsh
+++ b/lib/git.zsh
@@ -77,8 +77,8 @@ function git_current_branch() {
# Gets the number of commits ahead from remote
function git_commits_ahead() {
if command git rev-parse --git-dir &>/dev/null; then
- local commits="$(git rev-list --count @{upstream}..HEAD)"
- if [[ "$commits" != 0 ]]; then
+ local commits="$(git rev-list --count @{upstream}..HEAD 2>/dev/null)"
+ if [[ -n "$commits" && "$commits" != 0 ]]; then
echo "$ZSH_THEME_GIT_COMMITS_AHEAD_PREFIX$commits$ZSH_THEME_GIT_COMMITS_AHEAD_SUFFIX"
fi
fi
@@ -87,8 +87,8 @@ function git_commits_ahead() {
# Gets the number of commits behind remote
function git_commits_behind() {
if command git rev-parse --git-dir &>/dev/null; then
- local commits="$(git rev-list --count HEAD..@{upstream})"
- if [[ "$commits" != 0 ]]; then
+ local commits="$(git rev-list --count HEAD..@{upstream} 2>/dev/null)"
+ if [[ -n "$commits" && "$commits" != 0 ]]; then
echo "$ZSH_THEME_GIT_COMMITS_BEHIND_PREFIX$commits$ZSH_THEME_GIT_COMMITS_BEHIND_SUFFIX"
fi
fi
From 4fa4e5fe4ad356e1531bd60715b7e01f510ab083 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Donncha=20=C3=93=20Cearbhaill?=
Date: Sun, 15 Apr 2018 18:47:38 +0200
Subject: [PATCH 040/644] Use HTTPS for manual git clone to avoid MITM (#6043)
The git:// transport is completely unauthenticated. An attacker on the local or upstream network can easily man-in-the-middle an oh-my-zsh update and get remote code execution on your system. Only the https:// git transport should be used.
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index a6d74cbd2..128a07fb5 100644
--- a/README.md
+++ b/README.md
@@ -141,7 +141,7 @@ export ZSH="$HOME/.dotfiles/oh-my-zsh"; sh -c "$(curl -fsSL https://raw.githubus
##### 1. Clone the repository:
```shell
-git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
+git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
```
##### 2. *Optionally*, backup your existing `~/.zshrc` file:
From dc57d1881bfddf68d6be32375233c4c9c0e6793c Mon Sep 17 00:00:00 2001
From: Philippe Proulx
Date: Sun, 15 Apr 2018 19:13:39 +0200
Subject: [PATCH 041/644] plugins/archlinux: add pacls, pacown, pacweb
---
plugins/archlinux/archlinux.plugin.zsh | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/plugins/archlinux/archlinux.plugin.zsh b/plugins/archlinux/archlinux.plugin.zsh
index 79cc6ed11..ae80eb9f0 100644
--- a/plugins/archlinux/archlinux.plugin.zsh
+++ b/plugins/archlinux/archlinux.plugin.zsh
@@ -117,6 +117,8 @@ alias paclsorphans='sudo pacman -Qdt'
alias pacrmorphans='sudo pacman -Rs $(pacman -Qtdq)'
alias pacfileupg='sudo pacman -Fy'
alias pacfiles='pacman -Fs'
+alias pacls='pacman -Ql'
+alias pacown='pacman -Qo'
if (( $+commands[abs] && $+commands[aur] )); then
@@ -169,3 +171,16 @@ function pacmansignkeys() {
--no-permission-warning --command-fd 0 --edit-key $key
done
}
+
+if (( $+commands[xdg-open] )); then
+ function pacweb() {
+ pkg="$1"
+ infos="$(pacman -Si "$pkg")"
+ if [[ -z "$infos" ]]; then
+ return
+ fi
+ repo="$(grep '^Repo' <<< "$infos" | grep -oP '[^ ]+$')"
+ arch="$(grep '^Arch' <<< "$infos" | grep -oP '[^ ]+$')"
+ xdg-open "https://www.archlinux.org/packages/$repo/$arch/$pkg/" &>/dev/null
+ }
+fi
From cfec5d56df0848723c6c34524e979384fbdf2c6b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sun, 15 Apr 2018 19:18:25 +0200
Subject: [PATCH 042/644] [archlinux] add recent aliases and functions to
readme
---
plugins/archlinux/README.md | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/plugins/archlinux/README.md b/plugins/archlinux/README.md
index a249ad62b..c3521c523 100644
--- a/plugins/archlinux/README.md
+++ b/plugins/archlinux/README.md
@@ -99,7 +99,9 @@
| pacupg | sudo pacman -Syu | Sync with repositories before upgrading packages |
| upgrade | sudo pacman -Syu | Sync with repositories before upgrading packages |
| pacfileupg | sudo pacman -Fy | Download fresh package databases from the server |
-| pacfiles | pacman -Fs | Search package file names for matching strings. |
+| pacfiles | pacman -Fs | Search package file names for matching strings |
+| pacls | pacman -Ql | List files in a package |
+| pacown | pacman -Qo | Show which package owns a file |
| Function | Description |
|----------------|------------------------------------------------------|
@@ -107,6 +109,7 @@
| paclist | List all installed packages with a short description |
| pacmanallkeys | Get all keys for developers and trusted users |
| pacmansignkeys | Locally trust all keys passed as parameters |
+| pacweb | Open the website of an ArchLinux package |
---
From a8f3b374d89bd8a4b9e61001b0edd8b96a084abf Mon Sep 17 00:00:00 2001
From: Erwan ROUSSEL
Date: Sun, 15 Apr 2018 19:54:42 +0200
Subject: [PATCH 043/644] npm init (#6648)
---
plugins/npm/npm.plugin.zsh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh
index 014fb55f8..43af35ddb 100644
--- a/plugins/npm/npm.plugin.zsh
+++ b/plugins/npm/npm.plugin.zsh
@@ -51,4 +51,7 @@ alias npmt="npm test"
alias npmR="npm run"
# Run npm publish
-alias npmP="npm publish"
\ No newline at end of file
+alias npmP="npm publish"
+
+# Run npm init
+alias npmI="npm init"
From 0bd9e5d85975f7f712f13b6178fba04a8c18d5d6 Mon Sep 17 00:00:00 2001
From: Artem Pyankov
Date: Sun, 31 Jul 2016 18:58:50 +0500
Subject: [PATCH 044/644] Add hanami plugin inspired by rails
---
plugins/hanami/hanami.plugin.zsh | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
create mode 100644 plugins/hanami/hanami.plugin.zsh
diff --git a/plugins/hanami/hanami.plugin.zsh b/plugins/hanami/hanami.plugin.zsh
new file mode 100644
index 000000000..349c42cae
--- /dev/null
+++ b/plugins/hanami/hanami.plugin.zsh
@@ -0,0 +1,19 @@
+alias -g HED='HANAMI_ENV=development'
+alias -g HEP='HANAMI_ENV=production'
+alias -g HET='HANAMI_ENV=test'
+
+alias hc='hanami console'
+alias hd='hanami destroy'
+alias hg='hanami generate'
+alias hgm='hanami generate migration'
+alias hs='hanami server'
+alias hsp='hanami server -p'
+alias hr='hanami routes'
+alias hdc='hanami db create'
+alias hdd='hanami db drop'
+alias hdp='hanami db prepare'
+alias hda='hanami db apply'
+alias hdv='hanami db version'
+alias hdrs='hdd && hdp'
+alias hdtp='HET hdp'
+alias hrg='hr | grep'
From e64cdc9ec40c4b98b612905cbdc6c86b14dc1fb6 Mon Sep 17 00:00:00 2001
From: Artem Pyankov
Date: Fri, 19 Aug 2016 01:18:14 +0500
Subject: [PATCH 045/644] Add README for hanami plugin
---
plugins/hanami/README.md | 6 ++++++
1 file changed, 6 insertions(+)
create mode 100644 plugins/hanami/README.md
diff --git a/plugins/hanami/README.md b/plugins/hanami/README.md
new file mode 100644
index 000000000..20e9dd5c4
--- /dev/null
+++ b/plugins/hanami/README.md
@@ -0,0 +1,6 @@
+# Hanami Plugin #
+This plugin adds convinient ways to work with [Hanami](http://hanamirb.org/) via console. It's inspired by Rails plugin, so if you've used it, you'll be like home.
+
+## Usage ##
+For example, type `hc` into your console when you're within Hanami project directory to run application console.
+You can read about available commands [here](http://hanamirb.org/guides/command-line/applications/), almost all of them have shortcut aliases with this plugin.
From 7c62c57b9f23b32685a3ce668b54edd3032456fb Mon Sep 17 00:00:00 2001
From: Artem Pyankov
Date: Sat, 27 Aug 2016 17:18:12 +0500
Subject: [PATCH 046/644] Add table of aliases for hanami plugin
---
plugins/hanami/README.md | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/plugins/hanami/README.md b/plugins/hanami/README.md
index 20e9dd5c4..81f2431a8 100644
--- a/plugins/hanami/README.md
+++ b/plugins/hanami/README.md
@@ -4,3 +4,26 @@ This plugin adds convinient ways to work with [Hanami](http://hanamirb.org/) via
## Usage ##
For example, type `hc` into your console when you're within Hanami project directory to run application console.
You can read about available commands [here](http://hanamirb.org/guides/command-line/applications/), almost all of them have shortcut aliases with this plugin.
+
+## Aliases ##
+
+| Alias | Description | Command |
+|-------|------------------------------------------|------------------------------------------------|
+| HED | Set environment variable HANAMI_ENV to development | HANAMI_ENV=development |
+| HEP | Set environment variable HANAMI_ENV to production | HANAMI_ENV=production |
+| HET | Set environment variable HANAMI_ENV to test | HANAMI_ENV=test |
+| hc | Run application console | hanami console |
+| hd | Remove specified hanami resource (model, action, migration, etc.) | hanami destroy |
+| hg | Create specified hanami resource (model, action, migration, etc.) | hanami generate | hanami generate |
+| hgm | Create migration file | hanami generate migration |
+| hs | Launch server with hanami application | hanami server |
+| hsp | Launch server with specified port | hanami server -p |
+| hr | List application routes | hanami routes |
+| hdc | Create application database | hanami db create |
+| hdd | Delete application database | hanami db drop |
+| hdp | Create application database, load schema (if any), run pending migrations | hanami db prepare |
+| hda | Run pending migrations, dump schema, delete all migration files | hanami db apply |
+| hdv | Print current database version (timestamp of last applied migration) | hanami db version |
+| hdrs | Drop and recreate application database | hdd && hdp |
+| hdtp | Actualize test environment database | HET hdp |
+| hrg | Grep hanami routes with specified pattern | hr | grep |
From ef9044c7225d62e8e56c494f7aafa7306b7015ad Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sun, 15 Apr 2018 20:25:50 +0200
Subject: [PATCH 047/644] Fix styling and format of hanami README
---
plugins/hanami/README.md | 49 +++++++++++++++++++++-------------------
1 file changed, 26 insertions(+), 23 deletions(-)
diff --git a/plugins/hanami/README.md b/plugins/hanami/README.md
index 81f2431a8..ef3451faf 100644
--- a/plugins/hanami/README.md
+++ b/plugins/hanami/README.md
@@ -1,29 +1,32 @@
# Hanami Plugin #
-This plugin adds convinient ways to work with [Hanami](http://hanamirb.org/) via console. It's inspired by Rails plugin, so if you've used it, you'll be like home.
+This plugin adds convenient ways to work with [Hanami](http://hanamirb.org/) via console.
+It's inspired by Rails plugin, so if you've used it, you'll feel like home.
## Usage ##
-For example, type `hc` into your console when you're within Hanami project directory to run application console.
-You can read about available commands [here](http://hanamirb.org/guides/command-line/applications/), almost all of them have shortcut aliases with this plugin.
+
+For example, type `hc` into your console when you're within Hanami project directory to run
+the application console. Have a look at available shortcuts below. You can read more about
+these commands [on the official website](http://hanamirb.org/guides/command-line/applications/).
## Aliases ##
-| Alias | Description | Command |
-|-------|------------------------------------------|------------------------------------------------|
-| HED | Set environment variable HANAMI_ENV to development | HANAMI_ENV=development |
-| HEP | Set environment variable HANAMI_ENV to production | HANAMI_ENV=production |
-| HET | Set environment variable HANAMI_ENV to test | HANAMI_ENV=test |
-| hc | Run application console | hanami console |
-| hd | Remove specified hanami resource (model, action, migration, etc.) | hanami destroy |
-| hg | Create specified hanami resource (model, action, migration, etc.) | hanami generate | hanami generate |
-| hgm | Create migration file | hanami generate migration |
-| hs | Launch server with hanami application | hanami server |
-| hsp | Launch server with specified port | hanami server -p |
-| hr | List application routes | hanami routes |
-| hdc | Create application database | hanami db create |
-| hdd | Delete application database | hanami db drop |
-| hdp | Create application database, load schema (if any), run pending migrations | hanami db prepare |
-| hda | Run pending migrations, dump schema, delete all migration files | hanami db apply |
-| hdv | Print current database version (timestamp of last applied migration) | hanami db version |
-| hdrs | Drop and recreate application database | hdd && hdp |
-| hdtp | Actualize test environment database | HET hdp |
-| hrg | Grep hanami routes with specified pattern | hr | grep |
+| Alias | Command | Description |
+|-------|---------------------------|---------------------------------------------------------|
+| HED | HANAMI_ENV=development | Set environment variable HANAMI_ENV to development |
+| HEP | HANAMI_ENV=production | Set environment variable HANAMI_ENV to production |
+| HET | HANAMI_ENV=test | Set environment variable HANAMI_ENV to test |
+| hc | hanami console | Run application console |
+| hd | hanami destroy | Remove specified hanami resource |
+| hg | hanami generate | Create specified hanami resource |
+| hgm | hanami generate migration | Create migration file |
+| hs | hanami server | Launch server with hanami application |
+| hsp | hanami server -p | Launch server with specified port |
+| hr | hanami routes | List application routes |
+| hdc | hanami db create | Create application database |
+| hdd | hanami db drop | Delete application database |
+| hdp | hanami db prepare | Prepare database for the current environment |
+| hda | hanami db apply | Recreates a fresh schema after migrations (destructive) |
+| hdv | hanami db version | Print current database version |
+| hdrs | hdd && hdp | Drop and recreate application database |
+| hdtp | HET hdp | Actualize test environment database |
+| hrg | hr | grep | Grep hanami routes with specified pattern |
From 5c047ae8ba54577f7e7471094bbce375339559ab Mon Sep 17 00:00:00 2001
From: Darius Grigalevicius <6205766+entregrammer@users.noreply.github.com>
Date: Sun, 15 Apr 2018 22:55:47 +0300
Subject: [PATCH 048/644] updated symfony plugin to add entity generation and
schema update aliases (#5042)
---
plugins/symfony2/symfony2.plugin.zsh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/symfony2/symfony2.plugin.zsh b/plugins/symfony2/symfony2.plugin.zsh
index c2a1affad..0b608fe2a 100644
--- a/plugins/symfony2/symfony2.plugin.zsh
+++ b/plugins/symfony2/symfony2.plugin.zsh
@@ -25,5 +25,7 @@ alias sfcw='sf cache:warmup'
alias sfroute='sf debug:router'
alias sfcontainer='sf debug:container'
alias sfgb='sf generate:bundle'
+alias sfge='sf doctrine:generate:entity'
+alias sfsu='sf doctrine:schema:update'
alias sfdev='sf --env=dev'
alias sfprod='sf --env=prod'
From 86a0b8656213951d132e0466c5ffb24150b0aaf1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AE=89=E6=AD=A3=E8=B6=85?=
Date: Wed, 18 Apr 2018 03:34:03 +0800
Subject: [PATCH 049/644] [cloud theme] add a space (#3215)
---
themes/cloud.zsh-theme | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/themes/cloud.zsh-theme b/themes/cloud.zsh-theme
index 4efbf9776..59a3472b6 100644
--- a/themes/cloud.zsh-theme
+++ b/themes/cloud.zsh-theme
@@ -6,5 +6,5 @@ PROMPT='%{$fg_bold[cyan]%}$ZSH_THEME_CLOUD_PREFIX %{$fg_bold[green]%}%p %{$fg[gr
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}[%{$fg[cyan]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
-ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}] %{$fg[yellow]%}⚡%{$reset_color%}"
-ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}]"
\ No newline at end of file
+ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}] %{$fg[yellow]%}⚡ %{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[green]%}]"
From 4fec0a46e73479cf3b9e7f953750af5ed5df87ac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Tue, 17 Apr 2018 22:14:23 +0200
Subject: [PATCH 050/644] [installer] use `command -v` to check for git
Quick fix to the script not finding git due to hash.
Solves #6697.
---
tools/install.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/install.sh b/tools/install.sh
index 187c828f5..840a0d7d8 100755
--- a/tools/install.sh
+++ b/tools/install.sh
@@ -49,7 +49,7 @@ main() {
umask g-w,o-w
printf "${BLUE}Cloning Oh My Zsh...${NORMAL}\n"
- hash git >/dev/null 2>&1 || {
+ command -v git >/dev/null 2>&1 || {
echo "Error: git is not installed"
exit 1
}
From 6c9af4455d850a2717d995bf9943b275227c9d99 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Thu, 19 Apr 2018 21:03:52 +0200
Subject: [PATCH 051/644] Add exemplary custom theme folder
Co-authored-by: Profpatsch
---
custom/themes/example.zsh-theme | 1 +
1 file changed, 1 insertion(+)
create mode 100644 custom/themes/example.zsh-theme
diff --git a/custom/themes/example.zsh-theme b/custom/themes/example.zsh-theme
new file mode 100644
index 000000000..6f9c9db8c
--- /dev/null
+++ b/custom/themes/example.zsh-theme
@@ -0,0 +1 @@
+# Put your custom themes in this folder.
From d7948b39dc662c8072a307869135c8a7cae89cf9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Thu, 19 Apr 2018 23:32:53 +0200
Subject: [PATCH 052/644] [rkj-repos] Make `hg prompt` check less strict
(#6746)
* [rkj-repos] Make `hg prompt` check less strict
Move the `hg prompt` check inside the hg_prompt_info function so that
it returns an empty string if hg-prompt isn't installed.
Fixes #6743.
* [rkj-repos] Check for hg in `hg prompt` function
---
themes/rkj-repos.zsh-theme | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/themes/rkj-repos.zsh-theme b/themes/rkj-repos.zsh-theme
index 0d5a166ba..65a075456 100644
--- a/themes/rkj-repos.zsh-theme
+++ b/themes/rkj-repos.zsh-theme
@@ -1,16 +1,13 @@
# user, host, full path, and time/date on two lines for easier vgrepping
-if ! grep -q "prompt" ~/.hgrc; then
- echo "This theme requires 'hg prompt' (https://bitbucket.org/sjl/hg-prompt/overview)"
- return 1
-fi
-
function hg_prompt_info {
+ if (( $+commands[hg] )) && grep -q "prompt" ~/.hgrc; then
hg prompt --angle-brackets "\
%{$reset_color%}><:%{$fg[magenta]%}%{$reset_color%}>\
%{$fg[yellow]%}%{$reset_color%}>\
%{$fg[red]%}%{$reset_color%}<
patches: >" 2>/dev/null
+ fi
}
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[cyan]%}+"
From 9a71864288e5fb3898b0764db3e547cf7bb7328c Mon Sep 17 00:00:00 2001
From: Chris Fleming
Date: Sat, 21 Apr 2018 21:26:36 +0100
Subject: [PATCH 053/644] Fix gpg-agent plugin checks (#6469)
* Always try and start gpg-agent, with --use-standard-socket it will try and use a standard socket directory. It won't start multiple agents if agent is already running. In addition, XDG_RUNTIME_DIR isn't always set
* ssh socket if broken if --daemon is run again, so onky start if we don't have a socket
* Removed unnecessary allocation of GPG_SSH_AUTH_SOCK
---
plugins/gpg-agent/gpg-agent.plugin.zsh | 22 ++++++++++++----------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/plugins/gpg-agent/gpg-agent.plugin.zsh b/plugins/gpg-agent/gpg-agent.plugin.zsh
index 69e239ccf..6a94f598f 100644
--- a/plugins/gpg-agent/gpg-agent.plugin.zsh
+++ b/plugins/gpg-agent/gpg-agent.plugin.zsh
@@ -1,14 +1,16 @@
-# Enable gpg-agent if it is not running
-GPG_AGENT_SOCKET="${XDG_RUNTIME_DIR}/gnupg/S.gpg-agent.ssh"
-if [ ! -S $GPG_AGENT_SOCKET ]; then
- gpg-agent --daemon >/dev/null 2>&1
- export GPG_TTY=$(tty)
-fi
+# Enable gpg-agent if it is not running-
+# --use-standard-socket will work from version 2 upwards
-# Set SSH to use gpg-agent if it is configured to do so
-GNUPGCONFIG="${GNUPGHOME:-"$HOME/.gnupg"}/gpg-agent.conf"
-if [ -r "$GNUPGCONFIG" ] && grep -q enable-ssh-support "$GNUPGCONFIG"; then
+AGENT_SOCK=`gpgconf --list-dirs | grep agent-socket | cut -d : -f 2`
+
+if [ ! -S ${AGENT_SOCK} ]; then
+ gpg-agent --daemon --use-standard-socket >/dev/null 2>&1
+fi
+export GPG_TTY=$(tty)
+
+# Set SSH to use gpg-agent if it's enabled
+if [ -S "${AGENT_SOCK}.ssh" ]; then
+ export SSH_AUTH_SOCK="${AGENT_SOCK}.ssh"
unset SSH_AGENT_PID
- export SSH_AUTH_SOCK=$GPG_AGENT_SOCKET
fi
From 9a7c56dcddfd007499bc59560c1de282611f6813 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Wed, 26 Oct 2016 20:04:14 +0200
Subject: [PATCH 054/644] zsh_reload: fix code style and indent with tabs
---
plugins/zsh_reload/zsh_reload.plugin.zsh | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/plugins/zsh_reload/zsh_reload.plugin.zsh b/plugins/zsh_reload/zsh_reload.plugin.zsh
index cde9ebeca..e3aed5d7a 100644
--- a/plugins/zsh_reload/zsh_reload.plugin.zsh
+++ b/plugins/zsh_reload/zsh_reload.plugin.zsh
@@ -1,13 +1,11 @@
-# reload zshrc
-function src()
-{
- local cache=$ZSH_CACHE_DIR
- autoload -U compinit zrecompile
- compinit -d "$cache/zcomp-$HOST"
+src() {
+ local cache="$ZSH_CACHE_DIR"
+ autoload -U compinit zrecompile
+ compinit -d "$cache/zcomp-$HOST"
- for f in ~/.zshrc "$cache/zcomp-$HOST"; do
- zrecompile -p $f && command rm -f $f.zwc.old
- done
+ for f in ~/.zshrc "$cache/zcomp-$HOST"; do
+ zrecompile -p $f && command rm -f $f.zwc.old
+ done
- source ~/.zshrc
+ source ~/.zshrc
}
From 8706c8eb64c7eb40fe1acda30404ebc24fdb7f73 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Wed, 26 Oct 2016 20:09:08 +0200
Subject: [PATCH 055/644] zsh_reload: ignore insecure compinit files
---
plugins/zsh_reload/zsh_reload.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/zsh_reload/zsh_reload.plugin.zsh b/plugins/zsh_reload/zsh_reload.plugin.zsh
index e3aed5d7a..b3a0094d1 100644
--- a/plugins/zsh_reload/zsh_reload.plugin.zsh
+++ b/plugins/zsh_reload/zsh_reload.plugin.zsh
@@ -1,7 +1,7 @@
src() {
local cache="$ZSH_CACHE_DIR"
autoload -U compinit zrecompile
- compinit -d "$cache/zcomp-$HOST"
+ compinit -i -d "$cache/zcomp-$HOST"
for f in ~/.zshrc "$cache/zcomp-$HOST"; do
zrecompile -p $f && command rm -f $f.zwc.old
From 405b8f220abe35eabc408566d7c4442a3a8149db Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Wed, 26 Oct 2016 20:05:57 +0200
Subject: [PATCH 056/644] zsh_reload: use `exec zsh` instead of `source
~/.zshrc`
`source ~/.zshrc` is a bad practice, it doesn't make sure that the full
zsh session is reloaded and it may have side effects.
Use `$SHELL` as the path to zsh if it exists (this will fix edge cases
where the zsh used is not the first on $PATH). Otherwise, use `zsh`.
---
plugins/zsh_reload/zsh_reload.plugin.zsh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/plugins/zsh_reload/zsh_reload.plugin.zsh b/plugins/zsh_reload/zsh_reload.plugin.zsh
index b3a0094d1..51048ba9d 100644
--- a/plugins/zsh_reload/zsh_reload.plugin.zsh
+++ b/plugins/zsh_reload/zsh_reload.plugin.zsh
@@ -7,5 +7,6 @@ src() {
zrecompile -p $f && command rm -f $f.zwc.old
done
- source ~/.zshrc
+ # Use $SHELL if available; remove leading dash if login shell
+ [[ -n "$SHELL" ]] && exec ${SHELL#-} || exec zsh
}
From fbbe902c38549dae8c8e997daeebcc797103ab7c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Wed, 2 Nov 2016 10:16:59 +0100
Subject: [PATCH 057/644] zsh_reload: add README
---
plugins/zsh_reload/README.md | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
create mode 100644 plugins/zsh_reload/README.md
diff --git a/plugins/zsh_reload/README.md b/plugins/zsh_reload/README.md
new file mode 100644
index 000000000..d31a827fe
--- /dev/null
+++ b/plugins/zsh_reload/README.md
@@ -0,0 +1,23 @@
+# zsh_reload plugin
+
+The zsh_reload plugin defines a function to reload the zsh session with
+just a few keystrokes.
+
+To use it, add `zsh_reload` to the plugins array in your zshrc file:
+
+```zsh
+plugins=(... zsh_reload)
+```
+
+## Usage
+
+To reload the zsh session, just run `src`:
+
+```zsh
+$ vim ~/.zshrc # enabled a plugin
+$ src
+re-compiling /home/user/.zshrc.zwc: succeeded
+re-compiling /home/user/.oh-my-zsh/cache/zcomp-host.zwc: succeeded
+
+# you now have a fresh zsh session. happy hacking!
+```
From d87d4331cfab6cffbcc2366a855855b9a5c5e848 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sun, 15 Jun 2014 21:08:04 +0200
Subject: [PATCH 058/644] Change history alias into a function
This commit changes the history alias into a function which puts
the passed arguments before `-l 1`. It also provides a temporary
workaround to the lack of a `history -c` command in zsh.
For more information see issues 739 and 789.
---
lib/history.zsh | 22 +++++++++++++++++-----
1 file changed, 17 insertions(+), 5 deletions(-)
diff --git a/lib/history.zsh b/lib/history.zsh
index 5de71c2d3..8a861fdbc 100644
--- a/lib/history.zsh
+++ b/lib/history.zsh
@@ -6,12 +6,24 @@ fi
HISTSIZE=10000
SAVEHIST=10000
-# Show history
+## History wrapper
+function omz_history {
+ # Delete the history file if `-c' argument provided.
+ # This won't affect the `history' command output until the next login.
+ if [[ "${@[(i)-c]}" -le $# ]]; then
+ echo -n >| "$HISTFILE"
+ echo >&2 History file deleted. Reload the session to see its effects.
+ else
+ fc $@ -l 1
+ fi
+}
+
+# Timestamp format
case $HIST_STAMPS in
- "mm/dd/yyyy") alias history='fc -fl 1' ;;
- "dd.mm.yyyy") alias history='fc -El 1' ;;
- "yyyy-mm-dd") alias history='fc -il 1' ;;
- *) alias history='fc -l 1' ;;
+ "mm/dd/yyyy") alias history='omz_history -f' ;;
+ "dd.mm.yyyy") alias history='omz_history -E' ;;
+ "yyyy-mm-dd") alias history='omz_history -i' ;;
+ *) alias history='omz_history' ;;
esac
setopt append_history
From 94baa9eadd05038a343bfd99f01493123f5a1526 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sat, 13 Dec 2014 23:20:03 +0100
Subject: [PATCH 059/644] Simplify `if' into oneliner, allow spaces in HISTFILE
---
lib/history.zsh | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/lib/history.zsh b/lib/history.zsh
index 8a861fdbc..058a1a319 100644
--- a/lib/history.zsh
+++ b/lib/history.zsh
@@ -1,8 +1,5 @@
## Command history configuration
-if [ -z "$HISTFILE" ]; then
- HISTFILE=$HOME/.zsh_history
-fi
-
+[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history"
HISTSIZE=10000
SAVEHIST=10000
From 643bb25a0d2bd5c2ef316a88021e1ac4eb156bf8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sat, 13 Dec 2014 23:31:56 +0100
Subject: [PATCH 060/644] Organize history.zsh file and improve comments
---
lib/history.zsh | 27 ++++++++++++++-------------
1 file changed, 14 insertions(+), 13 deletions(-)
diff --git a/lib/history.zsh b/lib/history.zsh
index 058a1a319..da1e02ddf 100644
--- a/lib/history.zsh
+++ b/lib/history.zsh
@@ -1,8 +1,3 @@
-## Command history configuration
-[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history"
-HISTSIZE=10000
-SAVEHIST=10000
-
## History wrapper
function omz_history {
# Delete the history file if `-c' argument provided.
@@ -23,11 +18,17 @@ case $HIST_STAMPS in
*) alias history='omz_history' ;;
esac
-setopt append_history
-setopt extended_history
-setopt hist_expire_dups_first
-setopt hist_ignore_dups # ignore duplication command history list
-setopt hist_ignore_space
-setopt hist_verify
-setopt inc_append_history
-setopt share_history # share command history data
+## History file configuration
+[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history"
+HISTSIZE=10000
+SAVEHIST=10000
+
+## History command configuration
+setopt append_history # append history to HISTFILE on session exit
+setopt extended_history # record timestamp of command in HISTFILE
+setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE
+setopt hist_ignore_dups # ignore duplicated commands history list
+setopt hist_ignore_space # ignore commands that start with space
+setopt hist_verify # show command with history expansion to user before running it
+setopt inc_append_history # add commands to HISTFILE in order of execution
+setopt share_history # share command history data
From 03758416fe99f0f1cb9f19ad1a7846de1b02f21a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Thu, 18 Dec 2014 12:08:56 +0100
Subject: [PATCH 061/644] Ensure builtin fc is used (see #3001)
---
lib/history.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/history.zsh b/lib/history.zsh
index da1e02ddf..21e9c7563 100644
--- a/lib/history.zsh
+++ b/lib/history.zsh
@@ -6,7 +6,7 @@ function omz_history {
echo -n >| "$HISTFILE"
echo >&2 History file deleted. Reload the session to see its effects.
else
- fc $@ -l 1
+ builtin fc "$@" -l 1
fi
}
From f8180c3a64754057d696a4fb1cf3639c394377b9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Thu, 18 Dec 2014 20:36:56 +0100
Subject: [PATCH 062/644] Allow overriding -l flag in history
---
lib/history.zsh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/lib/history.zsh b/lib/history.zsh
index 21e9c7563..e6c94fcc0 100644
--- a/lib/history.zsh
+++ b/lib/history.zsh
@@ -5,6 +5,8 @@ function omz_history {
if [[ "${@[(i)-c]}" -le $# ]]; then
echo -n >| "$HISTFILE"
echo >&2 History file deleted. Reload the session to see its effects.
+ elif [[ "${@[(i)-l]}" -le $# ]]; then
+ builtin fc "$@"
else
builtin fc "$@" -l 1
fi
From 20d63be655bfed2104858dc87052a310f9c45224 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Thu, 18 Dec 2014 21:56:49 +0100
Subject: [PATCH 063/644] Use zparseopts to get passed arguments
---
lib/history.zsh | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/lib/history.zsh b/lib/history.zsh
index e6c94fcc0..23e96c9db 100644
--- a/lib/history.zsh
+++ b/lib/history.zsh
@@ -2,12 +2,18 @@
function omz_history {
# Delete the history file if `-c' argument provided.
# This won't affect the `history' command output until the next login.
- if [[ "${@[(i)-c]}" -le $# ]]; then
+ zparseopts -E c=clear l=list
+
+ if [[ -n "$clear" ]]; then
+ # if -c provided, clobber the history file
echo -n >| "$HISTFILE"
echo >&2 History file deleted. Reload the session to see its effects.
- elif [[ "${@[(i)-l]}" -le $# ]]; then
+ elif [[ -n "$list" ]]; then
+ # if -l provided, run as if calling `fc' directly
builtin fc "$@"
else
+ # otherwise, call `fc -l 1` to show all available
+ # history (and pass additional parameters)
builtin fc "$@" -l 1
fi
}
From 9f2f22d953acc62a2a0ba5f08a746e47be3a6d4e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sun, 22 Apr 2018 15:25:30 +0200
Subject: [PATCH 064/644] Remove duplicate option append_history
The option inc_append_history already has the same effect.
---
lib/history.zsh | 1 -
1 file changed, 1 deletion(-)
diff --git a/lib/history.zsh b/lib/history.zsh
index 23e96c9db..8a1bc010d 100644
--- a/lib/history.zsh
+++ b/lib/history.zsh
@@ -32,7 +32,6 @@ HISTSIZE=10000
SAVEHIST=10000
## History command configuration
-setopt append_history # append history to HISTFILE on session exit
setopt extended_history # record timestamp of command in HISTFILE
setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTSIZE
setopt hist_ignore_dups # ignore duplicated commands history list
From 2589cdd8f9603d03f5b84aab57fda96ac0259f79 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sun, 22 Apr 2018 15:26:57 +0200
Subject: [PATCH 065/644] Increment HISTSIZE to fix hist_expire_dups_first
This fixes the old behavior which made it so all duplicates would be
deleted if the command history filled up with unique events.
> You should be sure to set the value of HISTSIZE to a larger number
> than SAVEHIST in order to give you some room for the duplicated
> events, otherwise this option will behave just like HIST_IGNORE_ALL_DUPS
> once the history fills up with unique events.
---
lib/history.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/history.zsh b/lib/history.zsh
index 8a1bc010d..7d4e59d00 100644
--- a/lib/history.zsh
+++ b/lib/history.zsh
@@ -28,7 +28,7 @@ esac
## History file configuration
[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history"
-HISTSIZE=10000
+HISTSIZE=50000
SAVEHIST=10000
## History command configuration
From ef68878b22398ea410ca2c19c770bce88aa967fc Mon Sep 17 00:00:00 2001
From: Andrew Janke
Date: Thu, 26 Feb 2015 19:13:36 -0500
Subject: [PATCH 066/644] Rebuild the chucknorris fortune file with a scrapper,
using 20 pages worth
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
NOTE: The scrapper was previously included, but due to the website it scrapped
being dead it's no longer useful. See #3642 for the code.
Co-authored-by: Marc Cornellà
---
plugins/chucknorris/fortunes/chucknorris | 2545 ++++++++++++++++++----
1 file changed, 2091 insertions(+), 454 deletions(-)
diff --git a/plugins/chucknorris/fortunes/chucknorris b/plugins/chucknorris/fortunes/chucknorris
index e705d1c13..2a13b060f 100644
--- a/plugins/chucknorris/fortunes/chucknorris
+++ b/plugins/chucknorris/fortunes/chucknorris
@@ -1,907 +1,2544 @@
-Chuck Norris' tears cure cancer. Too bad he has never cried. Ever.
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
%
-Chuck Norris does not sleep. He waits.
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
%
-Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
%
-The chief export of Chuck Norris is pain.
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
%
-If you can see Chuck Norris, he can see you. If you can't see Chuck Norris, you may be only seconds away from death.
+Chuck Norris does not sleep. He waits.
%
-Chuck Norris has counted to infinity. Twice.
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
%
-Chuck Norris does not hunt because the word hunting implies the probability of failure. Chuck Norris goes killing.
+Chuck Norris is the reason why Waldo is hiding.
%
-Chuck Norris' blood type is AK+. Ass-Kicking Positive. It is compatible only with heavy construction equipment, tanks, and fighter jets.
+Chuck Norris counted to infinity - twice.
%
-Chuck Norris is 1/8th Cherokee. This has nothing to do with ancestry, the man ate a fucking Indian.
+There is no chin behind Chuck Norris’ beard. There is only another fist.
%
-In fine print on the last page of the Guinness Book of World Records it notes that all world records are held by Chuck Norris, and those listed in the book are simply the closest anyone else has ever gotten.
+In fine print on the last page of the Guinness Book of World Records it notes that all world records are held by Chuck Norris, and those listed in the book are simply the closest anyone else has ever gotten.
%
There is no chin behind Chuck Norris' beard. There is only another fist.
%
-Chuck Norris does not teabag the ladies. He potato-sacks them.
+Chuck Norris does not teabag the ladies. He potato-sacks them.
%
-Pluto is actually an orbiting group of British soldiers from the American Revolution who entered space after the Chuck gave them a roundhouse kick to the face.
+Pluto is actually an orbiting group of British soldiers from the American Revolution who entered space after the Chuck gave them a roundhouse kick to the face.
%
-When Chuck Norris goes to donate blood, he declines the syringe, and instead requests a hand gun and a bucket.
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
%
-There are no steroids in baseball. Just players Chuck Norris has breathed on.
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
%
-Chuck Norris once challenged Lance Armstrong in a "Who has more testicles?" contest. Chuck Norris won by 5.
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
%
-Chuck Norris was the fourth wise man, who gave baby Jesus the gift of beard, which he carried with him until he died. The other three wise men were enraged by the preference that Jesus showed to Chuck's gift, and arranged to have him written out of the bible. All three died soon after of mysterious roundhouse-kick related injuries.
+Chuck Norris can lead a horse to water AND make it drink.
%
-Chuck Norris sheds his skin twice a year.
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
%
-When Chuck Norris calls 1-900 numbers, he doesnt get charged. He holds up the phone and money falls out.
+Chuck Norris can slam a revolving door.
%
-Chuck Norris once ate a whole cake before his friends could tell him there was a stripper in it.
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
%
-Some people like to eat frogs' legs. Chuck Norris likes to eat lizard legs. Hence, snakes.
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
%
-There are no races, only countries of people Chuck Norris has beaten to different shades of black and blue.
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
%
-When Chuck Norris was denied an Egg McMuffin at McDonald's because it was 10:35, he roundhouse kicked the store so hard it became a Wendy's.
+If you spell Chuck Norris in Scrabble, you win. Forever.
%
-Chuck Norris can't finish a "color by numbers" because his markers are filled with the blood of his victims. Unfortunately, all blood is dark red.
+Guns don't kill people. Chuck Norris kills people.
%
-A Chuck Norris-delivered Roundhouse Kick is the preferred method of execution in 16 states.
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
%
-When Chuck Norris falls in water, Chuck Norris doesn't get wet. Water gets Chuck Norris.
+The chief export of Chuck Norris is Pain.
%
-Scientists have estimated that the energy given off during the Big Bang is roughly equal to 1CNRhK (Chuck Norris Roundhouse Kick)
+Chuck Norris has two speeds. Walk, and Kill.
%
-Chuck Norris' house has no doors, only walls that he walks through.
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
%
-When Chuck Norris has sex with a man, it won't be because he is gay. It will be because he has run out of women.
+Chuck Norris drives an ice cream truck covered in human skulls.
%
-How much wood would a woodchuck chuck if a woodchuck could Chuck Norris? ...All of it.
+Chuck Norris is my Homeboy.
%
-Chuck Norris doesn't actually write books, the words assemble themselves out of fear.
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
%
-In honor of Chuck Norris, all McDonald's in Texas have an even larger size than the super-size. When ordering, just ask to be "Norrisized".
+Chuck Norris uses pepper spray to spice up his steaks.
%
-Chuck Norris CAN believe it's not butter.
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
%
-If tapped, a Chuck Norris roundhouse kick could power the country of Australia for 44 minutes.
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
%
-Chuck Norris can divide by zero.
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
%
-The grass is always greener on the other side, unless Chuck Norris has been there. In that case the grass is most likely soaked in blood and tears.
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
%
-A picture is worth a thousand words. A Chuck Norris is worth 1 billion words.
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
%
-Newton's Third Law is wrong: Although it states that for each action, there is an equal and opposite reaction, there is no force equal in reaction to a Chuck Norris roundhouse kick.
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
%
-Chuck Norris invented his own type of karate. It's called Chuck-Will-Kill.
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
%
-When an episode of Walker Texas Ranger was aired in France, the French surrendered to Chuck Norris just to be on the safe side.
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
%
-While urinating, Chuck Norris is easily capable of welding titanium.
+The quickest way to a man's heart is with Chuck Norris' fist.
%
-Chuck Norris once sued the Houghton-Mifflin textbook company when it became apparent that their account of the war of 1812 was plagiarized from his autobiography.
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
%
-When Chuck Norris talks, everybody listens. And dies.
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
%
-When Steven Seagal kills a ninja, he only takes its hide. When Chuck Norris kills a ninja, he uses every part.
+Chuck Norris can win a game of Connect Four in only three moves.
%
-Wilt Chamberlain claims to have slept with more than 20,000 women in his lifetime. Chuck Norris calls this "a slow Tuesday."
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
%
-Contrary to popular belief, there is indeed enough Chuck Norris to go around.
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
%
-Chuck Norris doesnt shave; he kicks himself in the face. The only thing that can cut Chuck Norris is Chuck Norris.
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
%
-For some, the left testicle is larger than the right one. For Chuck Norris, each testicle is larger than the other one.
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
%
-Chuck Norris always knows the EXACT location of Carmen SanDiego.
+Chuck Norris doesn’t wash his clothes, he disembowels them.
%
-When taking the SAT, write "Chuck Norris" for every answer. You will score over 8000.
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
%
-Chuck Norris invented black. In fact, he invented the entire spectrum of visible light. Except pink. Tom Cruise invented pink.
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
%
-When you're Chuck Norris, anything + anything is equal to 1. One roundhouse kick to the face.
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
%
-Chuck Norris has the greatest Poker-Face of all time. He won the 1983 World Series of Poker, despite holding only a Joker, a Get out of Jail Free Monopoloy card, a 2 of clubs, 7 of spades and a green #4 card from the game UNO.
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
%
-On his birthday, Chuck Norris randomly selects one lucky child to be thrown into the sun.
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
%
-Nobody doesn't like Sara Lee. Except Chuck Norris.
+Chuck Norris can win in a top spinning tournament with a cube
%
-Chuck Norris doesn't throw up if he drinks too much. Chuck Norris throws down!
+Beware of dogs... Dogs, beware of Chuck Norris.
%
-In the beginning there was nothing...then Chuck Norris Roundhouse kicked that nothing in the face and said "Get a job". That is the story of the universe.
+Chuck Norris can dig a hole in air.
%
-Chuck Norris has 12 moons. One of those moons is the Earth.
+The apple falls far from the tree, when a roundhouse kick is taken to the trunk.
%
-Chuck Norris grinds his coffee with his teeth and boils the water with his own rage.
+Chuck Norris - the new standard.
%
-Archeologists unearthed an old english dictionary dating back to the year 1236. It defined "victim" as "one who has encountered Chuck Norris"
+Chuck Norris told me to put this here.
%
-Chuck Norris ordered a Big Mac at Burger King, and got one.
+Chuck Norris doesn't exhale. The air runs desperately scared out of his lungs.
%
-Chuck Norris and Mr. T walked into a bar. The bar was instantly destroyed, as that level of awesome cannot be contained in one building.
+Fear of spiders is aracnaphobia, fear of tight spaces is chlaustraphobia, fear of Chuck Norris is called Logic
%
-If you Google search "Chuck Norris getting his ass kicked" you will generate zero results. It just doesn't happen.
+When Chuck Norris goes to rodeos, bulls ride him.
%
-Chuck Norris can drink an entire gallon of milk in thirty-seven seconds.
+Chuck Norris once walked down a street with his fists in his pockets. He was then arrested for concealing two deadly weapons.
%
-Little known medical fact: Chuck Norris invented the Caesarean section when he roundhouse-kicked his way out of his monther's womb.
+The meaning of life is Chuck Norris
%
-Chuck Norris doesn't bowl strikes, he just knocks down one pin and the other nine faint.
+Chuck Norris is the meaning of life. Too bad he's also the meaning of death.
%
-The show Survivor had the original premise of putting people on an island with Chuck Norris. There were no survivors, and nobody is brave enough to go to the island to retrieve the footage.
+If God doesn't know, Chuck does
%
-It takes Chuck Norris 20 minutes to watch 60 Minutes.
+Chuck Norris doesn't bowl strikes, he just knocks down one pin and the other nine faint.
%
-You know how they say if you die in your dream then you will die in real life? In actuality, if you dream of death then Chuck Norris will find you and kill you.
+The show Survivor had the original premise of putting people on an island with Chuck Norris. There were no survivors, and nobody is brave enough to go to the island to retrieve the footage.
%
-Chuck Norris has a deep and abiding respect for human life... unless it gets in his way.
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
%
-The Bermuda Triangle used to be the Bermuda Square, until Chuck Norris Roundhouse kicked one of the corners off.
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
%
-There are no weapons of mass destruction in Iraq, Chuck Norris lives in Oklahoma.
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
%
-Chuck Norris doesn't believe in Germany.
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
%
-When Chuck Norris is in a crowded area, he doesn't walk around people. He walks through them.
+Chuck Norris does not sleep. He waits.
%
-Chuck Norris once ate an entire bottle of sleeping pills. They made him blink.
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
%
-James Cameron wanted Chuck Norris to play the Terminator. However, upon reflection, he realized that would have turned his movie into a documentary, so he went with Arnold Schwarzenegger.
+Chuck Norris is the reason why Waldo is hiding.
%
-Chuck Norris can touch MC Hammer.
+Chuck Norris counted to infinity - twice.
%
-Thousands of years ago Chuck Norris came across a bear. It was so terrified that it fled north into the arctic. It was also so terrified that all of its decendents now have white hair.
+There is no chin behind Chuck Norris’ beard. There is only another fist.
%
-Chuck Norris played Russian Roulette with a fully loaded gun and won.
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
%
-It takes 14 puppeteers to make Chuck Norris smile, but only 2 to make him destroy an orphanage.
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
%
-Chuck Norris is responsible for China's over-population. He hosted a Karate tournament in Beijing and all women within 1,000 miles became pregnant instantly.
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
%
-Some people wear Superman pajamas. Superman wears Chuck Norris pajamas.
+Chuck Norris can lead a horse to water AND make it drink.
%
-Chuck Norris once worked as a weatherman for the San Diego evening news. Every night he would make the same forecast: Partly cloudy with a 75% chance of Pain.
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
%
-Simply by pulling on both ends, Chuck Norris can stretch diamonds back into coal.
+Chuck Norris can slam a revolving door.
%
-When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
%
-Chuck Norris invented the bolt-action rifle, liquor, sexual intercourse, and football-- in that order.
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
%
-A high tide means Chuck Norris is flying over your coast. The tide is caused by God pissing his pants.
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
%
-Chuck Norris keeps his friends close and his enemies closer. Close enough to drop them with one round house kick to the face.
+If you spell Chuck Norris in Scrabble, you win. Forever.
%
-There is in fact an "I" in Norris, but there is no "team"? not even close.
+Guns don't kill people. Chuck Norris kills people.
%
-Scotty in Star Trek often says "Ye cannae change the laws of physics." This is untrue. Chuck Norris can change the laws of physics. With his fists.
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
%
-An anagram for Walker Texas Ranger is KARATE WRANGLER SEX. I don't know what that is, but it sounds AWESOME.
+The chief export of Chuck Norris is Pain.
%
-Chuck Norris doesn't stub his toes. He accidentally destroys chairs, bedframes, and sidewalks.
+Chuck Norris has two speeds. Walk, and Kill.
%
-Using his trademark roundhouse kick, Chuck Norris once made a fieldgoal in RJ Stadium in Tampa Bay from the 50 yard line of Qualcomm stadium in San Diego.
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
%
-Chuck Norris roundhouse kicks don't really kill people. They wipe out their entire existence from the space-time continuum.
+Chuck Norris drives an ice cream truck covered in human skulls.
%
-Chuck Norris does not own a stove, oven, or microwave , because revenge is a dish best served cold.
+Chuck Norris is my Homeboy.
%
-Tom Clancy has to pay royalties to Chuck Norris because "The Sum of All Fears" is the name of Chuck Norris' autobiography.
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
%
-Chuck Norris can slam a revolving door.
+Chuck Norris uses pepper spray to spice up his steaks.
%
-Chuck Norris is expected to win gold in every swimming competition at the 2008 Beijing Olympics, even though Chuck Norris does not swim. This is because when Chuck Norris enters the water, the water gets out of his way and Chuck Norris simply walks across the pool floor.
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
%
-Chuck Norris built a better mousetrap, but the world was too frightened to beat a path to his door.
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
%
-The original draft of The Lord of the Rings featured Chuck Norris instead of Frodo Baggins. It was only 5 pages long, as Chuck roundhouse-kicked Sauron's ass halfway through the first chapter.
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
%
-Hellen Keller's favorite color is Chuck Norris.
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
%
-Chuck Norris eats beef jerky and craps gunpowder. Then, he uses that gunpowder to make a bullet, which he uses to kill a cow and make more beef jerky. Some people refer to this as the "Circle of Life."
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
%
-If, by some incredible space-time paradox, Chuck Norris would ever fight himself, he'd win. Period.
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
%
-Chuck Norris is currently suing myspace for taking the name of what he calls everything around you.
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
%
-The crossing lights in Chuck Norris's home town say "Die slowly" and "die quickly". They each have a picture of Chuck Norris punching or kicking a pedestrian.
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
%
-Science Fact: Roundhouse kicks are comprised primarily of an element called Chucktanium.
+The quickest way to a man's heart is with Chuck Norris' fist.
%
-The Sherman tank was originaly called the Norris tank until Chuck Norris decided it wasn't tough enough to be associated with him. The Army, for fear of Chuck Norris, renamed the tank and promised to develop a weapon more fitting of his name. To date, no weapon created has been badass enough to be named after Chuck Norris.
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
%
-Chuck Norris proved that we are alone in the universe. We weren't before his first space expedition.
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
%
-Superman once watched an episode of Walker, Texas Ranger. He then cried himself to sleep.
+Chuck Norris can win a game of Connect Four in only three moves.
%
-Chuck Norris doesn't step on toes. Chuck Norris steps on necks.
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
%
-The movie "Delta Force" was extremely hard to make because Chuck had to downplay his abilities. The first few cuts were completely unbelievable.
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
%
-Movie trivia: The movie "Invasion U.S.A." is, in fact, a documentary.
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
%
-Chuck Norris does not "style" his hair. It lays perfectly in place out of sheer terror.
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
%
-There is no such thing as global warming. Chuck Norris was cold, so he turned the sun up.
+Chuck Norris doesn’t wash his clothes, he disembowels them.
%
-A study showed the leading causes of death in the United States are:
-1:Heart disease
-2:Chuck Norris
-3:Cancer
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
%
-It's widely believed that Jesus was Chuck Norris' stunt double for crucifixion due to the fact that it is impossible for nails to pierce Chuck Norris' skin.
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
%
-Chuck Norris did in fact, build Rome in a day.
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
%
-Along with his black belt, Chuck Norris often chooses to wear brown shoes. No one has DARED call him on it. Ever.
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
%
-Anytime someone is elected president in the United States, they must ask permission from Chuck Norris to live in the White House. The reason for this is because Chuck Norris had won every Federal, State, and Local election since 1777. He just allows others to run the country in his place.
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
%
-Once you go Norris, you are physically unable to go back.
+When God said "Let there be light!", Chuck Norris said "Only for half the day
%
-Ninjas want to grow up to be just like Chuck Norris. But usually they grow up just to be killed by Chuck Norris.
+Chuck Norris went up the creek without a paddle... or a canoe
%
-Chuck Norris once sued Burger King after they refused to put razor wire in his Whopper Jr, insisting that that actually is "his" way.
+Chuck Norris once asked a man to turn down his music, he refused, that man's baby was born deaf.
%
-The last thing you hear before Chuck Norris gives you a roundhouse kick? No one knows because dead men tell no tales.
+Chuck Norris found the hay in the needle stack.
%
-Chuck Norris doesn't play god. Playing is for children.
+Chuck Norris doesn't need to brush his teeth, his spit acts as a bleach.
%
-As a teen, Chuck Norris had sex with every nun in a convent tucked away in the hills of Tuscany. Nine months later the nuns gave birth to the 1972 Miami Dolphins, the only undefeated and untied team in professional football history.
+Chuck Norris once had a street named after him. But the name removed at once, because nobody crosses Chuck Norris, and lives
%
-Chuck Norris is the only person in the world that can actually email a roundhouse kick.
+The planes in 9/11 were not hijacked. Chuck Norris was just playing with his old radio controller.
%
-Chuck Norris won super bowls VII and VIII singlehandedly before unexpectedly retiring to pursue a career in ass-kicking.
+Machiavelli said it is better to be feared than loved because he was inspired by Chuck Norris.
%
-Wo hu cang long. The translation from Mandarin Chinese reads: "Crouching Chuck, Hidden Norris"
+Chuck Norris Can Play the Theme from the Twilight Zone with His Beard
%
-Chuck Norris can set ants on fire with a magnifying glass. At night.
+Chuck Norris pees Adamantium
%
-Some kids play Kick the can. Chuck Norris played Kick the keg.
+The Beatles are on iTunes because Chuck Norris bought a Mac.
%
-'Icy-Hot' is too weak for Chuck Norris. After a workout, Chuck Norris rubs his muscles down with liquid-hot MAGMA.
+Chuck Norris once rounhouse kicked a football ...... it is now considered as a planet
%
-Chuck Norris cannot love, he can only not kill.
+Chuck Norris yells at Drill Sergeants
%
-When Chuck Norris was a baby, he didn't suck his mother's breast. His mother served him whiskey, straight out of the bottle.
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
%
-According to Einstein's theory of relativity, Chuck Norris can actually roundhouse kick you yesterday.
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
%
-Chuck Norris once pulled out a single hair from his beard and skewered three men through the heart with it.
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
%
-In an act of great philanthropy, Chuck made a generous donation to the American Cancer Society. He donated 6,000 dead bodies for scientific research.
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
%
-Chuck Norris' favourite cut of meat is the roundhouse.
+Chuck Norris does not sleep. He waits.
%
-When J. Robert Oppenheimer said "I am become death, the destroyer Of worlds", He was not referring to the atomic bomb. He was referring to the Chuck Norris halloween costume he was wearing.
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
%
-Chuck Norris recently had the idea to sell his urine as a canned beverage. We know this beverage as Red Bull.
+Chuck Norris is the reason why Waldo is hiding.
%
-In a recent survey it was discovered the 94% of American women lost their virginity to Chuck Norris. The other 6% were incredibly fat or ugly.
+Chuck Norris counted to infinity - twice.
%
-Chuck Norris invented a language that incorporates karate and roundhouse kicks. So next time Chuck Norris is kicking your ass, don't be offended or hurt, he may be just trying to tell you he likes your hat.
+There is no chin behind Chuck Norris’ beard. There is only another fist.
%
-If at first you don't succeed, you're not Chuck Norris.
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
%
-If Chuck Norris were a calendar, every month would be named Chucktober, and every day he'd kick your ass.
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
%
-Fear is not the only emotion Chuck Norris can smell. He can also detect hope, as in "I hope I don't get a roundhouse kick from Chuck Norris."
-Too late, asshole.
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
%
-Chuck Norris's show is called Walker: Texas Ranger, because Chuck Norris doesn't run.
+If at first you don't succeed, you're not Chuck Norris.
%
-MacGyver can build an airplane out of gum and paper clips, but Chuck Norris can roundhouse-kick his head through a wall and take it.
+If Chuck Norris were a calendar, every month would be named Chucktober, and every day he'd kick your ass.
%
-Behind every successful man, there is a woman. Behind every dead man, there is Chuck Norris.
+Chuck Norris can lead a horse to water AND make it drink.
%
-What's known as the UFC, or Ultimate Fighting Championship, doesn't use its full name, which happens to be "Ultimate Fighting Championship, Non-Chuck-Norris-Division".
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
%
-Chuck Norris brushes his teeth with a mixture of iron shavings, industrial paint remover, and wood-grain alcohol.
+Chuck Norris can slam a revolving door.
%
-The easiest way to determine Chuck Norris' age is to cut him in half and count the rings.
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
%
-There is endless debate about the existence of the human soul. Well it does exist, and Chuck Norris finds it delicious.
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
%
-Most boots are made for walkin'. Chuck Norris' boots ain't that merciful.
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
%
-The US did not boycott the 1980 Summer Olympics in Moscow due to political reasons: Chuck Norris killed the entire US team with a single round-house kick during TaeKwonDo practice.
+If you spell Chuck Norris in Scrabble, you win. Forever.
%
-Chuck Norris wears a live rattlesnake as a condom.
+Guns don't kill people. Chuck Norris kills people.
%
-When the movie Pulp Fiction was filmed they had to borrow Chuck Norris's wallet... It's the one that says "Bad Mother Fucker" on it
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
%
-The Bible was originally titled "Chuck Norris and Friends"
+The chief export of Chuck Norris is Pain.
%
-Chuck Norris began selling the Total Gym as an ill-fated attempt to make his day-to-day opponents less laughably pathetic.
+Chuck Norris has two speeds. Walk, and Kill.
%
-Do you know why Baskin Robbins only has 31 flavors? Because Chuck Norris doesn't like Fudge Ripple.
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
%
-When Chuck Norris says "More cowbell", he fucking MEANS it.
+Chuck Norris drives an ice cream truck covered in human skulls.
%
-On the set of Walker Texas Ranger Chuck Norris brought a dying lamb back to life by nuzzling it with his beard. As the onlookers gathered, the lamb sprang to life. Chuck Norris then roundhouse kicked it, killing it instantly. This was just to prove that the good Chuck giveth, and the good Chuck, he taketh away.
+Chuck Norris is my Homeboy.
%
-Chuck Norris was what Willis was talkin' about.
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
%
-Google won't search for Chuck Norris because it knows you don't find Chuck Norris, he finds you.
+Chuck Norris uses pepper spray to spice up his steaks.
%
-Chuck Norris can lead a horse to water AND make it drink.
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
%
-Nagasaki never had a bomb dropped on it. Chuck Norris jumped out of a plane and punched the ground.
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
%
-It is scientifically impossible for Chuck Norris to have had a mortal father. The most popular theory is that he went back in time and fathered himself.
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
%
-Chuck Norris destroyed the periodic table, because Chuck Norris only recognizes the element of surprise.
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
%
-It is believed dinosaurs are extinct due to a giant meteor. That's true if you want to call Chuck Norris a giant meteor.
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
%
-Chuck Norris shot the sheriff, but he round house kicked the deputy.
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
%
-That's not Chuck Norris doing push-ups -- that's Chuck Norris moving the Earth away from the path of a deadly asteroid.
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
%
-Chuck Norris can judge a book by its cover.
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
%
-Nothing can escape the gravity of a black hole, except for Chuck Norris. Chuck Norris eats black holes. They taste like chicken.
+The quickest way to a man's heart is with Chuck Norris' fist.
%
-Chuck Norris does not play the lottery. It doesn't have nearly enough balls.
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
%
-Q: How many Chuck Norris' does it take to change a light bulb?
-A: None, Chuck Norris prefers to kill in the dark.
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
%
-As President Roosevelt said: "We have nothing to fear but fear itself. And Chuck Norris."
+Chuck Norris can win a game of Connect Four in only three moves.
%
-Chuck Norris just says "no" to drugs. If he said "yes", it would collapse Colombia's infrastructure.
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
%
-Since 1940, the year Chuck Norris was born, roundhouse-kick related deaths have increased 13,000 percent.?
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
%
-Crime does not pay - unless you are an undertaker following Walker, Texas Ranger, on a routine patrol.
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
%
-Chuck Norris invented the internet? just so he had a place to store his porn.
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
%
-Chuck Norris does not own a house. He walks into random houses and people move.
+Chuck Norris doesn’t wash his clothes, he disembowels them.
%
-It is better to give than to receive. This is especially true of a Chuck Norris roundhouse kick.
+Since 1940, the year Chuck Norris was born, roundhouse-kick related deaths have increased 13,000 percent.?
%
-Chuck Norris is the only person to ever win a staring contest against Ray Charles and Stevie Wonder at the same time.
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
%
-Industrial logging isn't the cause of deforestation. Chuck Norris needs toothpicks.
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
%
-Chuck Norris smells what the Rock is cooking... because the Rock is Chuck Norris' personal chef.
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
%
-When Chuck Norris plays Oregon Trail, his family does not die from cholera or dysentery, but rather, roundhouse kicks to the face. He also requires no wagon, since he carries the oxen, axels, and buffalo meat on his back. He always makes it to Oregon before you.
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
%
-Chuck Norris is the reason why Waldo is hiding.
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
%
-"Brokeback Mountain" is not just a movie. It's also what Chuck Norris calls the pile of dead ninjas in his front yard.
+There is no such thing as being hard its called the Chuck Norris factor.
%
-When God said, "let there be light", Chuck Norris said, "say 'please'."
+When Chuck Norris goes to the library, he looks for the guinness book of records in the comedy section.
%
-Chuck Norris does not eat. Food understands that the only safe haven from Chuck Norris' fists is inside his own body.
+Chuck Norris can shoot a person 28 times with an unloaded gun.
%
-One day Chuck Norris walked down the street with a massive erection. There were no survivors.
+Chuck Norris' personal airplane is called Air Force Chuck
%
-Chuck Norris built a time machine and went back in time to stop the JFK assassination. As Oswald shot, Chuck met all three bullets with his beard, deflecting them. JFK's head exploded out of sheer amazement.
+The letters in Chuck Norris cannot be unscrambled.
%
-Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
+Cops don't need a badges in their wallets but only a picture of Chuck Norris.
%
-Chuck Norris uses a night light. Not because Chuck Norris is afraid of the dark, but the dark is afraid of Chuck Norris.
+Chuck Norris was the reason why the Great Wall of China was constructed. It failed miserably.
%
-Chuck Norris is not capable of hitting a target on the broad side of a barn. Every time he tries, the whole damn barn falls down.
+If you see a man in the street who looks like Chuck Norris, but isn't, run: you don't want to be caught in the resulting roundhouse kick to his face.
%
-Before each filming of Walker: Texas Ranger, Chuck Norris is injected with fourteen times the lethal dose of elephant tranquilzer. This is, of course, to limit his strength and mobility, in an attempt to lower the fatality rate of the actors he fights.
+The red phone in the oval office...Rings directly to Chuck Norris Cell Phone
%
-When Bruce Banner gets mad, he turns into the Hulk. When the Hulk gets mad, he turns into Chuck Norris.
+The only way sharks will come near CN underwater is when CN is inside of a cage.
%
-Chuck Norris kills anyone that asks, "You want fries with that" because by now everyone should know that Chuck doesn't ever want fries with anything. Ever.
+Chuck Norris uses a real mouse to move the cursor, type on the keyboard, write e-mails, code entire websites, use photoshop, bring coffee.
%
-Chuck Norris once kicked a horse in the chin. Its decendants are known today as Giraffes.
+If Chuck Norris were to get into a fight with another Chuck Norris, Chuck Norris would win.
%
-Sticks and stones may break your bones, but a Chuck Norris glare will liquefy your kidneys.
+"2012" is code for, Chuck Norris when he is pissed.
%
-Human cloning is outlawed because if Chuck Norris were cloned, then it would be possible for a Chuck Norris roundhouse kick to meet another chuck Norris roundhouse kick. Physicists theorize that this contact would end the universe.
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
%
-Chuck Norris once went skydiving, but promised never to do it again. One Grand Canyon is enough.
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
%
-Chuck Norris's version of a "chocolate milkshake" is a raw porterhouse wrapped around ten Hershey bars, and doused in diesel fuel.
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
%
-If Chuck Norris round-house kicks you, you will die. If Chuck Norris' misses you with the round-house kick, the wind behind the kick will tear out your pancreas.
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
%
-In a fight between Batman and Darth Vader, the winner would be Chuck Norris.
+Chuck Norris does not sleep. He waits.
%
-Chuck Norris puts his pants on one leg at a time, just like the rest of us. The only difference is, then he fucking kills people.
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
%
-Everybody loves Raymond. Except Chuck Norris.
+Chuck Norris is the reason why Waldo is hiding.
%
-Contrary to popular belief, the Titanic didn't hit an iceberg. The ship was off course and accidentally ran into Chuck Norris while he was doing the backstroke across the Atlantic.
+Chuck Norris counted to infinity - twice.
%
-Chuck Norris got his drivers license at the age of 16. Seconds.
+There is no chin behind Chuck Norris’ beard. There is only another fist.
%
-The original title for Alien vs. Predator was Alien and Predator vs Chuck Norris. The film was cancelled shortly after going into preproduction. No one would pay nine dollars to see a movie fourteen seconds long.
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
%
-Chuck Norris' sperm is so badass, he had sex with Nicole Kidman, and 7 months later she prematurely gave birth to a Ford Excursion.
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
%
-Chuck Norris can win at solitaire with only 18 cards.
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
%
-Chuck Norris once shat blood - the blood of 11,940 natives he had killed and eaten.
+Chuck Norris can lead a horse to water AND make it drink.
%
-Maslow's theory of higher needs does not apply to Chuck Norris. He only has two needs: killing people and finding people to kill.
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
%
-The truth will set you free. Unless Chuck Norris has you, in which case, forget it buddy!
+Chuck Norris can slam a revolving door.
%
-For most people, home is where the heart is. For Chuck Norris, home is where he stores his collection of human skulls.
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
%
-Kryptonite has been found to contain trace elements of Chuck Norris roundhouse kicks to the face. This is why it is so deadly to Superman.
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
%
-Saddam Hussein was not found hiding in a "hole." Saddam was roundhouse-kicked in the head by Chuck Norris in Kansas, which sent him through the earth, stopping just short of the surface of Iraq.
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
%
-Coroners refer to dead people as "ABC's". Already Been Chucked.
+If you spell Chuck Norris in Scrabble, you win. Forever.
%
-Chuck Norris doesn't look both ways before he crosses the street... he just roundhouses any cars that get too close.
+Guns don't kill people. Chuck Norris kills people.
%
-Chuck Norris does not have to answer the phone. His beard picks up the incoming electrical impulses and translates them into audible sound.
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
%
-How many roundhouse kicks does it take to get to the center of a tootsie pop? Just one. From Chuck Norris.
+The chief export of Chuck Norris is Pain.
%
-Chuck Norris doesnt wear a watch, HE decides what time it is.
+Chuck Norris has two speeds. Walk, and Kill.
%
-The phrase 'break a leg' was originally coined by Chuck Norris's co-stars in Walker, Texas Ranger as a good luck charm, indicating that a broken leg might be the worst extent of their injuries. This never proved to be the case.
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
%
-When chuck Norris does division, there are no remainders.
+Chuck Norris drives an ice cream truck covered in human skulls.
%
-If you rearrange the letters in "Chuck Norris", they also spell "Crush Rock In". The words "with his fists" are understood.
+Chuck Norris is my Homeboy.
%
-Never look a gift Chuck Norris in the mouth, because he will bite your damn eyes off.
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
%
-Give a man a fish, and you will feed him for a day. Give a man anything that is better than a fish, and Chuck Norris will beat his ass and take it.
+Chuck Norris uses pepper spray to spice up his steaks.
%
-Chuck Norris used to play baseball. When Babe Ruth was hailed as the better player, Chuck Norris killed him with a baseball bat to the throat. Lou Gehrig got off easy.
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
%
-The original title for Star Wars was "Skywalker: Texas Ranger". Starring Chuck Norris.
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
%
-Guantuanamo Bay, Cuba, is the military code-word for "Chuck Norris' basement".
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
%
-The phrase 'balls to the wall' was originally conceived to describe Chuck Norris entering any building smaller than an aircraft hangar.
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
%
-Chuck Norris' roundhouse kick is so powerful, it can be seen from outer space by the naked eye.
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
%
-Ozzy Osbourne bites the heads off of bats. Chuck Norris bites the heads off of Siberian Tigers.
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
%
-He who lives by the sword, dies by the sword. He who lives by Chuck Norris, dies by the roundhouse kick.
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
%
-The best-laid plans of mice and men often go awry. Even the worst-laid plans of Chuck Norris come off without a hitch.
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
%
-The phrase 'dead ringer' refers to someone who sits behind Chuck Norris in a movie theater and forgets to turn their cell phone off.
+The quickest way to a man's heart is with Chuck Norris' fist.
%
-Chuck Norris' Roundhouse kick is so powerful, that on the set of Sidekicks he single-footedly destroyed Jonathan Brandis' Career.
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
%
-Staring at Chuck Norris for extended periods of time without proper eye protection will cause blindess, and possibly foot sized brusies on the face.
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
%
-Chuck Norris can taste lies.
+Chuck Norris can win a game of Connect Four in only three moves.
%
-Chuck Norris does not kick ass and take names. In fact, Chuck Norris kicks ass and assigns the corpse a number. It is currently recorded to be in the billions.
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
%
-One time, Chuck Norris accidentally stubbed his toe. It destroyed the entire state of Ohio.
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
%
-Little Miss Muffet sat on her tuffet, until Chuck Norris roundhouse kicked her into a glacier.
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
%
-In 1990, Chuck Norris founded the non-profit organization "Kick Drugs Out of America". If the organization's name were "Roundhouse Kick Drugs out of America", there wouldn't be any drugs in the Western Hemisphere. Anywhere.
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
%
-Chuck Norris can blow bubbles with beef jerky.
+Chuck Norris doesn’t wash his clothes, he disembowels them.
%
-They had to edit the first ending of 'Lone Wolf McQuade' after Chuck Norris kicked David Carradine's ass, then proceeded to barbecue and eat him.
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
%
-Chuck Norris does, in fact, live in a round house.
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
%
-Chuck Norris was once on Jeopardy. This show is notable in that it was the first occasion in Jeopardy history that Alex Trebek had appeared without a mustache. And a head.
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
%
-When Chuck Norris works out on the Total Gym, the Total Gym feels like it's been raped.
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
%
-4 out of 5 doctors fail to recommend Chuck Norris as a solution to most problems. Also, 80% of doctors die unexplained, needlessly brutal deaths.
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
%
-Chuck Norris can skeletize a cow in two minutes.
+In the back of the book of world records, it says "All records are held by Chuck Norris. The ones listed are in second place."
+%
+The only place where the Starship Enterprise refuses to boldly go is Chuck Norris' planet...which is all of them.
+%
+Chuck Norris once had a pet monkey........his name was KING KONG
+%
+Chuck Norris can make his own megazord "The Chuck Norris Roundhouse Kickers Ultimate Super Awesome Megazord"
+%
+Simon doesn't say...Chuck Norris says.
+%
+When does Chuck Norris run out of shotgun bullets?.....whenever he wants to.
%
The only sure things are Death and Taxes, and when Chuck Norris goes to work for the IRS, they'll be the same thing.
%
-Chuck Norris' first job was as a paperboy. There were no survivors.
+Chuck Norris' first job was as a paperboy. There were no survivors.
%
-With the rising cost of gasoline, Chuck Norris is beginning to worry about his drinking habit.
+Chuck Norris can turn toast back into bread
%
-The square root of Chuck Norris is pain. Do not try to square Chuck Norris, the result is death.
+Chuck Norris started Chuck Norris.
%
-Chuck Norris' testicles do not produce sperm. They produce tiny white ninjas that recognize only one mission: seek and destroy.
+Ever wonder what really happened to the dinosaurs? They all dug their own graves when they heard Chuck Norris was coming
%
-To be or not to be? That is the question. The answer? Chuck Norris.
+Chuck Norris killed Kemper
%
-Chuck Norris has never been in a fight, ever. Do you call one roundhouse kick to the face a fight?
+Did you here about the boy who cried Chuck Norris?
%
-There are two types of people in the world... people that suck, and Chuck Norris.
+Chuck Norris can't perform Hadoukens, he IS a Hadouken
%
-Chuck Norris never wet his bed as a child. The bed wet itself out of fear.
+Behind every successful man is Chuck Norris
%
-If you were somehow able to land a punch on Chuck Norris your entire arm would shatter upon impact. This is only in theory, since, come on, who in their right mind would try this?
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
%
-70% of a human's weight is water. 70% of Chuck Norris' weight is his dick.
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
%
-Jean-Claude Van Damme once kicked Chuck Norris' ass. He was then awakened from his dream by a roundhouse kick to the face.
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
%
-The pie scene in "American Pie" is based on a dare Chuck Norris took when he was younger. However, in Chuck Norris' case, the "pie" was the molten crater of an active volcano.
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
%
-Chuck Norris uses 8'x10' sheets of plywood as toilet paper.
+Chuck Norris does not sleep. He waits.
%
-Noah was the only man notified before Chuck Norris relieved himself in the Atlantic Ocean.
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
%
-Chuck Norris once invited all of the other badasses from TV to duke it out in order to see who was the supreme badass. Only two showed up-- Jack Bauer and MacGyver.
+Chuck Norris is the reason why Waldo is hiding.
%
-MacGyver immediately tried to make a bomb out of some Q-Tips and Gatorade, but Chuck Norris roundhouse-kicked him in the solar plexus. MacGyver promptly threw up his own heart.
+Chuck Norris counted to infinity - twice.
%
-Jack Bauer tried to use his detailed knowledge of torture techniques, but to no avail: Chuck Norris thrives on pain. Chuck Norris then ripped off Jack Bauer's arm and beat him to death with it. Game, set, match.
+MacGyver immediately tried to make a bomb out of some Q-Tips and Gatorade, but Chuck Norris roundhouse-kicked him in the solar plexus. MacGyver promptly threw up his own heart.
%
-Chuck Norris eats steak for every single meal. Most times he forgets to kill the cow.
+There is no chin behind Chuck Norris’ beard. There is only another fist.
%
-The First Law of Thermodynamics states that energy can neither be created nor destroyed... unless it meets Chuck Norris.
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
%
-Chuck Norris doesn't go on the internet, he has every internet site stored in his memory. He refreshes webpages by blinking.
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
%
-Fact: Chuck Norris doesn't consider it sex if the woman survives.
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
%
-It is said that looking into Chuck Norris' eyes will reveal your future. Unfortunately, everybody's future is always the same: death by a roundhouse-kick to the face.
+Chuck Norris can lead a horse to water AND make it drink.
%
-Chuck Norris knows everything there is to know - Except for the definition of mercy.
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
%
-Scientifically speaking, it is impossible to charge Chuck Norris with "obstruction of justice." This is because even Chuck Norris cannot be in two places at the same time.
+Chuck Norris can slam a revolving door.
%
-Chuck Norris never has to wax his skis because they're always slick with blood.
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
%
-When you say "no one's perfect", Chuck Norris takes this as a personal insult.
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
%
-Chuck Norris can win a game of Trivial Pursuit with one roll of the dice, and without answering a single question... just a nod of the head, and a stroke of the beard.
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
%
-182,000 Americans die from Chuck Norris-related accidents every year.
+If you spell Chuck Norris in Scrabble, you win. Forever.
%
-Paper beats rock, rock beats scissors, and scissors beats paper, but Chuck Norris beats all 3 at the same time.
+Guns don't kill people. Chuck Norris kills people.
%
-Jesus can walk on water, but Chuck Norris can walk on Jesus.
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
%
-All roads lead to Chuck Norris. And by the transitive property, a roundhouse kick to the face.
+The chief export of Chuck Norris is Pain.
%
-If you're driving down the road and you think Chuck Norris just cut you off, you better thank your lucky stars it wasn't the other way around.
+Chuck Norris has two speeds. Walk, and Kill.
%
-July 4th is Independence day. And the day Chuck Norris was born. Coincidence? i think not.
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
%
-Chuck Norris never goes to the dentist because his teeth are unbreakable. His enemies never go to the dentist because they have no teeth.
+Chuck Norris drives an ice cream truck covered in human skulls.
%
-In the medical community, death is referred to as "Chuck Norris Disease"
+Chuck Norris is my Homeboy.
%
-Chuck Norris was once in a knife fight, and the knife lost.
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
%
-If you work in an office with Chuck Norris, don't ask him for his three-hole-punch.
+Chuck Norris uses pepper spray to spice up his steaks.
%
-In the Words of Julius Caesar, "Veni, Vidi, Vici, Chuck Norris". Translation: I came, I saw, and I was roundhouse-kicked inthe face by Chuck Norris.
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
%
-The First rule of Chuck Norris is: you do not talk about Chuck Norris.
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
%
-Chuck Norris is widely predicted to be first black president. If you're thinking to yourself, "But Chuck Norris isn't black", then you are dead wrong. And stop being a racist.
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
%
-When Chuck Norris plays Monopoly, it affects the actual world economy.
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
%
-Chuck Norris can be unlocked on the hardest level of Tekken. But only Chuck Norris is skilled enough to unlock himself. Then he roundhouse kicks the Playstation back to Japan.
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
%
-Chuck Norris drinks napalm to quell his heartburn.
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
%
-Every time someone uses the word "intense", Chuck Norris always replies "you know what else is intense?" followed by a roundhouse kick to the face.
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
%
-As an infant, Chuck Norris' parents gave him a toy hammer. He gave the world Stonehenge.
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
%
-Chuck Norris once ordered a steak in a restaurant. The steak did what it was told.
+The quickest way to a man's heart is with Chuck Norris' fist.
%
-Most people fear the Reaper. Chuck Norris considers him "a promising Rookie".
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
%
-There are only two things that can cut diamonds: other diamonds, and Chuck Norris.
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
%
-President Roosevelt once rode his horse 100 miles. Chuck Norris carried his the same distance in half the time.
+Chuck Norris can win a game of Connect Four in only three moves.
%
-Chuck Norris once ate four 30lb bowling balls without chewing.
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
%
-What many people dont know is chuck norris is the founder of planned parenthood. Not even unborn children can escape his wrath.
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
%
-Chuck Norris was banned from competitive bullriding after a 1992 exhibition in San Antonio, when he rode the bull 1,346 miles from Texas to Milwaukee Wisconsin to pick up his dry cleaning.
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
%
-Chuck Norris qualified with a top speed of 324 mph at the Daytona 500, without a car.
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
%
-Chuck Norris likes his coffee half and half: half coffee grounds, half wood-grain alcohol.
+Chuck Norris doesn’t wash his clothes, he disembowels them.
%
-Chuck Norris uses tabasco sauce instead of visine.
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
%
-The chemical formula for the highly toxic cyanide ion is CN-. These are also Chuck Norris' initials. This is not a coincidence.
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
%
-Chuck Norris' credit cards have no limit. Last weekend, he maxed them out.
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
%
-Think of a hot woman. Chuck Norris did her.
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
%
-A man once claimed Chuck Norris kicked his ass twice, but it was promptly dismissed as false - no one could survive it the first time.
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
%
-Chuck Norris sleeps with a pillow under his gun.
+The square root of Chuck Norris is pain. Do not try to square Chuck Norris. The result is death
%
-Chuck Norris owns a chain of fast-food restaurants throughout the southwest. They serve nothing but barbecue-flavored ice cream and Hot Pockets.
+Chuck Norris doesn't read. He just stares at the book until he gets the information he wants.
%
-Chuck Norris doesn't chew gum. Chuck Norris chews tin foil.
+Why didn't the chicken cross the road? Because Chuck Norris got to it first.
%
-Aliens DO indeed exist. They just know better than to visit a planet that Chuck Norris is on.
+When taking the SAT, write "Chuck Norris" for every answer. You will score over 8000.
%
-When in a bar, you can order a drink called a "Chuck Norris". It is also known as a "Bloody Mary", if your name happens to be Mary.
+Chuck Norris can milk an alligator
%
-Every time Chuck Norris smiles, someone dies. Unless he smiles while he's roundhouse kicking someone in the face. Then two people die.
+Chuck Norris doesn't eat, he just sucks the energy out of food by staring at it
%
-Some people ask for a Kleenex when they sneeze, Chuck Norris asks for a body bag.
+Chuck Norris once proved p^~p by induction on his beard hairs.
%
-There's an order to the universe: space, time, Chuck Norris.... Just kidding, Chuck Norris is first.
+The reason why batman only comes out at night is because he's afraid he might encounter Chuck Norris in the Morning and afternoon.
%
-A man once asked Chuck Norris if his real name is "Charles". Chuck Norris did not respond, he simply stared at him until he exploded.
+Chuck Norris can bake in a Freezer.
%
-Chuck Norris starts everyday with a protein shake made from Carnation Instant Breakfast, one dozen eggs, pure Colombian cocaine, and rattlesnake venom. He injects it directly into his neck with a syringe.
+Chuck Norris is currently suing any broadway theater that plays "The Nutcracker". He claims its an infringement on his "other" roundhouse kick.
%
-In a tagteam match, Chuck Norris was teamed with Hulk Hogan against King Kong Bundy and Andre The Giant. He pinned all 3 at the same time.
+Chuck Norris once had a weak moment, just to know what it felt like.
%
-Chuck Norris doesn't see dead people. He makes people dead.
+Note to everyone: Please do not give beans to Chuck Norris or do you want another atombomb on hiroshima?
%
-Chuck Norris is the only person who can simultaneously hold and fire FIVE Uzis: One in each hand, one in each foot -- and the 5th one he roundhouse-kicks into the air, so that it sprays bullets.
+Chuck Norris has made a 148 break a snooker.
%
-For undercover police work, Chuck Norris pins his badge underneath his shirt, directly into his chest.
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
%
-In the X-Men movies, none of the X-Men super-powers are done with special effects. Chuck Norris is the stuntman for every character.
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
%
-We live in an expanding universe. All of it is trying to get away from Chuck Norris.
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
%
-Chuck Norris went looking for a bar but couldn't find one. He walked to a vacant lot and sat there. Sure enough within an hour an a half someone constructed a bar around him. He then ordered a shot, drank it, and then burned the place to the ground. Chuck Norris yelled over the roar of the flames, "always leave things the way you found em!"
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
%
-It is said that every time you masturbate, God kills a kitten. Every time God masturbates, Chuck Norris kills a lion.
+Chuck Norris does not sleep. He waits.
%
-The word 'Kill' was invented by Chuck Norris. Other words were 'Die', 'Beer', and 'What'.
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
%
-Chuck Norris is a vegetarian. Meaning, he does not eat animals until first he puts them into vegetative state with his fists.
+Chuck Norris is the reason why Waldo is hiding.
%
-The 11th commandment is "Thou shalt not piss off Chuck Norris" This commandment is rarely enforced, as it is impossible to accomplish.
+Chuck Norris counted to infinity - twice.
%
-Chuck Norris is his own line at the DMV.
+There is no chin behind Chuck Norris’ beard. There is only another fist.
%
-Two wrongs don't make a right. Unless you're Chuck Norris. Then two wrongs make a roundhouse kick to the face.
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
%
-Who let the dogs out? Chuck Norris let the dogs out... and then roundhouse kicked them through an Oldsmobile.
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
%
-Chuck Norris can do a roundhouse kick faster than the speed of light. This means that if you turn on a light switch, you will be dead before the lightbulb turns on.
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
%
-When Chuck Norris goes to out to eat, he orders a whole chicken, but he only eats its soul.
+Chuck Norris can lead a horse to water AND make it drink.
%
-Chuck Norris sold his soul to the devil for his rugged good looks and unparalleled martial arts ability. Shortly after the transaction was finalized, Chuck roundhouse-kicked the devil in the face and took his soul back. The devil, who appreciates irony, couldn't stay mad and admitted he should have seen it coming. They now play poker every second Wednesday of the month.
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
%
-Chuck Norris has never won an Academy Award for acting... because he's not acting.
+Chuck Norris can slam a revolving door.
%
-If Chuck Norris wants your opinion, he'll beat it into you.
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
%
-Not everyone that Chuck Norris is mad at gets killed. Some get away. They are called astronauts.
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
%
-Chuck Norris has to register every part of his body as a separate lethal weapon. His spleen is considered a concealed weapon in over 50 states.
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
%
-A movie scene depicting Chuck Norris losing a fight with Bruce Lee was the product of history's most expensive visual effect. When adjusted for inflation, the effect cost more than the Gross National Product of Paraguay.
+If you spell Chuck Norris in Scrabble, you win. Forever.
%
-Godzilla is a Japanese rendition of Chuck Norris' first visit to Tokyo.
+Guns don't kill people. Chuck Norris kills people.
%
-They once made a Chuck Norris toilet paper, but there was a problem-- It wouldn't take shit from anybody.
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
%
-Chuck Norris once rode a nine foot grizzly bear through an automatic car wash, instead of taking a shower.
+The chief export of Chuck Norris is Pain.
%
-"Sweating bullets" is literally what happens when Chuck Norris gets too hot.
+Chuck Norris has two speeds. Walk, and Kill.
%
-Chuck Norris' sperm can be seen with the naked eye. Each one is the size of a quarter.
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
%
-After taking a steroids test doctors informed Chuck Norris that he had tested positive. He laughed upon receiving this information, and said "of course my urine tested positive, what do you think they make steroids from?"
+Chuck Norris drives an ice cream truck covered in human skulls.
%
-Chuck Norris doesn't daydream. He's too busy giving other people nightmares.
+Chuck Norris is my Homeboy.
%
-When Arnold says the line "I'll be back" in the first Terminator movie it is implied that is he going to ask Chuck Norris for help.
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
%
-There are no such things as tornados. Chuck Norris just hates trailer parks.
+Chuck Norris uses pepper spray to spice up his steaks.
%
-Chuck Norris' Penis is a third degree blackbelt, and an honorable 32nd-degree mason.
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
%
-Chuck Norris does not follow fashion trends, they follow him. But then he turns around and kicks their ass. Nobody follows Chuck Norris.
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
%
-The phrase 'break a leg' was originally coined by Chuck Norris's co-stars in Walker, Texas Ranger as a good luck charm indicating that a broken leg might be the worst extent of their injuries. This never proved to be the case.
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
%
-Chuck Norris' roundhouse kick is so powerful, it can be seen from outer space by the naked eye.
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
%
-Diamonds are not, despite popular belief, carbon. They are, in fact, Chuck Norris fecal matter. This was proven a recently, when scientific analysis revealed what appeared to be Jean-Claude Van Damme bone fragments inside the Hope Diamond.
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
%
-Chuck Norris once participated in the running of the bulls. He walked.
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
%
-The Drummer for Def Leppard's only got one arm. Chuck Norris needed a back scratcher.
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
%
-Chuck Norris was the orginal sculptor of Mount Rushmore. He completed the entire project using only a bottle opener and a drywall trowel.
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
%
-Chuck Norris once rode a bull, and nine months later it had a calf.
+The quickest way to a man's heart is with Chuck Norris' fist.
%
-Chuck Norris once lost the remote, but maintained control of the TV by yelling at it in between bites of his "Filet of Child" sandwich.
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
%
-For Spring Break '05, Chuck Norris drove to Madagascar, riding a chariot pulled by two electric eels.
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
%
-The Manhattan Project was not intended to create nuclear weapons, it was meant to recreate the destructive power in a Chuck Norris Roundhouse Kick. They didn't even come close.
+Chuck Norris can win a game of Connect Four in only three moves.
%
-Chuck Norris has banned rainbows from the state of North Dakota.
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
%
-Divide Chuck Norris by zero and you will in fact get one........one bad-ass motherfucker that is.
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
%
-TNT was originally developed by Chuck Norris to cure indigestion.
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
%
-After returning from World War 2 unscathed, Bob Dole was congratulated by Chuck Norris with a handshake. The rest is history.
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
%
-Chuck Norris runs on batteries. Specifically, Die Hards.
+Chuck Norris doesn’t wash his clothes, he disembowels them.
%
-"Let the Bodies Hit the Floor" was originally written as Chuck Norris' theme song.
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
%
-Chuck Norris will never have a heart attack. His heart isn't nearly foolish enough to attack him.
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
%
-Only Chuck Norris can prevent forest fires.
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
%
-When Chuck Norris makes a burrito, its main ingredient is real toes.
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
%
-Chuck Norris is not Irish. His hair is soaked in the blood of his victims.
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
%
-In the movie "The Matrix", Chuck Norris is the Matrix. If you pay close attention in the green "falling code" scenes, you can make out the faint texture of his beard.
+http://chucknorrisfacts.com/ is built in Drupal because Chuck Norris knows a good CMS when he sees one.
%
-Chuck Norris' dick is so big, it has it's own dick, and that dick is still bigger than yours.
+The producers of the movie "The Last Airbender" are now in talks with Chuck Norris in Order to star him in their next sequal "The Last Skull Bender".
%
-They say curiosity killed the cat. This is false. Chuck Norris killed the cat. Every single one of them.
+Some boots were made for walking. Some boots may walk all over you, but Chuck Norris' boot walk THROUGH you.
%
-There is no such thing as a lesbian, just a woman who has never met Chuck Norris.
+World War II began because Chuck Norris took a nap. When he woke up, Hitler found out and killed himself out of fear Chuck Norris would kill him.
%
-Chuck Norris crossed the road. No one has ever dared question his motives.
+The best part of waking up is not Folgers in your cup, it's knowing that Chuck Norris let you live.
%
-When Chuck Norris was born, he immediately had sex with the first nurse he saw. He was her first. She was his third. That afternoon.
+Only Chuck Norris can win the mind game, 'cause he never minds.
%
-One time, at band camp, Chuck Norris ate a percussionist.
+Do you know why Chuck Norris didn't star in The Expandebles? Because all the others guys would have surrended at the beginning.
%
-Chuck Norris doesn't say "who's your daddy", because he knows the answer.
+Bruce Lee didn't defeat Chuck Norris. Chuck hit Bruce with a Delayed roundhouse kick that was so fast that Lee only felt the impact a year later!
%
-Chuck Norris originally wrote the first dictionary. The definition for each word is as follows - A swift roundhouse kick to the face.
+Chuck Norris doesn't need a bulletproof vest to be bulletproof
%
-Love does not hurt. Chuck Norris does.
+When Chuck Norris goes to Vegas, he doesn't have to gamble. The casinos just give him stacks of money.
%
-The term "Cleveland Steamer" got its name from Chuck Norris, when he took a dump while visiting the Rock and Roll Hall of fame and buried northern Ohio under a glacier of fecal matter.
+Merlin was Chuck Norris' assistant.
%
-Chuck Norris once round-house kicked a salesman. Over the phone.
+If you put in the correct cheat code in Halo 2, you can have Master Cheif play without his helmet; revealing to be Chuck Norris.
%
-The pen is mighter than the sword, but only if the pen is held by Chuck Norris.
+Those who ignore history, are doomed by Chuck Norris.
%
-Chuck Norris doesn't kill two birds with one stone. Chuck Norris kills all birds, with two stones. The ones in his pants.
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
%
-Chuck Norris knows the last digit of pi.
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
%
-Those aren't credits that roll after Walker Texas Ranger. It is actually a list of fatalities that occurred during the making of the episode.
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
%
-The air around Chuck Norris is always a balmy 78 degrees.
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
%
-When Chuck Norris wants an egg, he cracks open a chicken.
+Chuck Norris does not sleep. He waits.
%
-Chuck Norris plays racquetball with a waffle iron and a bowling ball.
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
%
-According to the Bible, God created the universe in six days. Before that, Chuck Norris created God by snapping his fingers.
+Chuck Norris is the reason why Waldo is hiding.
%
-Chuck Norris doesn't believe in ravioli. He stuffs a live turtle with beef and smothers it in pig's blood.
+Chuck Norris counted to infinity - twice.
%
-Count from one to ten. That's how long it would take Chuck Norris to kill you...Fourty seven times.
+There is no chin behind Chuck Norris’ beard. There is only another fist.
%
-The 1972 Miami Dolphins lost one game, it was an exhibition game vs. Chuck Norris and three seven year old girls. Chuck Norris won with a roundhouse-kick to the face in overtime.
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
%
-Chuck Norris is not Politically Correct. He is just Correct. Always.
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
%
-Mr. T pities the fool. Chuck Norris rips the fool's fucking head off.
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
%
-Chuck Norris had to stop washing his clothes in the ocean. The tsunamis were killing people.
+Chuck Norris can lead a horse to water AND make it drink.
%
-Chuck Norris has volunteered to remain on earth after the Rapture; he will spend his time fighting the Anti-Christ.
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
%
-They were going to release a Chuck Norris edition of Clue, but the answer always turns out to be "Chuck Norris. In The Library. With a Roundhouse Kick."
+Chuck Norris can slam a revolving door.
%
-Chuck Norris is the only known mammal in history to have an opposable thumb. On his penis.
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
%
-A man once taunted Chuck Norris with a bag of Lay's potato chips, saying "Betcha can't eat just one!" Chuck Norris proceeded to eat the chips, the bag, and the man in one deft move.
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
%
-Chuck Norris' favorite cereal is Kellogg's Nails 'N' Gravel.
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
%
-In the first Jurassic Park movie, the Tyrannosaurus Rex wasn't chasing the jeep. Chuck Norris was chasing the Tyrannosaurus AND the jeep.
+If you spell Chuck Norris in Scrabble, you win. Forever.
%
-Chuck Norris has never been accused of murder for the simple fact that his roundhouse kicks are recognized world-wide as "acts of God."
+Guns don't kill people. Chuck Norris kills people.
%
-"Brokeback Mountain" is not just a movie. It's also what Chuck Norris calls the pile of dead ninjas in his front yard.
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
%
-Chuck Norris does not wear a condom. Because there is no such thing as protection from Chuck Norris.
+The chief export of Chuck Norris is Pain.
%
-Chuck Norris once had sex with a cigarette machine in the Osaka airport.
+Chuck Norris has two speeds. Walk, and Kill.
%
-Rules of fighting: 1) Don't bring a knife to a gun fight. 2) Don't bring a gun to a Chuck Norris fight.
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
%
-Chuck Norris is the only man who has, literally, beaten the odds. With his fists.
+Chuck Norris drives an ice cream truck covered in human skulls.
%
-In ancient China there is a legend that one day a child will be born from a dragon, grow to be a man, and vanquish evil from the land. That man is not Chuck Norris, because Chuck Norris killed that man.
+Chuck Norris is my Homeboy.
%
-Chuck Norris wipes his ass with chain mail and sandpaper.
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
%
-When you play Monopoly with Chuck Norris, you do not pass go, and you do not collect two hundred dollars. You will be lucky if you make it out alive.
+Chuck Norris uses pepper spray to spice up his steaks.
%
-Chuck Norris describes human beings as "a sociable holder for blood and guts".
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
%
-Chuck Norris once got into a fight with a one-armed Ninja. Seeing that he had an unfair advantage, Chuck Norris ripped both of his arms off and one of his legs. He then roundhouse-kicked the ninja in the head, killing him instantly, and proceeded to sow his limbs back on using only a rusty tent spike and bailing wire.
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
%
-Chuck Norris likes his ice like he likes his skulls: crushed.
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
%
-Chuck Norris can kick through all 6 degrees of separation, hitting anyone, anywhere, in the face, at any time.
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
%
-Most tough men eat nails for breakfast. chuck Norris does all of his grocery shopping at Home Depot.
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
%
-Chuck Norris did not "lose" his virginity, he stalked it and then destroyed it with extreme prejudice.
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
%
-Everything King Midas touches turnes to gold. Everything Chuck Norris touches turns up dead.
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
%
-Chuck Norris' pulse is measured on the richter scale.
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
%
-Most people know that Descarte said, "I think, therefore I am." What most people don't know is that that quote continues, "...afraid of Chuck Norris."
+The quickest way to a man's heart is with Chuck Norris' fist.
%
-Chuck Norris once roundhouse-kicked a ten dollar bill into 200 nickels.
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
%
-For every movie about Vietnam starring Chuck Norris, the historical duration of the war decreases. Just 3 more "Missing in Action" sequels, and that war will have never actually existed.
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
%
-Chuck Norris' penis has a Hemi.
+Chuck Norris can win a game of Connect Four in only three moves.
%
-Chuck Norris enjoys a good practical joke. His favorite is where he removes your lower intestine and pretends to make a balloon animal out of it. Then he cracks your skull open with a Volvo for not complimenting him on his balloon animal.
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
%
-Chuck Norris CAN in fact 'raise the roof'. And he can do it with one hand.
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
%
-Kenny G is allowed to live because Chuck Norris doesn't kill women.
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
%
-Life is not, in fact, like a box of chocolates. It is more like a box of Chuck Norris, roundhouse kicking you in the face. And if you receive a box of Chuck Norris, you ALWAYS know what you are going to get.
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
%
-For Chuck Norris, every street is "one way". HIS WAY.
+Chuck Norris doesn’t wash his clothes, he disembowels them.
%
-There are now five cup sizes at Starbucks: Short, Tall, Grande, Venti, and Chuck Norris.
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
%
-During the Vietnam War, Chuck Norris allowed himself to be captured. For torture, they made him eat his own entrails. He asked for seconds.
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
%
-Chuck Norris once created a flamethrower by urinating into a lighter.
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
%
-Instead of having a cigarette after sex, Chuck Norris heads outside and brands his cattle.
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
%
-Chuck Norris actually built the stairway to heaven.
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
%
-Whoever said "only the good die young" was probably in Chuck Norris's kindergarten class.
+Some kids pee their name in snow. Chuck Norris pees his name in concrete.
%
-Chuck Norris once skewered a man with the Eiffel tower.
+The Matrix Trilogy would have ended on the first movie if Keanu Reeves said, “I know Chuck Norris.”
%
-The best part of waking up, is not Folgers in your cup, but knowing that Chuck Norris didn't kill you in your sleep.
+Chuck Norris created Heavy Metal when he was upset
%
-Chuck Norris doesn't own a can opener, he just chews through the can.
+Some people ask for a Kleenex when they sneeze, Chuck Norris asks for a body bag.
%
-Occam's Razor says that the simplest answer tends to be the correct one. Norris' Razor involves a flick of the wrist and a Columbian Necktie.
+When things go bump in the night.... it's Chuck Norris
%
-Chuck Norris needs a monkeywrench and a blowtorch to masturbate.
+Chuck Norris fed the Hunger Games
%
-Proponents of higher-order theories of consciousness argue that consciousness is explained by the relation between two levels of mental states in which a higher-order mental state takes another mental state. If you mention this to Chuck Norris, expect an explosive roundhouse kick to the face for spouting too much fancy-talk.
+Chuck Norris played "Got your Nose" with Voldemort and won.
%
-Chuck Norris invented all 32 letters of the alphabet.
+Chuck Norris had a knife thrown at him............ the knife didn't impale him, he impaled the knife
%
-Remember The Ultimate Warrior? He quit wrestling because Chuck Norris wanted his nickname back.
+Chuck Norris doesn't let it go.
%
-If a tree falls in the forest, does anybody hear? Yes. Chuck Norris hears it. Chuck Norris can hear everything. Chuck Norris can hear the shrieking terror in your soul.
+You know Chuck Norris' pet lizard, right? Last I heard, he was in the movie "Godzilla". Oh, and his pet turtle starred in "Gamera" as well.
%
-Chuck Norris actually owns IBM. It was an extremely hostile takeover.
+Whatever Chuck Norris wants, it will instantly appear.
%
-He, who laughs last, laughs best. He who laughs at Chuck Norris ? dies.
+Chuck Norris once cut a knife with a stick of butter.
%
-Chuck Norris is like a dog, not only because he can smell fear, but because he can piss on whatever the fuck he wants.
+Chuck Norris shops at Sam's Club, but leaves without having his receipt checked
%
-Chuck Norris can jump-start a car using jumper cables attached to his nipples.
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
%
-Chuck Norris neither melts in your mouth nor in your hand. He shreds your trachea before ravaging your soul with a combination of chocolate, whickey, roundhouse kicks and death. Oh, and pain. Lots of pain.
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
%
-Chuck Norris doesn't have blood. He is filled with magma.
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
+%
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
+%
+Chuck Norris does not sleep. He waits.
+%
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
+%
+Chuck Norris is the reason why Waldo is hiding.
+%
+Chuck Norris counted to infinity - twice.
+%
+There is no chin behind Chuck Norris’ beard. There is only another fist.
+%
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
+%
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
+%
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
+%
+Chuck Norris can lead a horse to water AND make it drink.
+%
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
+%
+Chuck Norris can slam a revolving door.
+%
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
+%
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
+%
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
+%
+If you spell Chuck Norris in Scrabble, you win. Forever.
+%
+Guns don't kill people. Chuck Norris kills people.
+%
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
+%
+The chief export of Chuck Norris is Pain.
+%
+Chuck Norris has two speeds. Walk, and Kill.
+%
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
+%
+Chuck Norris drives an ice cream truck covered in human skulls.
+%
+Chuck Norris is my Homeboy.
+%
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
+%
+Chuck Norris uses pepper spray to spice up his steaks.
+%
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
+%
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
+%
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
+%
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
+%
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
+%
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
+%
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
+%
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
+%
+The quickest way to a man's heart is with Chuck Norris' fist.
+%
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
+%
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
+%
+Chuck Norris can win a game of Connect Four in only three moves.
+%
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
+%
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
+%
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
+%
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
+%
+Chuck Norris doesn’t wash his clothes, he disembowels them.
+%
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
+%
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
+%
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
+%
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
+%
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
+%
+In 1945 The US army asked if they could clone Chuck Norris. instead he said he could sort out the Japanese.
+%
+One glance from Chuck Norris and snow turns itself yellow.
+%
+Chuck Norris checks under his bed for Fedor Emelianenko because he takes Fedor to the vet regularly.
+%
+Chuck Norris was the image used for Papa Smurf.
+%
+Chuck Norris is so scary he makes Sharks swim backwards away from him
+%
+When Chuck Norris tosses a coin, it lands on both head and tail.
+%
+Chuck Norris found the last digit of pie
+%
+Chuck Norris Watches "the Nat.Geo. Specials" on Discovery Channel
+%
+James Bond has a license to kill. He got it from Chuck Norris.
+%
+Chuck Norris is Chuck Norris
+%
+"The Big Chuck Norris Roundhouse-Kick Theory"
+%
+That's not an eclipse....that's the sun hiding from Chuck Norris.
+%
+Chuck Norris doesn't like Mudkipz
+%
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
+%
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
+%
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
+%
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
+%
+Chuck Norris does not sleep. He waits.
+%
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
+%
+Chuck Norris is the reason why Waldo is hiding.
+%
+Chuck Norris counted to infinity - twice.
+%
+There is no chin behind Chuck Norris’ beard. There is only another fist.
+%
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
+%
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
+%
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
+%
+Chuck Norris can lead a horse to water AND make it drink.
+%
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
+%
+Chuck Norris can slam a revolving door.
+%
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
+%
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
+%
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
+%
+If you spell Chuck Norris in Scrabble, you win. Forever.
+%
+Guns don't kill people. Chuck Norris kills people.
+%
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
+%
+The chief export of Chuck Norris is Pain.
+%
+Chuck Norris has two speeds. Walk, and Kill.
+%
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
+%
+Chuck Norris drives an ice cream truck covered in human skulls.
+%
+Chuck Norris is my Homeboy.
+%
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
+%
+Chuck Norris uses pepper spray to spice up his steaks.
+%
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
+%
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
+%
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
+%
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
+%
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
+%
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
+%
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
+%
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
+%
+The quickest way to a man's heart is with Chuck Norris' fist.
+%
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
+%
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
+%
+Chuck Norris can win a game of Connect Four in only three moves.
+%
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
+%
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
+%
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
+%
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
+%
+Chuck Norris doesn’t wash his clothes, he disembowels them.
+%
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
+%
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
+%
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
+%
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
+%
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
+%
+Chuck Norris doesn’t eat salad, he eats vegetarians
+%
+Every time there's an earthquake, you know Chuck Norris is hungry. The earthquake is caused by his stomach growling.
+%
+Chuck Norris wasn't born on his birthday
+%
+One time a test cheated on Chuck Norris.
+%
+Chuck Norris won a stepdance contest by standing on his hands
+%
+Chuck Norris thretened to kill Michael Jackson, MJ got so scared to turned white.
+%
+When Steven Seagal kills a ninja, he only takes its hide. When Chuck Norris kills a ninja, he uses every part.
+%
+Chuck Norris is the life of parties he dosen't attend
+%
+Chuck Norris can rub two fires together and make a stick!
+%
+Contrary to popular beleif, Rome WAS built in a day, by Chuck Norris.
+%
+Chuck Norris rolled a 20 on a 6 sided die.
+%
+When chuck Norris was in school, he made his PE teacher run laps.
+%
+Chuck Norris wins NASCAR races with all right turns.
+%
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
+%
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
+%
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
+%
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
+%
+Chuck Norris does not sleep. He waits.
+%
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
+%
+Chuck Norris is the reason why Waldo is hiding.
+%
+Chuck Norris counted to infinity - twice.
+%
+There is no chin behind Chuck Norris’ beard. There is only another fist.
+%
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
+%
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
+%
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
+%
+Chuck Norris can lead a horse to water AND make it drink.
+%
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
+%
+Chuck Norris can slam a revolving door.
+%
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
+%
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
+%
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
+%
+If you spell Chuck Norris in Scrabble, you win. Forever.
+%
+Guns don't kill people. Chuck Norris kills people.
+%
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
+%
+The chief export of Chuck Norris is Pain.
+%
+Chuck Norris has two speeds. Walk, and Kill.
+%
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
+%
+Chuck Norris drives an ice cream truck covered in human skulls.
+%
+Chuck Norris is my Homeboy.
+%
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
+%
+Chuck Norris uses pepper spray to spice up his steaks.
+%
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
+%
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
+%
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
+%
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
+%
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
+%
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
+%
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
+%
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
+%
+The quickest way to a man's heart is with Chuck Norris' fist.
+%
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
+%
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
+%
+Chuck Norris can win a game of Connect Four in only three moves.
+%
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
+%
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
+%
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
+%
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
+%
+Chuck Norris doesn’t wash his clothes, he disembowels them.
+%
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
+%
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
+%
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
+%
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
+%
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
+%
+Chuck Norris is waiting for Mt. St. Helens to erupt again. He's hoping the lava is hot enough to soften his beard so he can shave for the first time.
+%
+Chuck Norris is overra...
+%
+Chuck Norris was originally in Mortal Kombat, but that version was deleted because no one can beat Chuck Norris in a fight.
+%
+Chuck Norris likes everyone on the earth, cause everyone he didn't like... Is dead...
+%
+Chunk Norris can make sour milk turn fresh
+%
+There is no limbo, only a world that doesn't know of Chuck Norris
+%
+Chuck Norris CAN believe it's not butter
+%
+Dog the Bounty Hunter can't track Chuck Norris down.
+%
+Abraham Lincoln didn't die because he was shot, Chuck Norris roundhouse-kicked so fast his foot went back in time and killed Abraham Lincoln.
+%
+When Chuck Norris inhales helium, his voice doesn't change.
+%
+When Chuck Norris drinks water, the water automatically pasteurized.
+%
+Chuck Norris once punched the ground to stop an earthquake. The resulting aftershock caused the BP oil spill
+%
+Chuck Norris can play the death waltz with his chin.
+%
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
+%
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
+%
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
+%
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
+%
+Chuck Norris does not sleep. He waits.
+%
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
+%
+Chuck Norris is the reason why Waldo is hiding.
+%
+Chuck Norris counted to infinity - twice.
+%
+There is no chin behind Chuck Norris’ beard. There is only another fist.
+%
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
+%
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
+%
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
+%
+Chuck Norris can lead a horse to water AND make it drink.
+%
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
+%
+Chuck Norris can slam a revolving door.
+%
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
+%
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
+%
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
+%
+If you spell Chuck Norris in Scrabble, you win. Forever.
+%
+Guns don't kill people. Chuck Norris kills people.
+%
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
+%
+The chief export of Chuck Norris is Pain.
+%
+Chuck Norris has two speeds. Walk, and Kill.
+%
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
+%
+Chuck Norris drives an ice cream truck covered in human skulls.
+%
+Chuck Norris is my Homeboy.
+%
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
+%
+Chuck Norris uses pepper spray to spice up his steaks.
+%
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
+%
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
+%
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
+%
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
+%
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
+%
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
+%
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
+%
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
+%
+The quickest way to a man's heart is with Chuck Norris' fist.
+%
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
+%
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
+%
+Chuck Norris can win a game of Connect Four in only three moves.
+%
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
+%
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
+%
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
+%
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
+%
+Chuck Norris doesn’t wash his clothes, he disembowels them.
+%
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
+%
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
+%
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
+%
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
+%
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
+%
+More of a question than a fact: in a fight between Chuck Norris and Gordan Freeman who would win?
+%
+Chuck Norris once round-house kicked a salesman. Over the phone.
+%
+Chuck Norris can grill a popsicle
+%
+Chuck Norris' films are factual documentaries.
+%
+Casinos pay Chuck Norris not to play at anything or wish anyone good luck.
+%
+Chuck Norris once got a 200 yard punt return
+%
+Every line in a Chuck Norris haiku is "A roundhouse kick to the face." And they all have the correct number of syllables.
+%
+An angry glare from Chuck Norris is known to kill on the spot.
+%
+Evolution's driving mechanism is nature's desperate attempt to escape Chuck Norris.
+%
+When President Roosevelt dropped the atomic bomb on Hiroshima, he did so only because it was more human then sending Chuck Norris.
+%
+Don't get Chuck Norris angry, last time somebody did that Chuck Norris made the Grand Canyon.
+%
+In Texas, there are five sizes for fountain drinks: small, medium, large, Texas sized, and Chuck Norris Sized. It is a cup made of a human skull.
+%
+After Chuck counted to infinity the first time, he vowed to count to infinity a second time....by counting the bodies of those previously roundhoused.
+%
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
+%
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
+%
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
+%
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
+%
+Chuck Norris does not sleep. He waits.
+%
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
+%
+Chuck Norris is the reason why Waldo is hiding.
+%
+Chuck Norris counted to infinity - twice.
+%
+There is no chin behind Chuck Norris’ beard. There is only another fist.
+%
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
+%
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
+%
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
+%
+Chuck Norris can lead a horse to water AND make it drink.
+%
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
+%
+Chuck Norris can slam a revolving door.
+%
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
+%
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
+%
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
+%
+If you spell Chuck Norris in Scrabble, you win. Forever.
+%
+Guns don't kill people. Chuck Norris kills people.
+%
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
+%
+The chief export of Chuck Norris is Pain.
+%
+Chuck Norris has two speeds. Walk, and Kill.
+%
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
+%
+Chuck Norris drives an ice cream truck covered in human skulls.
+%
+Chuck Norris is my Homeboy.
+%
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
+%
+Chuck Norris uses pepper spray to spice up his steaks.
+%
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
+%
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
+%
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
+%
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
+%
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
+%
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
+%
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
+%
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
+%
+The quickest way to a man's heart is with Chuck Norris' fist.
+%
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
+%
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
+%
+Chuck Norris can win a game of Connect Four in only three moves.
+%
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
+%
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
+%
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
+%
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
+%
+Chuck Norris doesn’t wash his clothes, he disembowels them.
+%
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
+%
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
+%
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
+%
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
+%
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
+%
+Taking Karate Lessons = $100, Buying MMA DVD's= $150, Subscribing to a UFC event = $50, Getting a Roundhouse Kick from Chuck Norris = PRICELESS
+%
+Chuck Norris played the game of thrones and won
+%
+Chuck Norris doesn't need sunglasses, the sun needs Chuck Norris glasses
+%
+Chuck Norris doesn't call the wrong number, you just answer the wrong phone.
+%
+Chuck Norris once won the tour de france riding a " big wheel"
+%
+May the Force be with Chuck Norris... for it's own good.
+%
+Chuck Norris once played Duck Duck Goose with a group of Kindergarteners. Only one kid made it to first grade
+%
+During the Civil War Chuck Norris was a slave, his master would often beg him for mercy
+%
+Chuck Norris' glass is never half full or half empty. It stays full even after he takes a drink.
+%
+ King Kong climbed the Empire State building in fear of Chuck Norris who was downstairs at the time.
+%
+Chuck Norris can French kiss his elbow.
+%
+Chuck Norris never trains, because he's Chuck Norris.
+%
+Every phobia known to man has a phobia of Chuck Norris
+%
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
+%
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
+%
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
+%
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
+%
+Chuck Norris does not sleep. He waits.
+%
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
+%
+Chuck Norris is the reason why Waldo is hiding.
+%
+Chuck Norris counted to infinity - twice.
+%
+There is no chin behind Chuck Norris’ beard. There is only another fist.
+%
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
+%
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
+%
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
+%
+Chuck Norris can lead a horse to water AND make it drink.
+%
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
+%
+Chuck Norris can slam a revolving door.
+%
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
+%
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
+%
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
+%
+If you spell Chuck Norris in Scrabble, you win. Forever.
+%
+Guns don't kill people. Chuck Norris kills people.
+%
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
+%
+The chief export of Chuck Norris is Pain.
+%
+Chuck Norris has two speeds. Walk, and Kill.
+%
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
+%
+Chuck Norris drives an ice cream truck covered in human skulls.
+%
+Chuck Norris is my Homeboy.
+%
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
+%
+Chuck Norris uses pepper spray to spice up his steaks.
+%
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
+%
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
+%
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
+%
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
+%
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
+%
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
+%
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
+%
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
+%
+The quickest way to a man's heart is with Chuck Norris' fist.
+%
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
+%
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
+%
+Chuck Norris can win a game of Connect Four in only three moves.
+%
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
+%
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
+%
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
+%
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
+%
+Chuck Norris doesn’t wash his clothes, he disembowels them.
+%
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
+%
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
+%
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
+%
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
+%
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
+%
+Once upon a time, Chuck Norris found himself in a town called Shit Creek.....He opened a Paddle Store.
+%
+Chuck Norris Can Power Solar Panels. At Night.
+%
+When Betty White gets angry, she turns into the Hulk. When Valerie Bertinelli gets mad, she turns into Chuck Norris.
+%
+Chuck Norris is so hard, he uses diamonds as stress balls.
+%
+Chuck Norris can roundhouse kick someone through a window without breaking the glass
+%
+Chuck Norris. Enough said.
+%
+The letters in Chuck Norris cannot be unscrambled.
+%
+Chuck Norris once taught a class of martial arts.Unfortunately Chuck had forgiven to take elephant tranquilizers and killed every one just by saluting
+%
+Chuck Norris was heard in a soundproof room!
+%
+Chuck Norris can see in 3D with just one eye.
+%
+Chuck Norris owns all number 1 pencils.
+%
+Staring at Chuck Norris for extended periods of time without proper eye protection will cause blindess, and possibly foot sized brusies on the face.
+%
+Chuck Norris doesn’t brew up tea. He sucks the bag.
+%
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
+%
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
+%
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
+%
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
+%
+Chuck Norris does not sleep. He waits.
+%
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
+%
+Chuck Norris is the reason why Waldo is hiding.
+%
+Chuck Norris counted to infinity - twice.
+%
+There is no chin behind Chuck Norris’ beard. There is only another fist.
+%
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
+%
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
+%
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
+%
+Chuck Norris can lead a horse to water AND make it drink.
+%
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
+%
+Chuck Norris can slam a revolving door.
+%
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
+%
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
+%
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
+%
+If you spell Chuck Norris in Scrabble, you win. Forever.
+%
+Guns don't kill people. Chuck Norris kills people.
+%
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
+%
+The chief export of Chuck Norris is Pain.
+%
+Chuck Norris has two speeds. Walk, and Kill.
+%
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
+%
+Chuck Norris drives an ice cream truck covered in human skulls.
+%
+Chuck Norris is my Homeboy.
+%
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
+%
+Chuck Norris uses pepper spray to spice up his steaks.
+%
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
+%
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
+%
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
+%
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
+%
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
+%
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
+%
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
+%
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
+%
+The quickest way to a man's heart is with Chuck Norris' fist.
+%
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
+%
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
+%
+Chuck Norris can win a game of Connect Four in only three moves.
+%
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
+%
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
+%
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
+%
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
+%
+Chuck Norris doesn’t wash his clothes, he disembowels them.
+%
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
+%
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
+%
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
+%
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
+%
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
+%
+They say death by a 1000 lashes was the most painful way to die, that was before they got roundhouse kicked in the face by Chuck Norris
+%
+Chuck Norris made a statue bleed.
+%
+Dead bodies were found of people that are still alive. These people will cross Chuck Norris in the future and will be round-house kicked back in time.
+%
+The reason why batman only comes out at night is because he's afraid he might encounter Chuck Norris in the Morning and afternoon.
+%
+The kids said when Chuck was eating Trix cereal ´´silly Chuck, Trix are for kids´´...what happened next?..............................Darfur happened.
+%
+Chuck Norris can roundhouse-kick round houses into squares.
+%
+Chuck Norris is allowed two carry-ons.
+%
+Chuck Norris can divide by zero.
+%
+Chuck Norris does not have a cell phone because he hears everything
+%
+Chuck Norris isn't appropriate...appropriate isn't Chuck Norris
+%
+Earth's rotation is purely governed by the direction that Chuck Norris is walking.
+%
+Chuck Norris drowned a man ON LAND.
+%
+The Jone's are trying to keep up with Chuck Norris
+%
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
+%
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
+%
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
+%
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
+%
+Chuck Norris does not sleep. He waits.
+%
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
+%
+Chuck Norris is the reason why Waldo is hiding.
+%
+Chuck Norris counted to infinity - twice.
+%
+There is no chin behind Chuck Norris’ beard. There is only another fist.
+%
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
+%
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
+%
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
+%
+Chuck Norris can lead a horse to water AND make it drink.
+%
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
+%
+Chuck Norris can slam a revolving door.
+%
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
+%
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
+%
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
+%
+If you spell Chuck Norris in Scrabble, you win. Forever.
+%
+Guns don't kill people. Chuck Norris kills people.
+%
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
+%
+The chief export of Chuck Norris is Pain.
+%
+Chuck Norris has two speeds. Walk, and Kill.
+%
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
+%
+Chuck Norris drives an ice cream truck covered in human skulls.
+%
+Chuck Norris is my Homeboy.
+%
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
+%
+Chuck Norris uses pepper spray to spice up his steaks.
+%
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
+%
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
+%
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
+%
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
+%
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
+%
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
+%
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
+%
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
+%
+The quickest way to a man's heart is with Chuck Norris' fist.
+%
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
+%
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
+%
+Chuck Norris can win a game of Connect Four in only three moves.
+%
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
+%
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
+%
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
+%
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
+%
+Chuck Norris doesn’t wash his clothes, he disembowels them.
+%
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
+%
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
+%
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
+%
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
+%
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
+%
+Chuck Norris bowled a 301 after constructing another pin out of his beard hair
+%
+The only reason that USA lost the 2011 world cup to Japan is because Chuck Norris wasn't there.
+%
+Unlike Jack Bauer, Chuck Norris doesn't need bullets. A quick roundhouse to the face kills twice as fast.
+%
+There is no such thing as global warming. Chuck Norris was cold, so he turned the sun up.
+%
+Chuck Norris' dog pick up after him.
+%
+Jedis are now taught to use the "Chuck"
+%
+Chuck Norris dosent carry a list. He always knows what to do.
+%
+When Chuck Norris performs a roundhouse kick, he's actually measuring the circumference of the universe.
+%
+Walker: Texas Ranger went into syndication before the first episode was shot.
+%
+Chuck Norris doesn't throw up if he drinks too much. Chuck Norris throws down!
+%
+"Walker Texas Ranger: The Movie 3-D" was considered by Warner Brothers; however the technology to create the visual effects will never be possible.
+%
+When Chuck Norris creates a login, it tells him "password not strong enough", he types in his name and it tells him "password too strong."
+%
+Chuck Norris isn't allowed at the zoo because when he's there the animals are terriefied to come out their cages
+%
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
+%
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
+%
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
+%
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
+%
+Chuck Norris does not sleep. He waits.
+%
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
+%
+Chuck Norris is the reason why Waldo is hiding.
+%
+Chuck Norris counted to infinity - twice.
+%
+There is no chin behind Chuck Norris’ beard. There is only another fist.
+%
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
+%
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
+%
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
+%
+Chuck Norris can lead a horse to water AND make it drink.
+%
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
+%
+Chuck Norris can slam a revolving door.
+%
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
+%
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
+%
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
+%
+If you spell Chuck Norris in Scrabble, you win. Forever.
+%
+Guns don't kill people. Chuck Norris kills people.
+%
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
+%
+The chief export of Chuck Norris is Pain.
+%
+Chuck Norris has two speeds. Walk, and Kill.
+%
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
+%
+Chuck Norris drives an ice cream truck covered in human skulls.
+%
+Chuck Norris is my Homeboy.
+%
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
+%
+Chuck Norris uses pepper spray to spice up his steaks.
+%
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
+%
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
+%
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
+%
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
+%
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
+%
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
+%
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
+%
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
+%
+The quickest way to a man's heart is with Chuck Norris' fist.
+%
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
+%
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
+%
+Chuck Norris can win a game of Connect Four in only three moves.
+%
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
+%
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
+%
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
+%
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
+%
+Chuck Norris doesn’t wash his clothes, he disembowels them.
+%
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
+%
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
+%
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
+%
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
+%
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
+%
+Aliens fear that Chuck Norris might abduct them.
+%
+Chuck Norris splattered tiger blood and Adonis' dna on Charlie Sheen with 1 roundhouse kick!
+%
+How much wood could a woodchuck chuck if a woodchuck could chuck wood? No woodchuck could chuck Chuck's wood!
+%
+The sun only rises every morning because Chuck Norris allows it to.
+%
+Chuck Norris can do a regime change with a roundhouse kick.
+%
+Chuck Norris CAN spell with an I before E even after C.
+%
+Ghosts can see Chuck Norris
+%
+The answer to life, the universe and everything isnt 42. It's Chuck Norris.
+%
+When Chuck Norris pokes the Pillsbury Doughboy, it's not a laughing matter.
+%
+Chuck Norris once thought he was wrong. He was, however, mistaken.
+%
+Ever wonder what really happened to the dinosaurs? They all dug their own graves when they heard Chuck Norris was coming
+%
+"The wind cries Chuck Norris"
+%
+Chuck Norris doesn't need a bulletproof vest. He catches them with his bare hands.
+%
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
+%
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
+%
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
+%
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
+%
+Chuck Norris does not sleep. He waits.
+%
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
+%
+Chuck Norris is the reason why Waldo is hiding.
+%
+Chuck Norris counted to infinity - twice.
+%
+There is no chin behind Chuck Norris’ beard. There is only another fist.
+%
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
+%
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
+%
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
+%
+Chuck Norris can lead a horse to water AND make it drink.
+%
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
+%
+Chuck Norris can slam a revolving door.
+%
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
+%
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
+%
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
+%
+If you spell Chuck Norris in Scrabble, you win. Forever.
+%
+Guns don't kill people. Chuck Norris kills people.
+%
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
+%
+The chief export of Chuck Norris is Pain.
+%
+Chuck Norris has two speeds. Walk, and Kill.
+%
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
+%
+Chuck Norris drives an ice cream truck covered in human skulls.
+%
+Chuck Norris is my Homeboy.
+%
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
+%
+Chuck Norris uses pepper spray to spice up his steaks.
+%
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
+%
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
+%
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
+%
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
+%
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
+%
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
+%
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
+%
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
+%
+The quickest way to a man's heart is with Chuck Norris' fist.
+%
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
+%
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
+%
+Chuck Norris can win a game of Connect Four in only three moves.
+%
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
+%
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
+%
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
+%
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
+%
+Chuck Norris doesn’t wash his clothes, he disembowels them.
+%
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
+%
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
+%
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
+%
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
+%
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
+%
+Chuck Norris: even Naruto can't believe it
+%
+Chuck Norris can fit 10 gallons of water in a 5 gallon water bucket
+%
+Chuck Norris roundhouse kicks people in the face first and asks questions later.
+%
+Chuck Norris is the only one who can tear a facebook page!
+%
+Chuck Norris doesn't need air, he is air
+%
+Chuck Norris once tried to teach a fat, stupid kid Martial Arts. Unsuccessfully. The kid grew up to be Steven Seagal.
+%
+Achievement Unlocked: Chuck Norris of Death
+%
+Chuck Norris is the ghost in paranormal activity.
+%
+Chuck Norris can't get fired by Donald Trump
+%
+Ozzy Osbourne once accidentally bit the head off a live bat - Chuck Norris once deliberately bit the head off a live pterodactyl.
+%
+Note to self: Don’t be the cashier to tell Chuck Norris his coupons have expired.
+%
+Chuck Norris was what Willis was talking about.
+%
+Chuck Norris is entitiled to his own facts.
+%
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
+%
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
+%
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
+%
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
+%
+Chuck Norris does not sleep. He waits.
+%
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
+%
+Chuck Norris is the reason why Waldo is hiding.
+%
+Chuck Norris counted to infinity - twice.
+%
+There is no chin behind Chuck Norris’ beard. There is only another fist.
+%
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
+%
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
+%
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
+%
+Chuck Norris can lead a horse to water AND make it drink.
+%
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
+%
+Chuck Norris can slam a revolving door.
+%
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
+%
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
+%
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
+%
+If you spell Chuck Norris in Scrabble, you win. Forever.
+%
+Guns don't kill people. Chuck Norris kills people.
+%
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
+%
+The chief export of Chuck Norris is Pain.
+%
+Chuck Norris has two speeds. Walk, and Kill.
+%
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
+%
+Chuck Norris drives an ice cream truck covered in human skulls.
+%
+Chuck Norris is my Homeboy.
+%
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
+%
+Chuck Norris uses pepper spray to spice up his steaks.
+%
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
+%
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
+%
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
+%
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
+%
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
+%
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
+%
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
+%
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
+%
+The quickest way to a man's heart is with Chuck Norris' fist.
+%
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
+%
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
+%
+Chuck Norris can win a game of Connect Four in only three moves.
+%
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
+%
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
+%
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
+%
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
+%
+Chuck Norris doesn’t wash his clothes, he disembowels them.
+%
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
+%
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
+%
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
+%
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
+%
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
+%
+While visiting the hexagon, Chuck Norris was asked to demonstrate his famous roundhouse kick. Henceforth, it has been known as the Pentagon.
+%
+When Chuck Norris played the card game War with a friend, France surrendered.
+%
+If Goliath listened to Chuck Norris he would have won.
+%
+Chuck Norris can defuse bomb even if he cut the wrong wire
+%
+Chuck Norris sleeps in Seattle.
+%
+Chuck Norris shot a man with a knife
+%
+The dictionary references Chuck Norris several times, he is metioned under Fear, Law, Order and Chucktatorship.
+%
+Chuck Norris CAN balance the light-switch between ON and OFF.
+%
+If Chuck was ever captured, he could win a game of Russian Roulette with six bullets in the revolver, he would shoot everyone else!
+%
+In a rain storm Chuck Norris stays dry. Rain drops are scared to hit him.
+%
+Chuck Norris is the reason tumbleweeds tumble
+%
+The Earth was almost destroyed by a 50 km wide asteroid in 1984, but Chuck Norris roundhouse kicked it into the Sun.
+%
+Chuck Norris can terminate a repeating decimal.
+%
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
+%
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
+%
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
+%
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
+%
+Chuck Norris does not sleep. He waits.
+%
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
+%
+Chuck Norris is the reason why Waldo is hiding.
+%
+Chuck Norris counted to infinity - twice.
+%
+There is no chin behind Chuck Norris’ beard. There is only another fist.
+%
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
+%
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
+%
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
+%
+Chuck Norris can lead a horse to water AND make it drink.
+%
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
+%
+Chuck Norris can slam a revolving door.
+%
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
+%
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
+%
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
+%
+If you spell Chuck Norris in Scrabble, you win. Forever.
+%
+Guns don't kill people. Chuck Norris kills people.
+%
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
+%
+The chief export of Chuck Norris is Pain.
+%
+Chuck Norris has two speeds. Walk, and Kill.
+%
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
+%
+Chuck Norris drives an ice cream truck covered in human skulls.
+%
+Chuck Norris is my Homeboy.
+%
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
+%
+Chuck Norris uses pepper spray to spice up his steaks.
+%
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
+%
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
+%
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
+%
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
+%
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
+%
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
+%
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
+%
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
+%
+The quickest way to a man's heart is with Chuck Norris' fist.
+%
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
+%
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
+%
+Chuck Norris can win a game of Connect Four in only three moves.
+%
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
+%
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
+%
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
+%
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
+%
+Chuck Norris doesn’t wash his clothes, he disembowels them.
+%
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
+%
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
+%
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
+%
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
+%
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
+%
+Chuck Norris doesn't look for fun. The fun looks for Chuck Norris.
+%
+Chuck Norris starts his day with 6 live chickens two cows, three pigs and a boiling hot cup of pure fury
+%
+The only word that rhymes with orange is Chuck Norris
+%
+Everyone is so scared of Chuck Norris that they kiss his arse by writing these facts, too right they should
+%
+gmail@chucknorris.com
+%
+Chuck Norris play's Texas hold em with Zeus, every second Wednesday of the month
+%
+Chuck Norris has killed the Dead Sea
+%
+On the keyboard there is no control button because Chuck Norris is always in control.
+%
+The truth hurts dosen't it, Chuck Norris' truth kills.
+%
+Chuck Norris sent a BBM to an iphone.
+%
+When Presidents speak, their nation listens. When Chuck Norris blinks, the whole World listens.
+%
+Chuck Norris once cried just to see what it was like. The end result was the creation of life.
+%
+Chuck Norris is the reason that the world will end in 2012. He was getting bored with the Earth
+%
+When the Boogeyman goes to sleep every night, he checks his closet for Chuck Norris.
+%
+Chuck Norris doesn't read books. He stares them down until he gets the information he wants.
+%
+There is no theory of evolution. Just a list of creatures Chuck Norris has allowed to live.
+%
+Outer space exists because it's afraid to be on the same planet with Chuck Norris.
+%
+Chuck Norris does not sleep. He waits.
+%
+Chuck Norris is currently suing NBC, claiming Law and Order are trademarked names for his left and right legs.
+%
+Chuck Norris is the reason why Waldo is hiding.
+%
+Chuck Norris counted to infinity - twice.
+%
+There is no chin behind Chuck Norris’ beard. There is only another fist.
+%
+When Chuck Norris does a pushup, he isn't lifting himself up, he's pushing the Earth down.
+%
+Chuck Norris is so fast, he can run around the world and punch himself in the back of the head.
+%
+Chuck Norris' hand is the only hand that can beat a Royal Flush.
+%
+Chuck Norris can lead a horse to water AND make it drink.
+%
+Chuck Norris doesn’t wear a watch. HE decides what time it is.
+%
+Chuck Norris can slam a revolving door.
+%
+Chuck Norris does not get frostbite. Chuck Norris bites frost.
+%
+Remember the Soviet Union? They decided to quit after watching a DeltaForce marathon on Satellite TV.
+%
+Contrary to popular belief, America is not a democracy, it is a Chucktatorship.
+%
+If you spell Chuck Norris in Scrabble, you win. Forever.
+%
+Guns don't kill people. Chuck Norris kills people.
+%
+There is no theory of evolution. Just a list of animals Chuck Norris allows to live.
+%
+The chief export of Chuck Norris is Pain.
+%
+Chuck Norris has two speeds. Walk, and Kill.
+%
+The leading causes of death in the United States are: 1. Heart Disease 2. Chuck Norris 3. Cancer.
+%
+Chuck Norris drives an ice cream truck covered in human skulls.
+%
+Chuck Norris is my Homeboy.
+%
+Chuck Norris doesn't go hunting.... CHUCK NORRIS GOES KILLING.
+%
+Chuck Norris uses pepper spray to spice up his steaks.
+%
+Chuck Norris once roundhouse kicked someone so hard that his foot broke the speed of light, went back in time, and killed Amelia Earhart while she was flying over the Pacific Ocean.
+%
+Crop circles are Chuck Norris' way of telling the world that sometimes corn needs to lie down.
+%
+Chuck Norris is ten feet tall, weighs two-tons, breathes fire, and could eat a hammer and take a shotgun blast standing.
+%
+The Great Wall of China was originally created to keep Chuck Norris out. It failed miserably.
+%
+Contrary to popular belief, Chuck Norris, not the box jellyfish of northern Australia, is the most venomous creature on earth.
+%
+Most people have 23 pairs of chromosomes. Chuck Norris has 72... and they're all poisonous.
+%
+If you ask Chuck Norris what time it is, he always says, "Two seconds 'til." After you ask, "Two seconds 'til what?" he roundhouse kicks you in the face.
+%
+When Chuck Norris sends in his taxes, he sends blank forms and includes only a picture of himself, crouched and ready to attack. Chuck Norris has not had to pay taxes, ever.
+%
+The quickest way to a man's heart is with Chuck Norris' fist.
+%
+Chuck Norris invented Kentucky Fried Chicken's famous secret recipe, with eleven herbs and spices. But nobody ever mentions the twelfth ingredient: Fear.
+%
+CNN was originally created as the "Chuck Norris Network" to update Americans with on-the-spot ass kicking in real-time.
+%
+Chuck Norris can win a game of Connect Four in only three moves.
+%
+What was going through the minds of all of Chuck Norris' victims before they died? His shoe.
+%
+Chuck Norris is the only man to ever defeat a brick wall in a game of tennis.
+%
+Police label anyone attacking Chuck Norris as a Code 45-11.... a suicide.
+%
+Chuck Norris doesn't churn butter. He roundhouse kicks the cows and the butter comes straight out.
+%
+Chuck Norris doesn’t wash his clothes, he disembowels them.
+%
+A Handicapped parking sign does not signify that this spot is for handicapped people. It is actually in fact a warning, that the spot belongs to Chuck Norris and that you will be handicapped if you park there.
+%
+Chuck Norris will attain statehood in 2009. His state flower will be the Magnolia.
+%
+Someone once videotaped Chuck Norris getting pissed off. It was called Walker: Texas Chain Saw Massacre.
+%
+Chuck Norris originally appeared in the "Street Fighter II" video game, but was removed by Beta Testers because every button caused him to do a roundhouse kick. When asked bout this "glitch," Norris replied, "That's no glitch."
+%
+Fool me once, shame on you. Fool Chuck Norris once and he will roundhouse you in the face.
+%
+Only Chuck Norris is stronger than an Altoid.
+%
+Chuck Norris has a battlecruiser AND a car.
+%
+Chuck Norris burnt a fire proof vest, UNDERWATER!
+%
+Chuck Norris was once turned down for American Idol. When Simon was questioned about it, he replied "I'm retiring after this season". I wonder why?
+%
+Chuck Norris doesn't cheat death, he beats it fair and square.
+%
+When Chuck Norris roundhouse-kicks you HE decides when you will feel the impact .
+%
+Chuck Norris made the big bang just by clicking his fingers
+%
+Trick me once, shame on you, trick Chuck Norris.....rest in peace.
+%
+Chuck Norris doesn't fight. He gives motivational seminars to die on their own to avoid a roundhouse kick to the face.
+%
+This one time at band camp... BAM! Chuck Norris.
+%
+Chuck Norris protects his body guards.
+%
+Chuck Norris watched the first steps on the moon... From his summer home on Mars
+%
+The Earth is made up of two-thirds water and one-third Chuck Norris.
%
From 13c840fa3eb0fab916c303b07848d680481e587a Mon Sep 17 00:00:00 2001
From: Andrew Janke
Date: Thu, 26 Feb 2015 19:30:33 -0500
Subject: [PATCH 067/644] Remove the GPL LICENSE file b/c it's no longer
relevant
---
plugins/chucknorris/LICENSE | 2 --
1 file changed, 2 deletions(-)
delete mode 100644 plugins/chucknorris/LICENSE
diff --git a/plugins/chucknorris/LICENSE b/plugins/chucknorris/LICENSE
deleted file mode 100644
index 5f40edd1e..000000000
--- a/plugins/chucknorris/LICENSE
+++ /dev/null
@@ -1,2 +0,0 @@
-License: GPL v2
-Thanks to http://www.k-lug.org/~kessler/projects.html for the fortune file.
From cea941ce42b5d550489367608dd1ac4401151c97 Mon Sep 17 00:00:00 2001
From: Andrew Janke
Date: Tue, 23 Jun 2015 17:07:21 -0400
Subject: [PATCH 068/644] sublime plugin: make "local" work by wrapping in anon
function
---
plugins/sublime/sublime.plugin.zsh | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/plugins/sublime/sublime.plugin.zsh b/plugins/sublime/sublime.plugin.zsh
index 22cf98227..8934783c9 100644
--- a/plugins/sublime/sublime.plugin.zsh
+++ b/plugins/sublime/sublime.plugin.zsh
@@ -1,5 +1,9 @@
+# Sublime Text Aliases
+
+() {
+
if [[ "$OSTYPE" == linux* ]]; then
- local _sublime_linux_paths > /dev/null 2>&1
+ local _sublime_linux_paths _sublime_path
_sublime_linux_paths=(
"$HOME/bin/sublime_text"
"/opt/sublime_text/sublime_text"
@@ -19,9 +23,8 @@ if [[ "$OSTYPE" == linux* ]]; then
break
fi
done
-
elif [[ "$OSTYPE" = darwin* ]]; then
- local _sublime_darwin_paths > /dev/null 2>&1
+ local _sublime_darwin_paths _sublime_path
_sublime_darwin_paths=(
"/usr/local/bin/subl"
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
@@ -38,10 +41,9 @@ elif [[ "$OSTYPE" = darwin* ]]; then
break
fi
done
-
elif [[ "$OSTYPE" = 'cygwin' ]]; then
- local _sublime_cygwin_paths > /dev/null 2>&1
- _sublime_cygwin_paths=(
+ local sublime_cygwin_paths _sublime_path
+ sublime_cygwin_paths=(
"$(cygpath $ProgramW6432/Sublime\ Text\ 2)/sublime_text.exe"
"$(cygpath $ProgramW6432/Sublime\ Text\ 3)/sublime_text.exe"
)
@@ -52,9 +54,10 @@ elif [[ "$OSTYPE" = 'cygwin' ]]; then
break
fi
done
-
fi
+}
+
alias stt='st .'
find_project()
From 8efcf2776b2e7e00c073b149f76c04715aa695d3 Mon Sep 17 00:00:00 2001
From: Terrance Kennedy
Date: Sun, 22 Apr 2018 12:03:58 -0600
Subject: [PATCH 069/644] pyenv plugin refactor (8x faster) (#6165)
* Refactor pyenv plugin to use PATH
---
plugins/pyenv/pyenv.plugin.zsh | 61 ++++++++--------------------------
1 file changed, 14 insertions(+), 47 deletions(-)
diff --git a/plugins/pyenv/pyenv.plugin.zsh b/plugins/pyenv/pyenv.plugin.zsh
index ec3ae9f5b..76880e415 100644
--- a/plugins/pyenv/pyenv.plugin.zsh
+++ b/plugins/pyenv/pyenv.plugin.zsh
@@ -1,50 +1,17 @@
-_homebrew-installed() {
- type brew &> /dev/null
-}
+# This plugin loads pyenv into the current shell and provides prompt info via
+# the 'pyenv_prompt_info' function. Also loads pyenv-virtualenv if available.
-_pyenv-from-homebrew-installed() {
- brew --prefix pyenv &> /dev/null
-}
-
-FOUND_PYENV=0
-pyenvdirs=("$HOME/.pyenv" "/usr/local/pyenv" "/opt/pyenv")
-
-for pyenvdir in "${pyenvdirs[@]}" ; do
- if [ -d $pyenvdir/bin -a $FOUND_PYENV -eq 0 ] ; then
- FOUND_PYENV=1
- export PYENV_ROOT=$pyenvdir
- export PATH=${pyenvdir}/bin:$PATH
- eval "$(pyenv init - zsh)"
-
- if pyenv commands | command grep -q virtualenv-init; then
- eval "$(pyenv virtualenv-init - zsh)"
- fi
-
- function pyenv_prompt_info() {
- echo "$(pyenv version-name)"
- }
- fi
-done
-unset pyenvdir
-
-if [ $FOUND_PYENV -eq 0 ] ; then
- pyenvdir=$(brew --prefix pyenv 2> /dev/null)
- if [ $? -eq 0 -a -d $pyenvdir/bin ] ; then
- FOUND_PYENV=1
- export PYENV_ROOT=$pyenvdir
- export PATH=${pyenvdir}/bin:$PATH
- eval "$(pyenv init - zsh)"
-
- if pyenv commands | command grep -q virtualenv-init; then
- eval "$(pyenv virtualenv-init - zsh)"
- fi
-
- function pyenv_prompt_info() {
- echo "$(pyenv version-name)"
- }
+if (( $+commands[pyenv] )); then
+ eval "$(pyenv init - zsh)"
+ if (( $+commands[pyenv-virtualenv-init] )); then
+ eval "$(pyenv virtualenv-init - zsh)"
fi
-fi
-
-if [ $FOUND_PYENV -eq 0 ] ; then
- function pyenv_prompt_info() { echo "system: $(python -V 2>&1 | cut -f 2 -d ' ')" }
+ function pyenv_prompt_info() {
+ echo "$(pyenv version-name)"
+ }
+else
+ # fallback to system python
+ function pyenv_prompt_info() {
+ echo "system: $(python -V 2>&1 | cut -f 2 -d ' ')"
+ }
fi
From c7185c35f35d5c9a57a48815d379c5b1be47cd8a Mon Sep 17 00:00:00 2001
From: Julian Laubstein
Date: Sun, 22 Apr 2018 20:27:12 +0200
Subject: [PATCH 070/644] Add completions to asdf plugin (#6046)
---
plugins/asdf/asdf.plugin.zsh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/plugins/asdf/asdf.plugin.zsh b/plugins/asdf/asdf.plugin.zsh
index 8736d2ff8..d563cf5f8 100644
--- a/plugins/asdf/asdf.plugin.zsh
+++ b/plugins/asdf/asdf.plugin.zsh
@@ -5,3 +5,8 @@ ASDF_DIR="${ASDF_DIR:-$HOME/.asdf}"
if [ -f $ASDF_DIR/asdf.sh ]; then
. $ASDF_DIR/asdf.sh
fi
+
+# Load asdf completions, if found.
+if [ -f $ASDF_DIR/completions/asdf.bash ]; then
+ . $ASDF_DIR/completions/asdf.bash
+fi
From 604f580f0546aefd6aef00b1a1943d68f4cebae6 Mon Sep 17 00:00:00 2001
From: Sean Abraham
Date: Sun, 22 Apr 2018 13:37:06 -0700
Subject: [PATCH 071/644] Make steeef theme much faster by not iterating
through all history (#6359)
* Make steef much faster by not printing all history each time
* Use whence -c to expand shell functions as well
* Use $2 (expanded command about to be ran)
---
themes/steeef.zsh-theme | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/themes/steeef.zsh-theme b/themes/steeef.zsh-theme
index b72a41c92..88ef1ca1b 100644
--- a/themes/steeef.zsh-theme
+++ b/themes/steeef.zsh-theme
@@ -62,7 +62,7 @@ zstyle ':vcs_info:*:prompt:*' nvcsformats ""
function steeef_preexec {
- case "$(history $HISTCMD)" in
+ case "$2" in
*git*)
PR_GIT_UPDATE=1
;;
From 7bb7ce62d3a78859aa15151ecc46df5adc9cf049 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Francisco=20Zuvir=C3=ADa?=
Date: Sun, 22 Apr 2018 22:34:26 -0300
Subject: [PATCH 072/644] On branch
fzuviria.plugin.dirhistory.new-feature.navigate-history Changes to be
committed: modified: dirhistory/dirhistory.plugin.zsh
New Feature:
Navigate directory hierarchy using ALT-UP and ALT-DOWN. (mac keybindings not yet implemented)
ALT-UP moves to higher hierarchy (cd ..)
ALT-DOWN moves into the first directory found in alphabetical order
---
plugins/dirhistory/dirhistory.plugin.zsh | 50 ++++++++++++++++++++++++
1 file changed, 50 insertions(+)
diff --git a/plugins/dirhistory/dirhistory.plugin.zsh b/plugins/dirhistory/dirhistory.plugin.zsh
index 8138872bc..05839e35a 100644
--- a/plugins/dirhistory/dirhistory.plugin.zsh
+++ b/plugins/dirhistory/dirhistory.plugin.zsh
@@ -2,6 +2,10 @@
# Navigate directory history using ALT-LEFT and ALT-RIGHT. ALT-LEFT moves back to directories
# that the user has changed to in the past, and ALT-RIGHT undoes ALT-LEFT.
#
+# Navigate directory hierarchy using ALT-UP and ALT-DOWN. (mac keybindings not yet implemented)
+# ALT-UP moves to higher hierarchy (cd ..)
+# ALT-DOWN moves into the first directory found in alphabetical order
+#
dirhistory_past=($PWD)
dirhistory_future=()
@@ -134,3 +138,49 @@ bindkey "\e\e[C" dirhistory_zle_dirhistory_future
bindkey "\eO3C" dirhistory_zle_dirhistory_future
+#
+# HIERARCHY Implemented in this section, in case someone wants to split it to another plugin if it clashes bindings
+#
+
+# Move up in hierarchy
+function dirhistory_up() {
+ cd ..
+}
+
+# Move down in hierarchy
+function dirhistory_down() {
+ cd "`find . -mindepth 1 -maxdepth 1 -type d | sort -n | head -n 1`"
+}
+
+
+# Bind keys to hierarchy navigation
+function dirhistory_zle_dirhistory_up() {
+ zle kill-buffer # Erase current line in buffer
+ dirhistory_up
+ zle accept-line
+}
+
+function dirhistory_zle_dirhistory_down() {
+ zle kill-buffer # Erase current line in buffer
+ dirhistory_down
+ zle accept-line
+}
+
+zle -N dirhistory_zle_dirhistory_up
+# xterm in normal mode
+bindkey "\e[3A" dirhistory_zle_dirhistory_up
+bindkey "\e[1;3A" dirhistory_zle_dirhistory_up
+# Mac teminal (alt+up)
+ #bindkey "^[?" dirhistory_zle_dirhistory_up #dont know it
+# Putty:
+bindkey "\e\e[A" dirhistory_zle_dirhistory_up
+# GNU screen:
+bindkey "\eO3A" dirhistory_zle_dirhistory_up
+
+zle -N dirhistory_zle_dirhistory_down
+bindkey "\e[3B" dirhistory_zle_dirhistory_down
+bindkey "\e[1;3B" dirhistory_zle_dirhistory_down
+# Mac teminal (alt+down)
+ #bindkey "^[?" dirhistory_zle_dirhistory_down #dont know it
+bindkey "\e\e[B" dirhistory_zle_dirhistory_down
+bindkey "\eO3B" dirhistory_zle_dirhistory_down
From cf5ccf06a0ac5a00addc23ecfcc3dd2b2f93ea2d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Mon, 23 Apr 2018 13:06:49 +0200
Subject: [PATCH 073/644] [subl] Fix local variable definition
Fixes #6757
---
plugins/sublime/sublime.plugin.zsh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/plugins/sublime/sublime.plugin.zsh b/plugins/sublime/sublime.plugin.zsh
index 8934783c9..f5bb070ab 100644
--- a/plugins/sublime/sublime.plugin.zsh
+++ b/plugins/sublime/sublime.plugin.zsh
@@ -3,7 +3,7 @@
() {
if [[ "$OSTYPE" == linux* ]]; then
- local _sublime_linux_paths _sublime_path
+ local _sublime_linux_paths
_sublime_linux_paths=(
"$HOME/bin/sublime_text"
"/opt/sublime_text/sublime_text"
@@ -24,7 +24,7 @@ if [[ "$OSTYPE" == linux* ]]; then
fi
done
elif [[ "$OSTYPE" = darwin* ]]; then
- local _sublime_darwin_paths _sublime_path
+ local _sublime_darwin_paths
_sublime_darwin_paths=(
"/usr/local/bin/subl"
"/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl"
@@ -42,7 +42,7 @@ elif [[ "$OSTYPE" = darwin* ]]; then
fi
done
elif [[ "$OSTYPE" = 'cygwin' ]]; then
- local sublime_cygwin_paths _sublime_path
+ local sublime_cygwin_paths
sublime_cygwin_paths=(
"$(cygpath $ProgramW6432/Sublime\ Text\ 2)/sublime_text.exe"
"$(cygpath $ProgramW6432/Sublime\ Text\ 3)/sublime_text.exe"
From c117d241cb4157204e9bda5285786d95e9c2fb36 Mon Sep 17 00:00:00 2001
From: oooooooo
Date: Tue, 24 Apr 2018 03:36:55 +0900
Subject: [PATCH 074/644] $ rails runner [TAB] *complete* (#5881)
---
plugins/rails/_rails | 3 +++
1 file changed, 3 insertions(+)
diff --git a/plugins/rails/_rails b/plugins/rails/_rails
index 96f57ce64..ad7505506 100644
--- a/plugins/rails/_rails
+++ b/plugins/rails/_rails
@@ -51,6 +51,9 @@ _arguments \
if (( CURRENT == 1 )); then
_describe -t commands "rails subcommand" _1st_arguments
return
+else
+ _files
+ return
fi
case "$words[1]" in
From 45a9f284641a23baa142743d8a6136d4e300c465 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Mon, 23 Apr 2018 20:47:19 +0200
Subject: [PATCH 075/644] [half-life] Fix last command check
Fixes #6758
---
themes/half-life.zsh-theme | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/themes/half-life.zsh-theme b/themes/half-life.zsh-theme
index 5f987099d..8b458cde9 100644
--- a/themes/half-life.zsh-theme
+++ b/themes/half-life.zsh-theme
@@ -60,7 +60,7 @@ zstyle ':vcs_info:*:prompt:*' nvcsformats ""
function steeef_preexec {
- case "$(history $HISTCMD)" in
+ case "$2" in
*git*)
PR_GIT_UPDATE=1
;;
From ef70990ce1ac0239005b267e5dcfe096969d26c3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Tue, 24 Apr 2018 22:02:58 +0200
Subject: [PATCH 076/644] Simplify hub check and hardcode aliasing (#6767)
* Simplify hub check and hardcode aliasing
* Update hub completion
---
plugins/github/_hub | 2 ++
plugins/github/github.plugin.zsh | 6 ++----
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/plugins/github/_hub b/plugins/github/_hub
index 3a6493878..1833a9c09 100644
--- a/plugins/github/_hub
+++ b/plugins/github/_hub
@@ -89,6 +89,7 @@ __hub_setup_zsh_fns () {
browse:'browse the project on GitHub'
compare:'open GitHub compare view'
ci-status:'lookup commit in GitHub Status API'
+ sync:'update local branches from upstream'
)
_describe -t hub-commands 'hub command' hub_commands && ret=0
@@ -115,6 +116,7 @@ create
browse
compare
ci-status
+sync
EOF
__git_list_all_commands_without_hub
}
diff --git a/plugins/github/github.plugin.zsh b/plugins/github/github.plugin.zsh
index 0ab399c97..077f07bd4 100644
--- a/plugins/github/github.plugin.zsh
+++ b/plugins/github/github.plugin.zsh
@@ -1,8 +1,6 @@
# Set up hub wrapper for git, if it is available; http://github.com/github/hub
-if [ "$commands[(I)hub]" ]; then
- if hub --version &>/dev/null; then
- eval $(hub alias -s zsh)
- fi
+if (( $+commands[hub] )); then
+ alias git=hub
fi
# Functions #################################################################
From 93d9431890540dfdc1021dffca3eeebdc19d338d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Tue, 24 Apr 2018 23:47:26 +0200
Subject: [PATCH 077/644] Check for Microsoft's WSL in open_command (#6751)
This will work only on files and directories in a DrvFs mount, i.e.
that can be translated to a Windows drive path.
For example: /mnt/c/Users/user.
Files and folders inside the LXSS directory can't be handled in
Windows, they must be ONLY used by the WSL subsystem. That's why
you won't be able to open your $HOME directory, for instance.
See https://blogs.msdn.microsoft.com/commandline/2016/11/17/do-not-change-linux-files-using-windows-apps-and-tools/
---
lib/functions.zsh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/functions.zsh b/lib/functions.zsh
index f30653784..7410ae645 100644
--- a/lib/functions.zsh
+++ b/lib/functions.zsh
@@ -25,7 +25,9 @@ function open_command() {
case "$OSTYPE" in
darwin*) open_cmd='open' ;;
cygwin*) open_cmd='cygstart' ;;
- linux*) open_cmd='xdg-open' ;;
+ linux*) [[ $(uname -a) =~ "Microsoft" ]] && \
+ open_cmd='cmd.exe /c start' || \
+ open_cmd='xdg-open' ;;
msys*) open_cmd='start ""' ;;
*) echo "Platform $OSTYPE not supported"
return 1
From b85c72b5f6ed1d33414cc2d9e7afceef12b861e7 Mon Sep 17 00:00:00 2001
From: Tomasz Borek
Date: Wed, 25 Apr 2018 14:11:46 +0200
Subject: [PATCH 078/644] Better app error handling in curl (#5828)
Deals with app error page, saving true error instead.
Upon app failure, Heroku returns HTML "Application Error" page.
Finding HTML page in .gitignore is confusing, so I replaced
`-s` with `-f` in curl calls, which cuts such output.
Replace instead of addition as no progress meter outputs either.
It is practically impossible to teach good programming style to students that have had prior exposure to BASIC. As potential programmers, they are mentally mutilated beyond hope of regeneration.
-- E. W. Dijkstra
---
plugins/gitignore/gitignore.plugin.zsh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/gitignore/gitignore.plugin.zsh b/plugins/gitignore/gitignore.plugin.zsh
index ba1b38711..f242169e4 100644
--- a/plugins/gitignore/gitignore.plugin.zsh
+++ b/plugins/gitignore/gitignore.plugin.zsh
@@ -1,7 +1,7 @@
-function gi() { curl -sL https://www.gitignore.io/api/${(j:,:)@} }
+function gi() { curl -fL https://www.gitignore.io/api/${(j:,:)@} }
_gitignoreio_get_command_list() {
- curl -sL https://www.gitignore.io/api/list | tr "," "\n"
+ curl -fL https://www.gitignore.io/api/list | tr "," "\n"
}
_gitignoreio () {
From acacfec924fe68a184a9111eba0e99aa89b9015b Mon Sep 17 00:00:00 2001
From: George Kaklamanos
Date: Wed, 25 Apr 2018 15:14:33 +0300
Subject: [PATCH 079/644] Remove unneeded option in glol and glola (#6059)
---
plugins/git/git.plugin.zsh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index fa0c06500..fd55be138 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -180,8 +180,8 @@ alias glgg='git log --graph'
alias glgga='git log --graph --decorate --all'
alias glgm='git log --graph --max-count=10'
alias glo='git log --oneline --decorate'
-alias glol="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
-alias glola="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --all"
+alias glol="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"
+alias glola="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all"
alias glog='git log --oneline --decorate --graph'
alias gloga='git log --oneline --decorate --graph --all'
alias glp="_git_log_prettily"
From bf87e99a14320885c506c6b07c9ead8825ee53b9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cristian=20=C3=81lvarez=20Belaustegui?=
Date: Wed, 25 Apr 2018 22:06:26 +0200
Subject: [PATCH 080/644] Fix mix-fast plugin (#6708)
The mix command for listing all available actions has been changed from
`mix --help` to `mix help`.
---
plugins/mix-fast/mix-fast.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/mix-fast/mix-fast.plugin.zsh b/plugins/mix-fast/mix-fast.plugin.zsh
index 3719c3525..e27e30d64 100644
--- a/plugins/mix-fast/mix-fast.plugin.zsh
+++ b/plugins/mix-fast/mix-fast.plugin.zsh
@@ -12,7 +12,7 @@ _mix_does_task_list_need_generating () {
}
_mix_generate () {
- mix --help | grep -v 'iex -S' | tail -n +2 | cut -d " " -f 2 > .mix_tasks
+ mix help | grep -v 'iex -S' | tail -n +2 | cut -d " " -f 2 > .mix_tasks
}
_mix () {
From 9cd3701ac0297f4bdf9673ea0dffa8ffdaea63e8 Mon Sep 17 00:00:00 2001
From: Konstantin Zolotarev
Date: Wed, 25 Apr 2018 23:12:19 +0300
Subject: [PATCH 081/644] Added ecto tasks (#6035)
---
plugins/mix/_mix | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/plugins/mix/_mix b/plugins/mix/_mix
index 025572a4d..ecbe7e2d3 100644
--- a/plugins/mix/_mix
+++ b/plugins/mix/_mix
@@ -21,6 +21,15 @@ _1st_arguments=(
'deps.unlock:Unlock the given dependencies'
'deps.update:Update the given dependencies'
'do:Executes the tasks separated by comma'
+ 'ecto.create:Create Ecto database'
+ 'ecto.drop:Drop the storage for the given repository'
+ 'ecto.dump:Dumps the current environment’s database structure'
+ 'ecto.gen.migration:Generates a migration'
+ 'ecto.gen.repo:Generates a new repository'
+ 'ecto.load:Loads the current environment’s database structure'
+ 'ecto.migrate:Runs Ecto migration'
+ 'ecto.migrations:Displays the up / down migration status'
+ 'ecto.rollback:Reverts applied migrations'
'escript.build:Builds an escript for the project'
'help:Print help information for tasks'
'hex:Print hex help information'
From 8eba19208dfd62a0565e837a715e62d9876480a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Fri, 27 Apr 2018 17:56:21 +0200
Subject: [PATCH 082/644] Revert to checking if `enable-ssh-support` is set
Fixes #6772
---
plugins/gpg-agent/gpg-agent.plugin.zsh | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/plugins/gpg-agent/gpg-agent.plugin.zsh b/plugins/gpg-agent/gpg-agent.plugin.zsh
index 6a94f598f..3e24c2527 100644
--- a/plugins/gpg-agent/gpg-agent.plugin.zsh
+++ b/plugins/gpg-agent/gpg-agent.plugin.zsh
@@ -1,16 +1,16 @@
# Enable gpg-agent if it is not running-
# --use-standard-socket will work from version 2 upwards
-AGENT_SOCK=`gpgconf --list-dirs | grep agent-socket | cut -d : -f 2`
+AGENT_SOCK=$(gpgconf --list-dirs | grep agent-socket | cut -d : -f 2)
-if [ ! -S ${AGENT_SOCK} ]; then
- gpg-agent --daemon --use-standard-socket >/dev/null 2>&1
+if [[ ! -S $AGENT_SOCK ]]; then
+ gpg-agent --daemon --use-standard-socket &>/dev/null
fi
-export GPG_TTY=$(tty)
+export GPG_TTY=$TTY
# Set SSH to use gpg-agent if it's enabled
-if [ -S "${AGENT_SOCK}.ssh" ]; then
- export SSH_AUTH_SOCK="${AGENT_SOCK}.ssh"
+GNUPGCONFIG="${GNUPGHOME:-"$HOME/.gnupg"}/gpg-agent.conf"
+if [[ -r $GNUPGCONFIG ]] && command grep -q enable-ssh-support "$GNUPGCONFIG"; then
+ export SSH_AUTH_SOCK="$AGENT_SOCK.ssh"
unset SSH_AGENT_PID
fi
-
From 32952ec7e8fc254e892eb1c32191d0c1901ae811 Mon Sep 17 00:00:00 2001
From: Ady Romantika
Date: Sat, 28 Apr 2018 22:55:46 +0800
Subject: [PATCH 083/644] Add aliases for kubectl ingress (#6762)
---
plugins/kubectl/kubectl.plugin.zsh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh
index 97e429aac..ec1321d8b 100644
--- a/plugins/kubectl/kubectl.plugin.zsh
+++ b/plugins/kubectl/kubectl.plugin.zsh
@@ -33,6 +33,12 @@ alias kes='k edit svc'
alias kds='k describe svc'
alias kdels='k delete svc'
+# Ingress management
+alias kgi='k get ingress'
+alias kei='k edit ingress'
+alias kdi='k describe ingress'
+alias kdeli='k delete ingress'
+
# Secret management
alias kgsec='k get secret'
alias kdsec='k describe secret'
From 493c30954bae3da4ccd80333b807a8d37c131da8 Mon Sep 17 00:00:00 2001
From: Oliver Baumann
Date: Mon, 30 Apr 2018 16:25:02 +0200
Subject: [PATCH 084/644] Parse branch-name for fresh repo (#6302)
Inside a fresh git repo, i.e. immediately after a `git init`, usually no
commit template exists yet. In this case, git renders a different
status message than "Initial commit on". We should consider this message
when attempting to parse out the branch name.
Fixes #6301
---
plugins/git-prompt/gitstatus.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/git-prompt/gitstatus.py b/plugins/git-prompt/gitstatus.py
index a8eb8284b..14d875973 100644
--- a/plugins/git-prompt/gitstatus.py
+++ b/plugins/git-prompt/gitstatus.py
@@ -41,7 +41,7 @@ ahead, behind = 0, 0
status = [(line[0], line[1], line[2:]) for line in stdout.decode('utf-8').splitlines()]
for st in status:
if st[0] == '#' and st[1] == '#':
- if re.search('Initial commit on', st[2]):
+ if re.search('Initial commit on', st[2]) or re.search('No commits yet on', st[2]):
branch = st[2].split(' ')[-1]
elif re.search('no branch', st[2]): # detached status
branch = get_tagname_or_hash()
From cafa657469bda1baf145c090e168057ae632464d Mon Sep 17 00:00:00 2001
From: Joseph Richey
Date: Tue, 1 May 2018 06:21:12 -0700
Subject: [PATCH 085/644] Correctly handle verbose/version flags for rustc
(#6786)
See the help output for rustc (v1.25)
---
plugins/rust/_rust | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/rust/_rust b/plugins/rust/_rust
index ac6aee160..6e3f344cd 100644
--- a/plugins/rust/_rust
+++ b/plugins/rust/_rust
@@ -88,14 +88,14 @@ _rustc_opts_vals=(
--pretty='[Pretty-print the input instead of compiling]::TYPE:_values "TYPES" "$_rustc_pretty_types[@]"'
--unpretty='[Present the input source, unstable (and less-pretty)]::TYPE:_values "TYPES" "$_rustc_unpretty_types[@]"'
--color='[Configure coloring of output]:CONF:_values "COLORS" "$_rustc_color_types[@]"'
- {-v,--version}'[Print version info and exit]::VERBOSE:(verbose)'
)
_rustc_opts_switches=(
-g'[Equivalent to --debuginfo=2]'
-O'[Equivalent to --opt-level=2]'
--test'[Build a test harness]'
- --verbose'[Use verbose output]'
+ {-v,--verbose}'[Use verbose output]'
+ {-V,--version}'[Print version info and exit]'
{-h,--help}'[Display this message]'
--no-analysis'[Parse and expand the output, but run no analysis or produce output]'
--no-trans'[Run all passes except translation; no output]'
From c4981bae0a91ce6d4b0717558342584cc6491199 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sat, 5 May 2018 21:27:48 +0200
Subject: [PATCH 086/644] installer: check if zsh in path instead of
/etc/shells
Fixes #4955
Closes #5931
Closes #6398
Co-authored-by: Void
Co-authored-by: Kaleb Elwert
---
tools/install.sh | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/tools/install.sh b/tools/install.sh
index 840a0d7d8..1a0a8e6db 100755
--- a/tools/install.sh
+++ b/tools/install.sh
@@ -24,12 +24,10 @@ main() {
# which may fail on systems lacking tput or terminfo
set -e
- CHECK_ZSH_INSTALLED=$(grep /zsh$ /etc/shells | wc -l)
- if [ ! $CHECK_ZSH_INSTALLED -ge 1 ]; then
+ if command -v zsh >/dev/null 2>&1; then
printf "${YELLOW}Zsh is not installed!${NORMAL} Please install zsh first!\n"
exit
fi
- unset CHECK_ZSH_INSTALLED
if [ ! -n "$ZSH" ]; then
ZSH=~/.oh-my-zsh
From 8f0ff4bb63a8fd26741128a851c224af323eb772 Mon Sep 17 00:00:00 2001
From: ningwei1993
Date: Mon, 7 May 2018 06:39:28 +0800
Subject: [PATCH 087/644] fix bug for check zsh (#6798)
---
tools/install.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/install.sh b/tools/install.sh
index 1a0a8e6db..ad47df785 100755
--- a/tools/install.sh
+++ b/tools/install.sh
@@ -24,7 +24,7 @@ main() {
# which may fail on systems lacking tput or terminfo
set -e
- if command -v zsh >/dev/null 2>&1; then
+ if ! command -v zsh >/dev/null 2>&1; then
printf "${YELLOW}Zsh is not installed!${NORMAL} Please install zsh first!\n"
exit
fi
From 00f311a3c1c0beff04db8a005fcfbfc251d62276 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Mon, 7 May 2018 18:00:27 +0200
Subject: [PATCH 088/644] Add READMEs to plugins copydir and copyfile (#6802)
* Add README to copydir plugin
* Add README to copyfile plugin
---
plugins/copydir/README.md | 10 ++++++++++
plugins/copyfile/README.md | 10 ++++++++++
2 files changed, 20 insertions(+)
create mode 100644 plugins/copydir/README.md
create mode 100644 plugins/copyfile/README.md
diff --git a/plugins/copydir/README.md b/plugins/copydir/README.md
new file mode 100644
index 000000000..594bf1065
--- /dev/null
+++ b/plugins/copydir/README.md
@@ -0,0 +1,10 @@
+# copydir plugin
+
+Copies the path of your current folder to the system clipboard.
+
+To use, add `copydir` to your plugins array:
+```
+plugins=(... copydir)
+```
+
+Then use the command `copydir` to copy the $PWD.
diff --git a/plugins/copyfile/README.md b/plugins/copyfile/README.md
new file mode 100644
index 000000000..53138ad06
--- /dev/null
+++ b/plugins/copyfile/README.md
@@ -0,0 +1,10 @@
+# copyfile plugin
+
+Puts the contents of a file in your system clipboard so you can paste it anywhere.
+
+To use, add `copyfile` to your plugins array:
+```
+plugins=(... copyfile)
+```
+
+Then you can run the command `copyfile ` to copy the file named `filename`.
From 6bff0793328d73aecd3387acb21e3e89771af14f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Mon, 7 May 2018 18:15:01 +0200
Subject: [PATCH 089/644] Allow completion of dot directories (#6803)
Fixes #3775, fixes #6543
---
lib/completion.zsh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/lib/completion.zsh b/lib/completion.zsh
index a1e934315..c7db2eb7b 100644
--- a/lib/completion.zsh
+++ b/lib/completion.zsh
@@ -25,6 +25,9 @@ else
fi
unset CASE_SENSITIVE HYPHEN_INSENSITIVE
+# Complete . and .. special directories
+zstyle ':completion:*' special-dirs true
+
zstyle ':completion:*' list-colors ''
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#) ([0-9a-z-]#)*=01;34=0=01'
From 362b061f5ca657034445f3805fa962efc99f0a3e Mon Sep 17 00:00:00 2001
From: Joshua Kovach
Date: Mon, 7 May 2018 12:19:45 -0400
Subject: [PATCH 090/644] Fix branch not updating on checkout in steeef (#6784)
* Fix branch not updating on checkout in steeef
* Check for `hub` in steeef when switching branches
---
themes/steeef.zsh-theme | 3 +++
1 file changed, 3 insertions(+)
diff --git a/themes/steeef.zsh-theme b/themes/steeef.zsh-theme
index 88ef1ca1b..622c90465 100644
--- a/themes/steeef.zsh-theme
+++ b/themes/steeef.zsh-theme
@@ -66,6 +66,9 @@ function steeef_preexec {
*git*)
PR_GIT_UPDATE=1
;;
+ *hub*)
+ PR_GIT_UPDATE=1
+ ;;
*svn*)
PR_GIT_UPDATE=1
;;
From 0011d34f71fca91a2afeca7a0c05942c7e63ee5f Mon Sep 17 00:00:00 2001
From: MikeDawg
Date: Sat, 3 Feb 2018 16:40:05 -0700
Subject: [PATCH 091/644] Removed duplicate fedora from plugins, dnf provides
exact same features
---
plugins/fedora/README.md | 3 ---
plugins/fedora/fedora.plugin.zsh | 17 +----------------
2 files changed, 1 insertion(+), 19 deletions(-)
delete mode 100644 plugins/fedora/README.md
mode change 100644 => 120000 plugins/fedora/fedora.plugin.zsh
diff --git a/plugins/fedora/README.md b/plugins/fedora/README.md
deleted file mode 100644
index f384b0ffd..000000000
--- a/plugins/fedora/README.md
+++ /dev/null
@@ -1,3 +0,0 @@
-This is a plugin based on yum plugin, but using dnf as main frontend
-(from Fedora 22 onwards, yum is deprecated in favor of dnf).
-
diff --git a/plugins/fedora/fedora.plugin.zsh b/plugins/fedora/fedora.plugin.zsh
deleted file mode 100644
index eddc3627b..000000000
--- a/plugins/fedora/fedora.plugin.zsh
+++ /dev/null
@@ -1,16 +0,0 @@
-## Aliases
-
-alias dnfs="dnf search" # search package
-alias dnfp="dnf info" # show package info
-alias dnfl="dnf list" # list packages
-alias dnfgl="dnf grouplist" # list package groups
-alias dnfli="dnf list installed" # print all installed packages
-alias dnfmc="dnf makecache" # rebuilds the dnf package list
-
-alias dnfu="sudo dnf upgrade" # upgrade packages
-alias dnfi="sudo dnf install" # install package
-alias dnfgi="sudo dnf groupinstall" # install package group
-alias dnfr="sudo dnf remove" # remove package
-alias dnfgr="sudo dnf groupremove" # remove pagage group
-alias dnfrl="sudo dnf remove --remove-leaves" # remove package and leaves
-alias dnfc="sudo dnf clean all" # clean cache
diff --git a/plugins/fedora/fedora.plugin.zsh b/plugins/fedora/fedora.plugin.zsh
new file mode 120000
index 000000000..16a214313
--- /dev/null
+++ b/plugins/fedora/fedora.plugin.zsh
@@ -0,0 +1 @@
+../dnf/dnf.plugin.zsh
\ No newline at end of file
From b7e544e6f171e3bf754d80e3c5b61b4f8f065622 Mon Sep 17 00:00:00 2001
From: David Harrigan
Date: Tue, 8 May 2018 12:13:11 +0100
Subject: [PATCH 092/644] gradle plugin should support kotlin gradle build
files (#6529)
This change allows the gradle plugin to recongise build.gradle.kts files and
thus generate the autocomplete entries.
-=david=-
closes #6528
---
plugins/gradle/gradle.plugin.zsh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/plugins/gradle/gradle.plugin.zsh b/plugins/gradle/gradle.plugin.zsh
index 0adc04a13..c7047552d 100644
--- a/plugins/gradle/gradle.plugin.zsh
+++ b/plugins/gradle/gradle.plugin.zsh
@@ -88,7 +88,7 @@ function _gradle_arguments() {
# and if so, regenerate the .gradle_tasks cache file
############################################################################
_gradle_does_task_list_need_generating () {
- [[ ! -f .gradletasknamecache ]] || [[ build.gradle -nt .gradletasknamecache ]]
+ [[ ! -f .gradletasknamecache ]] || [[ build.gradle -nt .gradletasknamecache || build.gradle.kts -nt .gradletasknamecache ]]
}
##############
@@ -144,7 +144,7 @@ _gradle_parse_and_extract_tasks () {
# Discover the gradle tasks by running "gradle tasks --all"
############################################################################
_gradle_tasks () {
- if [[ -f build.gradle ]]; then
+ if [[ -f build.gradle || -f build.gradle.kts ]]; then
_gradle_arguments
if _gradle_does_task_list_need_generating; then
_gradle_parse_and_extract_tasks "$(gradle tasks --all)" > .gradletasknamecache
@@ -154,7 +154,7 @@ _gradle_tasks () {
}
_gradlew_tasks () {
- if [[ -f build.gradle ]]; then
+ if [[ -f build.gradle || -f build.gradle.kts ]]; then
_gradle_arguments
if _gradle_does_task_list_need_generating; then
_gradle_parse_and_extract_tasks "$(./gradlew tasks --all)" > .gradletasknamecache
From 18f7ca577a41807f0c99fc9d00e1572d96d7c6cb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Francisco=20Zuvir=C3=ADa?=
Date: Tue, 8 May 2018 12:55:59 -0300
Subject: [PATCH 093/644] Adhere to coding style outlined in wiki
---
plugins/dirhistory/dirhistory.plugin.zsh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/dirhistory/dirhistory.plugin.zsh b/plugins/dirhistory/dirhistory.plugin.zsh
index 05839e35a..6867086ca 100644
--- a/plugins/dirhistory/dirhistory.plugin.zsh
+++ b/plugins/dirhistory/dirhistory.plugin.zsh
@@ -144,12 +144,12 @@ bindkey "\eO3C" dirhistory_zle_dirhistory_future
# Move up in hierarchy
function dirhistory_up() {
- cd ..
+ cd .. || return 1
}
# Move down in hierarchy
function dirhistory_down() {
- cd "`find . -mindepth 1 -maxdepth 1 -type d | sort -n | head -n 1`"
+ cd "$(find . -mindepth 1 -maxdepth 1 -type d | sort -n | head -n 1)" || return 1
}
From 825baeb31074ee43e77e7cd26ff17b619ed13bb5 Mon Sep 17 00:00:00 2001
From: Quentin Nerden
Date: Wed, 9 May 2018 22:34:41 +0200
Subject: [PATCH 094/644] Add autocomplete plugin for minikube (#6436)
---
plugins/minikube/minikube.plugin.zsh | 6 ++++++
1 file changed, 6 insertions(+)
create mode 100644 plugins/minikube/minikube.plugin.zsh
diff --git a/plugins/minikube/minikube.plugin.zsh b/plugins/minikube/minikube.plugin.zsh
new file mode 100644
index 000000000..d8ebe79af
--- /dev/null
+++ b/plugins/minikube/minikube.plugin.zsh
@@ -0,0 +1,6 @@
+# Autocompletion for Minikube.
+#
+
+if [ $commands[minikube] ]; then
+ source <(minikube completion zsh)
+fi
From e8c328cb394e39f8d1c7d18b85b0be12bd71c556 Mon Sep 17 00:00:00 2001
From: Hosh
Date: Thu, 10 May 2018 19:53:16 +0100
Subject: [PATCH 095/644] Update AWS completion (#6745)
---
plugins/aws/aws.plugin.zsh | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/plugins/aws/aws.plugin.zsh b/plugins/aws/aws.plugin.zsh
index 6a0e04add..a326e2e01 100644
--- a/plugins/aws/aws.plugin.zsh
+++ b/plugins/aws/aws.plugin.zsh
@@ -42,11 +42,11 @@ function aws_profiles {
compctl -K aws_profiles asp
-if _homebrew-installed && _awscli-homebrew-installed ; then
+if which aws_zsh_completer.sh &>/dev/null; then
+ _aws_zsh_completer_path=$(which aws_zsh_completer.sh 2>/dev/null)
+elif _homebrew-installed && _awscli-homebrew-installed; then
_aws_zsh_completer_path=$_brew_prefix/libexec/bin/aws_zsh_completer.sh
-else
- _aws_zsh_completer_path=$(which aws_zsh_completer.sh)
fi
-[ -x $_aws_zsh_completer_path ] && source $_aws_zsh_completer_path
+[ -n "$_aws_zsh_completer_path" ] && [ -x $_aws_zsh_completer_path ] && source $_aws_zsh_completer_path
unset _aws_zsh_completer_path
From 18effd77db1156c11848bd3bfadd8fa63c747516 Mon Sep 17 00:00:00 2001
From: Xiao Fan
Date: Fri, 11 May 2018 07:28:02 -0700
Subject: [PATCH 096/644] last-working-dir: disable chpwd_last_working_dir in
subshells (#6817)
---
plugins/last-working-dir/last-working-dir.plugin.zsh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/plugins/last-working-dir/last-working-dir.plugin.zsh b/plugins/last-working-dir/last-working-dir.plugin.zsh
index e882b288f..53bb19e46 100644
--- a/plugins/last-working-dir/last-working-dir.plugin.zsh
+++ b/plugins/last-working-dir/last-working-dir.plugin.zsh
@@ -4,8 +4,10 @@ typeset -g ZSH_LAST_WORKING_DIRECTORY
# Updates the last directory once directory is changed
chpwd_functions+=(chpwd_last_working_dir)
chpwd_last_working_dir() {
- local cache_file="$ZSH_CACHE_DIR/last-working-dir"
- pwd >| "$cache_file"
+ if [ "$ZSH_SUBSHELL" = 0 ]; then
+ local cache_file="$ZSH_CACHE_DIR/last-working-dir"
+ pwd >| "$cache_file"
+ fi
}
# Changes directory to the last working directory
From 8ebf2a678507b28cf107858b316f5e874ef73d0f Mon Sep 17 00:00:00 2001
From: Giuseppe Landolfi
Date: Sun, 13 May 2018 01:53:45 +0200
Subject: [PATCH 097/644] Fine-tune dirhistory plugin mappings for Mac (#6580)
See https://github.com/robbyrussell/oh-my-zsh/pull/6533#issuecomment-360878060
---
plugins/dirhistory/dirhistory.plugin.zsh | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/plugins/dirhistory/dirhistory.plugin.zsh b/plugins/dirhistory/dirhistory.plugin.zsh
index 8138872bc..283dace29 100644
--- a/plugins/dirhistory/dirhistory.plugin.zsh
+++ b/plugins/dirhistory/dirhistory.plugin.zsh
@@ -120,7 +120,9 @@ zle -N dirhistory_zle_dirhistory_back
bindkey "\e[3D" dirhistory_zle_dirhistory_back
bindkey "\e[1;3D" dirhistory_zle_dirhistory_back
# Mac teminal (alt+left/right)
-bindkey "^[b" dirhistory_zle_dirhistory_back
+if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]]; then
+ bindkey "^[b" dirhistory_zle_dirhistory_back
+fi
# Putty:
bindkey "\e\e[D" dirhistory_zle_dirhistory_back
# GNU screen:
@@ -129,7 +131,9 @@ bindkey "\eO3D" dirhistory_zle_dirhistory_back
zle -N dirhistory_zle_dirhistory_future
bindkey "\e[3C" dirhistory_zle_dirhistory_future
bindkey "\e[1;3C" dirhistory_zle_dirhistory_future
-bindkey "^[f" dirhistory_zle_dirhistory_future
+if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]]; then
+ bindkey "^[f" dirhistory_zle_dirhistory_future
+fi
bindkey "\e\e[C" dirhistory_zle_dirhistory_future
bindkey "\eO3C" dirhistory_zle_dirhistory_future
From 0c63909ad3e8ed73d2b732396f2fd8ffffcf1b89 Mon Sep 17 00:00:00 2001
From: Ian Chesal
Date: Sun, 13 May 2018 12:56:46 -0700
Subject: [PATCH 098/644] Fix default location of the virtualenvwrapper script
(#6348)
The `virtualenvwrapper` script has been relocated to
`/usr/local/bin/virtualenvwrapper.sh`. Update the
plugin to look in the new location first. See:
http://virtualenvwrapper.readthedocs.io/en/latest/#introduction
to confirm the change in location for this script.
This addresses issue #3047 where the solution was to source this file
from your zshrc.
---
plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh b/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
index 6cd30732e..484f18c91 100644
--- a/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
+++ b/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
@@ -6,6 +6,13 @@ if (( $+commands[$virtualenvwrapper] )); then
unsetopt equals
source ${${virtualenvwrapper}:c}
}
+elif [[ -f "/usr/local/bin/virtualenvwrapper.sh" ]]; then
+ function {
+ setopt local_options
+ unsetopt equals
+ virtualenvwrapper="/usr/local/bin/virtualenvwrapper.sh"
+ source "/usr/local/bin/virtualenvwrapper.sh"
+ }
elif [[ -f "/etc/bash_completion.d/virtualenvwrapper" ]]; then
function {
setopt local_options
From 919f0a42a09371c948d89c2d63593c23658811cc Mon Sep 17 00:00:00 2001
From: Quentin Nerden
Date: Sun, 13 May 2018 21:58:35 +0200
Subject: [PATCH 099/644] Updated autocomplete and readme (#6720)
Signed-off-by: Troy Fontaine
---
plugins/docker/_docker | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/plugins/docker/_docker b/plugins/docker/_docker
index 0c20cf28e..4d1b79a82 100644
--- a/plugins/docker/_docker
+++ b/plugins/docker/_docker
@@ -450,9 +450,9 @@ __docker_complete_events_filter() {
;;
(event)
local -a event_opts
- event_opts=('attach' 'commit' 'connect' 'copy' 'create' 'delete' 'destroy' 'detach' 'die' 'disconnect' 'exec_create' 'exec_detach'
- 'exec_start' 'export' 'health_status' 'import' 'kill' 'load' 'mount' 'oom' 'pause' 'pull' 'push' 'reload' 'rename' 'resize' 'restart' 'save' 'start'
- 'stop' 'tag' 'top' 'unmount' 'unpause' 'untag' 'update')
+ event_opts=('attach' 'commit' 'connect' 'copy' 'create' 'delete' 'destroy' 'detach' 'die' 'disable' 'disconnect' 'enable' 'exec_create' 'exec_detach'
+ 'exec_start' 'export' 'health_status' 'import' 'install' 'kill' 'load' 'mount' 'oom' 'pause' 'pull' 'push' 'reload' 'remove' 'rename' 'resize'
+ 'restart' 'save' 'start' 'stop' 'tag' 'top' 'unmount' 'unpause' 'untag' 'update')
_describe -t event-filter-opts "event filter options" event_opts && ret=0
;;
(image)
@@ -3024,4 +3024,4 @@ _docker "$@"
# indent-tabs-mode: nil
# sh-basic-offset: 4
# End:
-# vim: ft=zsh sw=4 ts=4 et
\ No newline at end of file
+# vim: ft=zsh sw=4 ts=4 et
From 0608bb768fea1222410c5bd9b576bb1098409ffa Mon Sep 17 00:00:00 2001
From: Harald Nordgren
Date: Mon, 14 May 2018 15:09:57 +0200
Subject: [PATCH 100/644] Use 'apt' instead of 'apt-get' for Ubuntu >=16.04
(#5787)
---
plugins/ubuntu/ubuntu.plugin.zsh | 65 +++++++++++++++++---------------
1 file changed, 34 insertions(+), 31 deletions(-)
diff --git a/plugins/ubuntu/ubuntu.plugin.zsh b/plugins/ubuntu/ubuntu.plugin.zsh
index 082481466..f7363feb8 100644
--- a/plugins/ubuntu/ubuntu.plugin.zsh
+++ b/plugins/ubuntu/ubuntu.plugin.zsh
@@ -5,18 +5,21 @@
# https://github.com/trinaldi
# Nicolas Jonas nextgenthemes.com
# https://github.com/loctauxphilippe
+# https://github.com/HaraldNordgren
#
# Debian, Ubuntu and friends related zsh aliases and functions for zsh
+(( $+commands[apt] )) && APT=apt || APT=apt-get
+
alias acs='apt-cache search'
compdef _acs acs='apt-cache search'
alias afs='apt-file search --regexp'
compdef _afs afs='apt-file search --regexp'
-# These are apt-get only
-alias ags='apt-get source' # asrc
-compdef _ags ags='apt-get source'
+# These are apt/apt-get only
+alias ags="$APT source" # asrc
+compdef _ags ags="$APT source"
alias acp='apt-cache policy' # app
compdef _acp acp='apt-cache policy'
@@ -37,33 +40,33 @@ compdef _afu afu='sudo apt-file update'
alias ppap='sudo ppa-purge'
compdef _ppap ppap='sudo ppa-purge'
-alias apg='sudo apt-get' # age - but without sudo
-alias aga='sudo apt-get autoclean' # aac
-alias agb='sudo apt-get build-dep' # abd
-alias agc='sudo apt-get clean' # adc
-alias agd='sudo apt-get dselect-upgrade' # ads
-alias agi='sudo apt-get install' # ai
-alias agp='sudo apt-get purge' # ap
-alias agr='sudo apt-get remove' # ar
-alias agu='sudo apt-get update' # ad
-alias agud='sudo apt-get update && sudo apt-get full-upgrade' #adu
-alias agug='sudo apt-get upgrade' # ag
-alias aguu='sudo apt-get update && sudo apt-get upgrade' #adg
-alias agar='sudo apt-get autoremove'
+alias ag="sudo $APT" # age - but without sudo
+alias aga="sudo $APT autoclean" # aac
+alias agb="sudo $APT build-dep" # abd
+alias agc="sudo $APT clean" # adc
+alias agd="sudo $APT dselect-upgrade" # ads
+alias agi="sudo $APT install" # ai
+alias agp="sudo $APT purge" # ap
+alias agr="sudo $APT remove" # ar
+alias agu="sudo $APT update" # ad
+alias agud="sudo $APT update && sudo $APT dist-upgrade" #adu
+alias agug="sudo $APT upgrade" # ag
+alias aguu="sudo $APT update && sudo $APT upgrade" #adg
+alias agar="sudo $APT autoremove"
-compdef _ag apg='sudo apt-get'
-compdef _aga aga='sudo apt-get autoclean'
-compdef _agb agb='sudo apt-get build-dep'
-compdef _agc agc='sudo apt-get clean'
-compdef _agd agd='sudo apt-get dselect-upgrade'
-compdef _agi agi='sudo apt-get install'
-compdef _agp agp='sudo apt-get purge'
-compdef _agr agr='sudo apt-get remove'
-compdef _agu agu='sudo apt-get update'
-compdef _agud agud='sudo apt-get update && sudo apt-get full-upgrade'
-compdef _agug agug='sudo apt-get upgrade'
-compdef _aguu aguu='sudo apt-get update && sudo apt-get upgrade'
-compdef _agar agar='sudo apt-get autoremove'
+compdef _ag ag="sudo $APT"
+compdef _aga aga="sudo $APT autoclean"
+compdef _agb agb="sudo $APT build-dep"
+compdef _agc agc="sudo $APT clean"
+compdef _agd agd="sudo $APT dselect-upgrade"
+compdef _agi agi="sudo $APT install"
+compdef _agp agp="sudo $APT purge"
+compdef _agr agr="sudo $APT remove"
+compdef _agu agu="sudo $APT update"
+compdef _agud agud="sudo $APT update && sudo $APT dist-upgrade"
+compdef _agug agug="sudo $APT upgrade"
+compdef _aguu aguu="sudo $APT update && sudo $APT upgrade"
+compdef _agar agar="sudo $APT autoremove"
# Remove ALL kernel images and headers EXCEPT the one in use
alias kclean='sudo aptitude remove -P ?and(~i~nlinux-(ima|hea) \
@@ -91,8 +94,8 @@ aar() {
PACKAGE=${1##*/}
fi
- sudo apt-add-repository $1 && sudo apt-get update
- sudo apt-get install $PACKAGE
+ sudo apt-add-repository $1 && sudo $APT update
+ sudo $APT install $PACKAGE
}
# Prints apt history
From 6876d9c5438b0e0e950fc85f736458ba55f8d65c Mon Sep 17 00:00:00 2001
From: Varun Patro
Date: Mon, 14 May 2018 19:30:04 +0530
Subject: [PATCH 101/644] Update fasd.plugin.zsh (#6822)
If `EDITOR` variable contains arguments to an editor such as mine:
`export EDITOR=emacsclient -t -c --alternate-editor=''`
Then, the editor's arguments are passed on to `fasd`. To fix this, pass the EDITOR program in quotes.
---
plugins/fasd/fasd.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/fasd/fasd.plugin.zsh b/plugins/fasd/fasd.plugin.zsh
index 2c302f74d..45d10858f 100644
--- a/plugins/fasd/fasd.plugin.zsh
+++ b/plugins/fasd/fasd.plugin.zsh
@@ -6,6 +6,6 @@ if [ $commands[fasd] ]; then # check if fasd is installed
source "$fasd_cache"
unset fasd_cache
- alias v="f -e $EDITOR"
+ alias v="f -e \"$EDITOR\""
alias o='a -e open_command'
fi
From 2b7a41b0d2e6a67ad14f94f7cc00293491f2c3f8 Mon Sep 17 00:00:00 2001
From: Gert de Pagter
Date: Tue, 15 May 2018 11:26:59 +0200
Subject: [PATCH 102/644] Update the update prompt (#6825)
`[Oh My Zsh] Would you like to check for updates? [Y/n]: ` does not make sense,
since answering yes will download/apply the new updates instead of checking for them.
---
tools/check_for_upgrade.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
index a57f6da0f..b42b87750 100644
--- a/tools/check_for_upgrade.sh
+++ b/tools/check_for_upgrade.sh
@@ -42,7 +42,7 @@ if mkdir "$ZSH/log/update.lock" 2>/dev/null; then
if [ "$DISABLE_UPDATE_PROMPT" = "true" ]; then
_upgrade_zsh
else
- echo "[Oh My Zsh] Would you like to check for updates? [Y/n]: \c"
+ echo "[Oh My Zsh] Would you like to update? [Y/n]: \c"
read line
if [[ "$line" == Y* ]] || [[ "$line" == y* ]] || [ -z "$line" ]; then
_upgrade_zsh
From 0aa645f8033ef86f8c8b0729a94fc54fbec49a25 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Tue, 15 May 2018 12:07:23 +0200
Subject: [PATCH 103/644] pyenv: search the pyenv command if not found (#6811)
---
plugins/pyenv/pyenv.plugin.zsh | 26 +++++++++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/plugins/pyenv/pyenv.plugin.zsh b/plugins/pyenv/pyenv.plugin.zsh
index 76880e415..dbc7da472 100644
--- a/plugins/pyenv/pyenv.plugin.zsh
+++ b/plugins/pyenv/pyenv.plugin.zsh
@@ -1,7 +1,29 @@
# This plugin loads pyenv into the current shell and provides prompt info via
# the 'pyenv_prompt_info' function. Also loads pyenv-virtualenv if available.
-if (( $+commands[pyenv] )); then
+FOUND_PYENV=$+commands[pyenv]
+
+if [[ $FOUND_PYENV -ne 1 ]]; then
+ pyenvdirs=("$HOME/.pyenv" "/usr/local/pyenv" "/opt/pyenv")
+ for dir in $pyenvdirs; do
+ if [[ -d $dir/bin ]]; then
+ export PATH="$PATH:$dir/bin"
+ FOUND_PYENV=1
+ break
+ fi
+ done
+fi
+
+if [[ $FOUND_PYENV -ne 1 ]]; then
+ if (( $+commands[brew] )) && dir=$(brew --prefix pyenv 2>/dev/null); then
+ if [[ -d $dir/bin ]]; then
+ export PATH="$PATH:$dir/bin"
+ FOUND_PYENV=1
+ fi
+ fi
+fi
+
+if [[ $FOUND_PYENV -eq 1 ]]; then
eval "$(pyenv init - zsh)"
if (( $+commands[pyenv-virtualenv-init] )); then
eval "$(pyenv virtualenv-init - zsh)"
@@ -15,3 +37,5 @@ else
echo "system: $(python -V 2>&1 | cut -f 2 -d ' ')"
}
fi
+
+unset FOUND_PYENV dir
From afba4f6b9feb3a9dde4331cd2ed892c4da2df6e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Tue, 15 May 2018 21:22:47 +0200
Subject: [PATCH 104/644] Load insecure completion files if compfix is disabled
We have to assume that if people disabled the compfix system they really want
their completion to work, ignoring any permission issues.
Fixes #5651
Fixes #5957
Fixes #6461
---
oh-my-zsh.sh | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
index 7f78e4140..c0e2ba8f6 100644
--- a/oh-my-zsh.sh
+++ b/oh-my-zsh.sh
@@ -11,8 +11,6 @@ fpath=($ZSH/functions $ZSH/completions $fpath)
# Load all stock functions (from $fpath files) called below.
autoload -U compaudit compinit
-: ${ZSH_DISABLE_COMPFIX:=true}
-
# Set ZSH_CUSTOM to the path where your custom config files
# and plugins exists, or else we will use the default custom/
if [[ -z "$ZSH_CUSTOM" ]]; then
@@ -74,7 +72,7 @@ if [[ $ZSH_DISABLE_COMPFIX != true ]]; then
compinit -d "${ZSH_COMPDUMP}"
fi
else
- compinit -i -d "${ZSH_COMPDUMP}"
+ compinit -u -d "${ZSH_COMPDUMP}"
fi
# Load all of the plugins that were defined in ~/.zshrc
From c3493dc5ceb87a5c74d288f30fbe4bdbf4cb97c5 Mon Sep 17 00:00:00 2001
From: rco-ableton
Date: Wed, 16 May 2018 17:40:42 +0200
Subject: [PATCH 105/644] Add Heroku pipelines support (#5660)
---
plugins/heroku/_heroku | 47 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
diff --git a/plugins/heroku/_heroku b/plugins/heroku/_heroku
index 878d3ce1b..f26595e00 100644
--- a/plugins/heroku/_heroku
+++ b/plugins/heroku/_heroku
@@ -45,6 +45,18 @@ _1st_arguments=(
"logs\:drains":"manage syslog drains"
"maintenance\:on":"put the app into maintenance mode"
"maintenance\:off":"take the app out of maintenance mode"
+ "pipelines":"list pipelines you have access to"
+ "pipelines\:add":"add this app to a pipeline"
+ "pipelines\:create":"create a new pipeline"
+ "pipelines\:destroy":"destroy a pipeline"
+ "pipelines\:diff":"compares the latest release of this app to its downstream app(s)"
+ "pipelines\:info":"show list of apps in a pipeline"
+ "pipelines\:list":"list pipelines you have access to"
+ "pipelines\:open":"open a pipeline in dashboard"
+ "pipelines\:promote":"promote the latest release of this app to its downstream app(s)"
+ "pipelines\:remove":"remove this app from its pipeline"
+ "pipelines\:rename":"rename a pipeline"
+ "pipelines\:update":"update this app's stage in a pipeline"
"pg\:credentials":"display the DATABASE credentials"
"pg\:diagnose":"run diagnostics report on DATABASE"
"pg\:info":"display database information"
@@ -131,6 +143,41 @@ case "$words[1]" in
'(-t|--tail)'{-t,--tail}'[continually stream logs]' \
)
;;
+ pipelines)
+ _command_args=(
+ '(--json)'--json'[output in json format]' \
+ )
+ ;;
+ pipelines:add)
+ _command_args=(
+ '(-s|--stage)'{-s,--stage}'[stage of first app in pipeline]' \
+ )
+ ;;
+ pipelines:create)
+ _command_args=(
+ '(-s|--stage)'{-s,--stage}'[stage of first app in pipeline]' \
+ )
+ ;;
+ pipelines:info)
+ _command_args=(
+ '(--json)'--json'[output in json format]' \
+ )
+ ;;
+ pipelines:list)
+ _command_args=(
+ '(--json)'--json'[output in json format]' \
+ )
+ ;;
+ pipelines:promote)
+ _command_args=(
+ '(-t|--to)'{-t,--to}'[comma separated list of apps to promote to]' \
+ )
+ ;;
+ pipelines:update)
+ _command_args=(
+ '(-s|--stage)'{-s,--stage}'[stage of first app in pipeline]' \
+ )
+ ;;
pgbackups:capture)
_command_args=(
'(-e|--expire)'{-e,--expire}'[if no slots are available to capture, delete the oldest backup to make room]' \
From de1e3c0794ab4214412fe4f15d1e39ddffcbea42 Mon Sep 17 00:00:00 2001
From: Julien Palmas
Date: Mon, 22 Jun 2015 14:19:08 +0200
Subject: [PATCH 106/644] add pg:backups command
---
plugins/heroku/_heroku | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/heroku/_heroku b/plugins/heroku/_heroku
index f26595e00..4122de237 100644
--- a/plugins/heroku/_heroku
+++ b/plugins/heroku/_heroku
@@ -72,6 +72,7 @@ _1st_arguments=(
"pg\:unfollow":"stop a replica from following and make it a read/write database"
"pg\:upgrade":"unfollow a database and upgrade it to the latest PostgreSQL version"
"pg\:wait":"monitor database creation, exit when complete"
+ "pg\:backups":"Interact with built-in backups"
"pgbackups":"list captured backups"
"pgbackups\:url":"get a temporary URL for a backup"
"pgbackups\:capture":"capture a backup from a database id"
From e8aaab56b9f007cd5a285099fa101a63214622ee Mon Sep 17 00:00:00 2001
From: Frank Wittig
Date: Wed, 9 Apr 2014 18:11:06 +0200
Subject: [PATCH 107/644] allow . in profile names
---
plugins/aws/aws.plugin.zsh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/plugins/aws/aws.plugin.zsh b/plugins/aws/aws.plugin.zsh
index a326e2e01..183b0f226 100644
--- a/plugins/aws/aws.plugin.zsh
+++ b/plugins/aws/aws.plugin.zsh
@@ -37,9 +37,8 @@ function asp {
}
function aws_profiles {
- reply=($(grep profile $AWS_HOME/config|sed -e 's/.*profile \([a-zA-Z0-9_-]*\).*/\1/'))
+ reply=($(grep profile $AWS_HOME/config|sed -e 's/.*profile \([a-zA-Z0-9_\.-]*\).*/\1/'))
}
-
compctl -K aws_profiles asp
if which aws_zsh_completer.sh &>/dev/null; then
From 3dab7e46e8815838c8099040e11a7ae9a30ba03d Mon Sep 17 00:00:00 2001
From: dt-rush
Date: Thu, 17 May 2018 08:45:04 -0400
Subject: [PATCH 108/644] unset chpwd_functions before running cd to work with
the path, to avoid side-effects if the user has set any chpwd_functions which
cause output, such as is the case if the user is using auto-ls (#6830)
---
plugins/shrink-path/shrink-path.plugin.zsh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/plugins/shrink-path/shrink-path.plugin.zsh b/plugins/shrink-path/shrink-path.plugin.zsh
index f111962a5..6dd6a930f 100644
--- a/plugins/shrink-path/shrink-path.plugin.zsh
+++ b/plugins/shrink-path/shrink-path.plugin.zsh
@@ -94,6 +94,11 @@ shrink_path () {
(( tilde )) && dir=${dir/$HOME/\~}
tree=(${(s:/:)dir})
(
+ # unset chpwd_functions since we'll be calling `cd` and don't
+ # want any side-effects (eg., if the user was using auto-ls)
+ chpwd_functions=()
+ # unset chpwd since even if chpwd_functions is (), zsh will
+ # attempt to execute chpwd
unfunction chpwd 2> /dev/null
if [[ $tree[1] == \~* ]] {
cd ${~tree[1]}
From fbcda4d5a92e023388259652652d154558e49ef3 Mon Sep 17 00:00:00 2001
From: Andrew Baumann <0xabu@users.noreply.github.com>
Date: Thu, 17 May 2018 05:46:27 -0700
Subject: [PATCH 109/644] agnoster: cut down on fork/execs improve performance
when not in a repo (#6210)
* agnoster: improve perf with use of $jobstates (zsh/parameter module)
This saves multiple fork/execs (for the subshell and wc) each
time the prompt is rendered
* agnoster: compute git repo_path only when in a git repo
this avoids needlessly invoking git twice every time we render the prompt
* agnoster: avoid subshell when rendering prompt
Rather than forking a subshell to print the prompt, construct it
incrementally by appending to $PROMPT.
v2: fix incorrect CURRENT_BG
v3: fix bzr and hg prompting
Thanks @mcornella for the help.
---
themes/agnoster.zsh-theme | 46 +++++++++++++++++++++------------------
1 file changed, 25 insertions(+), 21 deletions(-)
mode change 100644 => 100755 themes/agnoster.zsh-theme
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
old mode 100644
new mode 100755
index 07546fd34..292551f44
--- a/themes/agnoster.zsh-theme
+++ b/themes/agnoster.zsh-theme
@@ -29,6 +29,7 @@
# A few utility functions to make it easy and re-usable to draw segmented prompts
CURRENT_BG='NONE'
+zmodload zsh/parameter
# Special Powerline characters
@@ -55,23 +56,23 @@ prompt_segment() {
[[ -n $1 ]] && bg="%K{$1}" || bg="%k"
[[ -n $2 ]] && fg="%F{$2}" || fg="%f"
if [[ $CURRENT_BG != 'NONE' && $1 != $CURRENT_BG ]]; then
- echo -n " %{$bg%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR%{$fg%} "
+ PROMPT+=" %{$bg%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR%{$fg%} "
else
- echo -n "%{$bg%}%{$fg%} "
+ PROMPT+="%{$bg%}%{$fg%} "
fi
CURRENT_BG=$1
- [[ -n $3 ]] && echo -n $3
+ [[ -n $3 ]] && PROMPT+=$3
}
# End the prompt, closing any open segments
prompt_end() {
if [[ -n $CURRENT_BG ]]; then
- echo -n " %{%k%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR"
+ PROMPT+=" %{%k%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR"
else
- echo -n "%{%k%}"
+ PROMPT+="%{%k%}"
fi
- echo -n "%{%f%}"
- CURRENT_BG=''
+ PROMPT+="%{%f%}"
+ CURRENT_BG='NONE'
}
### Prompt components
@@ -93,9 +94,9 @@ prompt_git() {
PL_BRANCH_CHAR=$'\ue0a0' #
}
local ref dirty mode repo_path
- repo_path=$(git rev-parse --git-dir 2>/dev/null)
if $(git rev-parse --is-inside-work-tree >/dev/null 2>&1); then
+ repo_path=$(git rev-parse --git-dir 2>/dev/null)
dirty=$(parse_git_dirty)
ref=$(git symbolic-ref HEAD 2> /dev/null) || ref="➦ $(git rev-parse --short HEAD 2> /dev/null)"
if [[ -n $dirty ]]; then
@@ -123,7 +124,7 @@ prompt_git() {
zstyle ':vcs_info:*' formats ' %u%c'
zstyle ':vcs_info:*' actionformats ' %u%c'
vcs_info
- echo -n "${ref/refs\/heads\//$PL_BRANCH_CHAR }${vcs_info_msg_0_%% }${mode}"
+ PROMPT+="${ref/refs\/heads\//$PL_BRANCH_CHAR }${vcs_info_msg_0_%% }${mode}"
fi
}
@@ -135,15 +136,15 @@ prompt_bzr() {
revision=`bzr log | head -n2 | tail -n1 | sed 's/^revno: //'`
if [[ $status_mod -gt 0 ]] ; then
prompt_segment yellow black
- echo -n "bzr@"$revision "✚ "
+ PROMPT+="bzr@$revision ✚ "
else
if [[ $status_all -gt 0 ]] ; then
prompt_segment yellow black
- echo -n "bzr@"$revision
+ PROMPT+="bzr@$revision"
else
prompt_segment green black
- echo -n "bzr@"$revision
+ PROMPT+="bzr@$revision"
fi
fi
fi
@@ -151,36 +152,36 @@ prompt_bzr() {
prompt_hg() {
(( $+commands[hg] )) || return
- local rev status
+ local rev st branch
if $(hg id >/dev/null 2>&1); then
if $(hg prompt >/dev/null 2>&1); then
if [[ $(hg prompt "{status|unknown}") = "?" ]]; then
# if files are not added
prompt_segment red white
- st='±'
+ st=' ±'
elif [[ -n $(hg prompt "{status|modified}") ]]; then
# if any modification
prompt_segment yellow black
- st='±'
+ st=' ±'
else
# if working copy is clean
prompt_segment green black
fi
- echo -n $(hg prompt "☿ {rev}@{branch}") $st
+ PROMPT+="$(hg prompt "☿ {rev}@{branch}")$st"
else
st=""
rev=$(hg id -n 2>/dev/null | sed 's/[^-0-9]//g')
branch=$(hg id -b 2>/dev/null)
if `hg st | grep -q "^\?"`; then
prompt_segment red black
- st='±'
+ st=' ±'
elif `hg st | grep -q "^[MA]"`; then
prompt_segment yellow black
- st='±'
+ st=' ±'
else
prompt_segment green black
fi
- echo -n "☿ $rev@$branch" $st
+ PROMPT+="☿ $rev@$branch$st"
fi
fi
}
@@ -207,7 +208,7 @@ prompt_status() {
symbols=()
[[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}✘"
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡"
- [[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙"
+ [[ ${#jobstates} -ne 0 ]] && symbols+="%{%F{cyan}%}⚙"
[[ -n "$symbols" ]] && prompt_segment black default "$symbols"
}
@@ -215,6 +216,7 @@ prompt_status() {
## Main prompt
build_prompt() {
RETVAL=$?
+ PROMPT='%{%f%b%k%}'
prompt_status
prompt_virtualenv
prompt_context
@@ -223,6 +225,8 @@ build_prompt() {
prompt_bzr
prompt_hg
prompt_end
+ PROMPT+=' '
}
-PROMPT='%{%f%b%k%}$(build_prompt) '
+autoload -U add-zsh-hook
+add-zsh-hook precmd build_prompt
From d79086bc87a8728121526081ad8b81e635904f55 Mon Sep 17 00:00:00 2001
From: Matt Lewin
Date: Thu, 17 May 2018 10:18:20 -0400
Subject: [PATCH 110/644] Update terraform plugin with v0.11.7 commands and
help (#6834)
---
plugins/terraform/README.md | 8 +-
plugins/terraform/_terraform | 192 ++++++++++++++++++++++++++---------
2 files changed, 149 insertions(+), 51 deletions(-)
diff --git a/plugins/terraform/README.md b/plugins/terraform/README.md
index 46855e417..e5d9e47b6 100644
--- a/plugins/terraform/README.md
+++ b/plugins/terraform/README.md
@@ -1,7 +1,9 @@
-## atom
+## Terraform oh-my-zsh plugin
Plugin for Terraform, a tool from Hashicorp for managing infrastructure safely and efficiently.
+Current as of Terraform v0.11.7
+
### Requirements
* [Terraform](https://terraform.io/)
@@ -12,8 +14,8 @@ Plugin for Terraform, a tool from Hashicorp for managing infrastructure safely a
### Expanding ZSH prompt with current Terraform workspace name
-If you want to get current Terraform workspace name in your ZSH prompt open
-your .zsh-theme file and in a choosen place insert:
+If you want to get current Terraform workspace name in your ZSH prompt open
+your .zsh-theme file and in a chosen place insert:
```
$FG[045]\
diff --git a/plugins/terraform/_terraform b/plugins/terraform/_terraform
index 285d83ec7..1d1315a8a 100644
--- a/plugins/terraform/_terraform
+++ b/plugins/terraform/_terraform
@@ -3,91 +3,151 @@
local -a _terraform_cmds
_terraform_cmds=(
'apply:Builds or changes infrastructure'
+ 'console:Interactive console for Terraform interpolations'
'destroy:Destroy Terraform-managed infrastructure'
+ 'fmt:Rewrites config files to canonical format'
'get:Download and install modules for the configuration'
'graph:Create a visual graph of Terraform resources'
- 'init:Initializes Terraform configuration from a module'
+ 'import:Import existing infrastructure into Terraform'
+ 'init:Initialize a Terraform working directory'
'output:Read an output from a state file'
'plan:Generate and show an execution plan'
- 'pull:Refreshes the local state copy from the remote server'
- 'push:Uploads the local state to the remote server'
+ 'providers:Prints a tree of the providers used in the configuration'
+ 'push:Upload this Terraform module to Atlas to run'
'refresh:Update local state file against real resources'
- 'remote:Configures remote state management'
'show:Inspect Terraform state or plan'
- 'taint:Manually forcing a destroy and recreate on the next plan/apply'
+ 'taint:Manually mark a resource for recreation'
+ 'untaint:Manually unmark a resource as tainted'
+ 'validate:Validates the Terraform files'
'version:Prints the Terraform version'
+ 'workspace:Workspace management'
)
__apply() {
_arguments \
- '-auto-approve[Skip interactive approval of plan before applying.]' \
'-backup=[(path) Path to backup the existing state file before modifying. Defaults to the "-state-out" path with ".backup" extension. Set to "-" to disable backup.]' \
+ '-auto-approve[Skip interactive approval of plan before applying.]' \
+ '-lock=[(true) Lock the state file when locking is supported.]' \
+ '-lock-timeout=[(0s) Duration to retry a state lock.]' \
'-input=[(true) Ask for input for variables if not directly set.]' \
- '-no-color[If specified, output will not contain any color.]' \
+ '-no-color[If specified, output wil be colorless.]' \
+ '-parallelism=[(10) Limit the number of parallel resource operations.]' \
'-refresh=[(true) Update state prior to checking for differences. This has no effect if a plan file is given to apply.]' \
- '-state=[(path) Path to read and save state (unless state-out is specified). Defaults to "terraform.tfstate".]' \
+ '-state=[(terraform.tfstate) Path to read and save state (unless state-out is specified).]' \
'-state-out=[(path) Path to write state to that is different than "-state". This can be used to preserve the old state.]' \
- '-target=[(resource) A Resource Address to target. Operation will be limited to this resource and its dependencies. This flag can be used multiple times.]' \
+ '-target=[(resource) Resource to target. Operation will be limited to this resource and its dependencies. This flag can be used multiple times.]' \
'-var[("foo=bar") Set a variable in the Terraform configuration. This flag can be set multiple times.]' \
- '-var-file=[(path) Set variables in the Terraform configuration from a file. If "terraform.tfvars" is present, it will be automatically loaded if this flag is not specified.]'
+ '-var-file=[(foo) Set variables in the Terraform configuration from a file. If "terraform.tfvars" or any ".auto.tfvars" files are present, they will be automatically loaded.]'
+}
+
+__console() {
+ _arguments \
+ '-state=[(terraform.tfstate) Path to read state.]' \
+ '-var[("foo=bar") Set a variable in the Terraform configuration. This flag can be set multiple times.]' \
+ '-var-file=[(foo) Set variables in the Terraform configuration from a file. If "terraform.tfvars" or any ".auto.tfvars" files are present, they will be automatically loaded.]'
}
__destroy() {
_arguments \
'-backup=[(path) Path to backup the existing state file before modifying. Defaults to the "-state-out" path with ".backup" extension. Set to "-" to disable backup.]' \
- '-force[If set, then the destroy confirmation will not be shown.]' \
- '-input=[(true) Ask for input for variables if not directly set.]' \
- '-no-color[If specified, output will not contain any color.]' \
+ '-auto-approve[Skip interactive approval before destroying.]' \
+ '-force[Deprecated: same as auto-approve.]' \
+ '-lock=[(true) Lock the state file when locking is supported.]' \
+ '-lock-timeout=[(0s) Duration to retry a state lock.]' \
+ '-no-color[If specified, output will contain no color.]' \
+ '-parallelism=[(10) Limit the number of concurrent operations.]' \
'-refresh=[(true) Update state prior to checking for differences. This has no effect if a plan file is given to apply.]' \
- '-state=[(path) Path to read and save state (unless state-out is specified). Defaults to "terraform.tfstate".]' \
+ '-state=[(terraform.tfstate) Path to read and save state (unless state-out is specified).]' \
'-state-out=[(path) Path to write state to that is different than "-state". This can be used to preserve the old state.]' \
- '-target=[(resource) Instead of affecting "dependencies" will instead also destroy any resources that depend on the target(s) specified.]' \
+ '-target=[(resource) Resource to target. Operation will be limited to this resource and its dependencies. This flag can be used multiple times.]' \
'-var[("foo=bar") Set a variable in the Terraform configuration. This flag can be set multiple times.]' \
- '-var-file=[(path) Set variables in the Terraform configuration from a file. If "terraform.tfvars" is present, it will be automatically loaded if this flag is not specified.]'
+ '-var-file=[(foo) Set variables in the Terraform configuration from a file. If "terraform.tfvars" or any ".auto.tfvars" files are present, they will be automatically loaded.]'
+}
+
+__fmt() {
+ _arguments \
+ '-list=[(true) List files whose formatting differs (always false if using STDIN)]' \
+ '-write=[(true) Write result to source file instead of STDOUT (always false if using STDIN or -check)]' \
+ '-diff=[(false) Display diffs of formatting changes]' \
+ '-check=[(false) Check if the input is formatted. Exit status will be 0 if all input is properly formatted and non-zero otherwise.]'
}
__get() {
_arguments \
- '-update=[(false) If true, modules already downloaded will be checked for updates and updated if necessary.]'
+ '-update=[(false) If true, modules already downloaded will be checked for updates and updated if necessary.]' \
+ '-no-color[If specified, output will contain no color.]'
}
__graph() {
_arguments \
'-draw-cycles[Highlight any cycles in the graph with colored edges. This helps when diagnosing cycle errors.]' \
- '-module-depth=[(n) The maximum depth to expand modules. By default this is zero, which will not expand modules at all.]' \
- '-verbose[Generate a verbose, "worst-case" graph, with all nodes for potential operations in place.]'
+ '-no-color[If specified, output will contain no color.]' \
+ '-type=[(plan) Type of graph to output. Can be: plan, plan-destroy, apply, validate, input, refresh.]'
+}
+
+__import() {
+ _arguments \
+ '-backup=[(path) Path to backup the existing state file before modifying. Defaults to the "-state-out" path with ".backup" extension. Set to "-" to disable backup.]' \
+ '-config=[(path) Path to a directory of Terraform configuration files to use to configure the provider. Defaults to pwd. If no config files are present, they must be provided via the input prompts or env vars.]' \
+ '-allow-missing-config[Allow import when no resource configuration block exists.]' \
+ '-input=[(true) Ask for input for variables if not directly set.]' \
+ '-lock=[(true) Lock the state file when locking is supported.]' \
+ '-lock-timeout=[(0s) Duration to retry a state lock.]' \
+ '-no-color[If specified, output will contain no color.]' \
+ '-provider=[(provider) Specific provider to use for import. This is used for specifying aliases, such as "aws.eu". Defaults to the normal provider prefix of the resource being imported.]' \
+ '-state=[(PATH) Path to the source state file. Defaults to the configured backend, or "terraform.tfstate"]' \
+ '-state-out=[(PATH) Path to the destination state file to write to. If this is not specified, the source state file will be used. This can be a new or existing path.]' \
+ '-var[("foo=bar") Set a variable in the Terraform configuration. This flag can be set multiple times. This is only useful with the "-config" flag.]' \
+ '-var-file=[(foo) Set variables in the Terraform configuration from a file. If "terraform.tfvars" or any ".auto.tfvars" files are present, they will be automatically loaded.]'
}
__init() {
_arguments \
- '-address=[(url) URL of the remote storage server. Required for HTTP backend, optional for Atlas and Consul.]' \
- '-access-token=[(token) Authentication token for state storage server. Required for Atlas backend, optional for Consul.]' \
- '-backend=[(atlas) Specifies the type of remote backend. Must be one of Atlas, Consul, or HTTP. Defaults to atlas.]' \
- '-backend-config=[(path) Specifies the path to remote backend config file.]' \
- '-name=[(name) Name of the state file in the state storage server. Required for Atlas backend.]' \
- '-path=[(path) Path of the remote state in Consul. Required for the Consul backend.]'
+ '-backend=[(true) Configure the backend for this configuration.]' \
+ '-backend-config=[This can be either a path to an HCL file with key/value assignments (same format as terraform.tfvars) or a 'key=value' format. This is merged with what is in the configuration file. This can be specified multiple times. The backend type must be in the configuration itself.]' \
+ '-force-copy[Suppress prompts about copying state data. This is equivalent to providing a "yes" to all confirmation prompts.]' \
+ '-from-module=[Copy the contents of the given module into the target directory before initialization.]' \
+ '-get=[(true) Download any modules for this configuration.]' \
+ '-get-plugins=[(true) Download any missing plugins for this configuration.]' \
+ '-input=[(true) Ask for input if necessary. If false, will error if input was required.]' \
+ '-lock=[(true) Lock the state file when locking is supported.]' \
+ '-lock-timeout=[(0s) Duration to retry a state lock.]' \
+ '-no-color[If specified, output will contain no color.]' \
+ '-plugin-dir[Directory containing plugin binaries. This overrides all default search paths for plugins, and prevents the automatic installation of plugins. This flag can be used multiple times.]' \
+ '-reconfigure[Reconfigure the backend, ignoring any saved configuration.]' \
+ '-upgrade=[(false) If installing modules (-get) or plugins (-get-plugins), ignore previously-downloaded objects and install the latest version allowed within configured constraints.]' \
+ '-verify-plugins=[(true) Verify the authenticity and integrity of automatically downloaded plugins.]'
}
__output() {
_arguments \
'-state=[(path) Path to the state file to read. Defaults to "terraform.tfstate".]' \
- '-module=[(module_name) The module path which has needed output. By default this is the root path. Other modules can be specified by a period-separated list.]'
+ '-no-color[ If specified, output will contain no color.]' \
+ '-module=[(name) If specified, returns the outputs for a specific module]' \
+ '-json[If specified, machine readable output will be printed in JSON format]'
}
__plan() {
_arguments \
- '-backup=[(path) Path to backup the existing state file before modifying. Defaults to the "-state-out" path with" .backup" extension. Set to "-" to disable backup.]' \
- '-destroy[If set, a plan will be generated to destroy all resources managed by the given configuration and state.]' \
- '-detailed-exitcode[Return a detailed exit code when the command exits. When provided, this argument changes the exit codes and their meanings to provide more granular information about what the resulting plan contains]' \
+ '-destroy[() If set, a plan will be generated to destroy all resources managed by the given configuration and state.]' \
+ '-detailed-exitcode[() Return detailed exit codes when the command exits. This will change the meaning of exit codes to: 0 - Succeeded, diff is empty (no changes); 1 - Errored, 2 - Succeeded; there is a diff]' \
'-input=[(true) Ask for input for variables if not directly set.]' \
- '-module-depth=[(n) Specifies the depth of modules to show in the output. This does not affect the plan itself, only the output shown. By default, this is zero. -1 will expand all.]' \
- '-no-color[If specified, output will not contain any color.]' \
+ '-lock=[(true) Lock the state file when locking is supported.]' \
+ '-lock-timeout=[(0s) Duration to retry a state lock.]' \
+ '-module-depth=[(n) Specifies the depth of modules to show in the output. This does not affect the plan itself, only the output shown. By default, this is -1, which will expand all.]' \
+ '-no-color[() If specified, output will contain no color.]' \
'-out=[(path) Write a plan file to the given path. This can be used as input to the "apply" command.]' \
+ '-parallelism=[(10) Limit the number of concurrent operations.]' \
'-refresh=[(true) Update state prior to checking for differences.]' \
'-state=[(statefile) Path to a Terraform state file to use to look up Terraform-managed resources. By default it will use the state "terraform.tfstate" if it exists.]' \
- '-target=[(resource) A Resource Address to target. Operation will be limited to this resource and its dependencies. This flag can be used multiple times.]' \
+ '-target=[(resource) Resource to target. Operation will be limited to this resource and its dependencies. This flag can be used multiple times.]' \
'-var[("foo=bar") Set a variable in the Terraform configuration. This flag can be set multiple times.]' \
- '-var-file=[(path) Set variables in the Terraform configuration from a file. If "terraform.tfvars" is present, it will be automatically loaded if this flag is not specified.]'
+ '-var-file=[(foo) Set variables in the Terraform configuration from a file. If "terraform.tfvars" or any ".auto.tfvars" files are present, they will be automatically loaded.]' \
+}
+
+__providers() {
+ _arguments \
+
}
__push() {
@@ -106,6 +166,9 @@ __push() {
__refresh() {
_arguments \
'-backup=[(path) Path to backup the existing state file before modifying. Defaults to the "-state-out" path with ".backup" extension. Set to "-" to disable backup.]' \
+ '-input=[(true) Ask for input for variables if not directly set.]' \
+ '-lock=[(true) Lock the state file when locking is supported.]' \
+ '-lock-timeout=[(0s) Duration to retry a state lock.]' \
'-no-color[If specified, output will not contain any color.]' \
'-state=[(path) Path to read and save state (unless state-out is specified). Defaults to "terraform.tfstate".]' \
'-state-out=[(path) Path to write state to that is different than "-state". This can be used to preserve the old state.]' \
@@ -114,19 +177,6 @@ __refresh() {
'-var-file=[(path) Set variables in the Terraform configuration from a file. If "terraform.tfvars" is present, it will be automatically loaded if this flag is not specified.]'
}
-__remote() {
- _arguments \
- '-address=[(url) URL of the remote storage server. Required for HTTP backend, optional for Atlas and Consul.]' \
- '-access-token=[(token) Authentication token for state storage server. Required for Atlas backend, optional for Consul.]' \
- '-backend=[(atlas) Specifies the type of remote backend. Must be one of Atlas, Consul, or HTTP. Defaults to atlas.]' \
- '-backup=[(path) Path to backup the existing state file before modifying. Defaults to the "-state-out" path with ".backup" extension. Set to "-" to disable backup.]' \
- '-disable[Disables remote state management and migrates the state to the -state path.]' \
- '-name=[(name) Name of the state file in the state storage server. Required for Atlas backend.]' \
- '-path=[(path) Path of the remote state in Consul. Required for the Consul backend.]' \
- '-pull=[(true) Controls if the remote state is pulled before disabling. This defaults to true to ensure the latest state is cached before disabling.]' \
- '-state=[(path) Path to read and save state (unless state-out is specified). Defaults to "terraform.tfstate".]'
-}
-
__show() {
_arguments \
'-module-depth=[(n) The maximum depth to expand modules. By default this is zero, which will not expand modules at all.]' \
@@ -137,12 +187,46 @@ __taint() {
_arguments \
'-allow-missing[If specified, the command will succeed (exit code 0) even if the resource is missing.]' \
'-backup=[(path) Path to backup the existing state file before modifying. Defaults to the "-state-out" path with ".backup" extension. Set to "-" to disable backup.]' \
+ '-lock=[(true) Lock the state file when locking is supported.]' \
+ '-lock-timeout=[(0s) Duration to retry a state lock.]' \
'-module=[(path) The module path where the resource lives. By default this will be root. Child modules can be specified by names. Ex. "consul" or "consul.vpc" (nested modules).]' \
'-no-color[If specified, output will not contain any color.]' \
'-state=[(path) Path to read and save state (unless state-out is specified). Defaults to "terraform.tfstate".]' \
'-state-out=[(path) Path to write updated state file. By default, the "-state" path will be used.]'
}
+__untaint() {
+ _arguments \
+ '-allow-missing[If specified, the command will succeed (exit code 0) even if the resource is missing.]' \
+ '-backup=[(path) Path to backup the existing state file before modifying. Defaults to the "-state-out" path with ".backup" extension. Set to "-" to disable backup.]' \
+ '-lock=[(true) Lock the state file when locking is supported.]' \
+ '-lock-timeout=[(0s) Duration to retry a state lock.]' \
+ '-module=[(path) The module path where the resource lives. By default this will be root. Child modules can be specified by names. Ex. "consul" or "consul.vpc" (nested modules).]' \
+ '-no-color[If specified, output will not contain any color.]' \
+ '-state=[(path) Path to read and save state (unless state-out is specified). Defaults to "terraform.tfstate".]' \
+ '-state-out=[(path) Path to write updated state file. By default, the "-state" path will be used.]'
+}
+
+__validate() {
+ _arguments \
+ '-check-variables=[(true) If set to true (default), the command will check whether all required variables have been specified.]' \
+ '-no-color[If specified, output will not contain any color.]' \
+ '-var[("foo=bar") Set a variable in the Terraform configuration. This flag can be set multiple times.]' \
+ '-var-file=[(path) Set variables in the Terraform configuration from a file. If "terraform.tfvars" is present, it will be automatically loaded if this flag is not specified.]'
+}
+
+__workspace() {
+ local -a __workspace_cmds
+ __workspace_cmds=(
+ 'delete:Delete a workspace'
+ 'list:List Workspaces'
+ 'new:Create a new workspace'
+ 'select:Select a workspace'
+ 'show:Show the name of the current workspace'
+ )
+ _describe -t workspace "workspace commands" __workspace_cmds
+}
+
_arguments '*:: :->command'
if (( CURRENT == 1 )); then
@@ -154,26 +238,38 @@ local -a _command_args
case "$words[1]" in
apply)
__apply ;;
+ console)
+ __console;;
destroy)
__destroy ;;
+ fmt)
+ __fmt;;
get)
__get ;;
graph)
__graph ;;
+ import)
+ __import;;
init)
__init ;;
output)
__output ;;
plan)
__plan ;;
+ providers)
+ __providers ;;
push)
__push ;;
refresh)
__refresh ;;
- remote)
- __remote ;;
show)
__show ;;
taint)
__taint ;;
+ untaint)
+ __untaint ;;
+ validate)
+ __validate ;;
+ workspace)
+ test $CURRENT -lt 3 && __workspace ;;
esac
From 6dd39a11d468d40e9559d65b2721234564d8665d Mon Sep 17 00:00:00 2001
From: Nikolas Garofil
Date: Thu, 17 May 2018 16:29:39 +0200
Subject: [PATCH 111/644] Docker completion updated to current offical version
from the Docker-devs (#6794)
This adds enable/disable and install/remove
From a600ab4b8578ca0a8e6c6dae0373033b9d8c201c Mon Sep 17 00:00:00 2001
From: Mauro Porras P
Date: Thu, 17 May 2018 09:30:03 -0500
Subject: [PATCH 112/644] Minor fix: "stdin" instead of "stding" (#6801)
---
plugins/docker/_docker | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/docker/_docker b/plugins/docker/_docker
index 4d1b79a82..32ad4848a 100644
--- a/plugins/docker/_docker
+++ b/plugins/docker/_docker
@@ -889,7 +889,7 @@ __docker_container_subcommand() {
$opts_help \
$opts_attach_exec_run_start \
"($help -a --attach)"{-a,--attach}"[Attach container's stdout/stderr and forward all signals]" \
- "($help -i --interactive)"{-i,--interactive}"[Attach container's stding]" \
+ "($help -i --interactive)"{-i,--interactive}"[Attach container's stdin]" \
"($help -)*:containers:__docker_complete_stopped_containers" && ret=0
;;
(stats)
From 2956e7820ee1dd7111084a291722c12aea01bb5c Mon Sep 17 00:00:00 2001
From: Lorenzo Bolla
Date: Sun, 20 May 2018 13:46:27 +0100
Subject: [PATCH 113/644] Fix 6843 Cache kubectl completion script to file to
speed up sourcing
---
plugins/kubectl/kubectl.plugin.zsh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh
index ec1321d8b..f4062186a 100644
--- a/plugins/kubectl/kubectl.plugin.zsh
+++ b/plugins/kubectl/kubectl.plugin.zsh
@@ -2,8 +2,15 @@
#
# Author: https://github.com/pstadler
+KUBECTL_COMPLETION_FILENAME="$TMPPREFIX-kubectl-completion-zsh"
+
+if [[ ! -f "$KUBECTL_COMPLETION_FILENAME" ]]
+then
+ kubectl completion zsh > "$KUBECTL_COMPLETION_FILENAME"
+fi
+
if [ $commands[kubectl] ]; then
- source <(kubectl completion zsh)
+ source "$KUBECTL_COMPLETION_FILENAME"
fi
# This command is used ALOT both below and in daily life
From ee96d0cf9634f25abb69a5cec68073a015dab0a5 Mon Sep 17 00:00:00 2001
From: Lorenzo Bolla
Date: Mon, 21 May 2018 00:01:55 +0100
Subject: [PATCH 114/644] Fix 6840 Check emacsclient version instead of emacs's
(#6841)
This is much faster.
---
plugins/emacs/emacs.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/emacs/emacs.plugin.zsh b/plugins/emacs/emacs.plugin.zsh
index c102a5a1e..db0ab13af 100644
--- a/plugins/emacs/emacs.plugin.zsh
+++ b/plugins/emacs/emacs.plugin.zsh
@@ -10,7 +10,7 @@
# - Configuration changes made at runtime are applied to all frames.
-if "$ZSH/tools/require_tool.sh" emacs 24 2>/dev/null ; then
+if "$ZSH/tools/require_tool.sh" emacsclient 24 2>/dev/null ; then
export EMACS_PLUGIN_LAUNCHER="$ZSH/plugins/emacs/emacsclient.sh"
# set EDITOR if not already defined.
From 2642f0a8b4d037cd178356132e5dc59c9e90c631 Mon Sep 17 00:00:00 2001
From: Chuan Jin
Date: Mon, 21 May 2018 01:02:53 +0200
Subject: [PATCH 115/644] Add git log with date (#6789)
---
plugins/git/git.plugin.zsh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index fd55be138..34598fb35 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -181,6 +181,8 @@ alias glgga='git log --graph --decorate --all'
alias glgm='git log --graph --max-count=10'
alias glo='git log --oneline --decorate'
alias glol="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"
+alias glod="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'"
+alias glods="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' --date=short"
alias glola="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all"
alias glog='git log --oneline --decorate --graph'
alias gloga='git log --oneline --decorate --graph --all'
From 8f3737f45b4c3c05e1488a28f79c6bc29ad8fb32 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Wed, 23 May 2018 11:33:34 +0200
Subject: [PATCH 116/644] Revert fbcda4d
The PROMPT building method clashes with other themes and
plugins that modify the PROMPT variable.
Also reverted the $jobstates trick due to it not working
inside $PROMPT.
---
themes/agnoster.zsh-theme | 42 ++++++++++++++++++---------------------
1 file changed, 19 insertions(+), 23 deletions(-)
mode change 100755 => 100644 themes/agnoster.zsh-theme
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
old mode 100755
new mode 100644
index 292551f44..b0a794f4d
--- a/themes/agnoster.zsh-theme
+++ b/themes/agnoster.zsh-theme
@@ -29,7 +29,6 @@
# A few utility functions to make it easy and re-usable to draw segmented prompts
CURRENT_BG='NONE'
-zmodload zsh/parameter
# Special Powerline characters
@@ -56,23 +55,23 @@ prompt_segment() {
[[ -n $1 ]] && bg="%K{$1}" || bg="%k"
[[ -n $2 ]] && fg="%F{$2}" || fg="%f"
if [[ $CURRENT_BG != 'NONE' && $1 != $CURRENT_BG ]]; then
- PROMPT+=" %{$bg%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR%{$fg%} "
+ echo -n " %{$bg%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR%{$fg%} "
else
- PROMPT+="%{$bg%}%{$fg%} "
+ echo -n "%{$bg%}%{$fg%} "
fi
CURRENT_BG=$1
- [[ -n $3 ]] && PROMPT+=$3
+ [[ -n $3 ]] && echo -n $3
}
# End the prompt, closing any open segments
prompt_end() {
if [[ -n $CURRENT_BG ]]; then
- PROMPT+=" %{%k%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR"
+ echo -n " %{%k%F{$CURRENT_BG}%}$SEGMENT_SEPARATOR"
else
- PROMPT+="%{%k%}"
+ echo -n "%{%k%}"
fi
- PROMPT+="%{%f%}"
- CURRENT_BG='NONE'
+ echo -n "%{%f%}"
+ CURRENT_BG=''
}
### Prompt components
@@ -124,7 +123,7 @@ prompt_git() {
zstyle ':vcs_info:*' formats ' %u%c'
zstyle ':vcs_info:*' actionformats ' %u%c'
vcs_info
- PROMPT+="${ref/refs\/heads\//$PL_BRANCH_CHAR }${vcs_info_msg_0_%% }${mode}"
+ echo -n "${ref/refs\/heads\//$PL_BRANCH_CHAR }${vcs_info_msg_0_%% }${mode}"
fi
}
@@ -136,15 +135,15 @@ prompt_bzr() {
revision=`bzr log | head -n2 | tail -n1 | sed 's/^revno: //'`
if [[ $status_mod -gt 0 ]] ; then
prompt_segment yellow black
- PROMPT+="bzr@$revision ✚ "
+ echo -n "bzr@"$revision "✚ "
else
if [[ $status_all -gt 0 ]] ; then
prompt_segment yellow black
- PROMPT+="bzr@$revision"
+ echo -n "bzr@"$revision
else
prompt_segment green black
- PROMPT+="bzr@$revision"
+ echo -n "bzr@"$revision
fi
fi
fi
@@ -158,30 +157,30 @@ prompt_hg() {
if [[ $(hg prompt "{status|unknown}") = "?" ]]; then
# if files are not added
prompt_segment red white
- st=' ±'
+ st='±'
elif [[ -n $(hg prompt "{status|modified}") ]]; then
# if any modification
prompt_segment yellow black
- st=' ±'
+ st='±'
else
# if working copy is clean
prompt_segment green black
fi
- PROMPT+="$(hg prompt "☿ {rev}@{branch}")$st"
+ echo -n $(hg prompt "☿ {rev}@{branch}") $st
else
st=""
rev=$(hg id -n 2>/dev/null | sed 's/[^-0-9]//g')
branch=$(hg id -b 2>/dev/null)
if `hg st | grep -q "^\?"`; then
prompt_segment red black
- st=' ±'
+ st='±'
elif `hg st | grep -q "^[MA]"`; then
prompt_segment yellow black
- st=' ±'
+ st='±'
else
prompt_segment green black
fi
- PROMPT+="☿ $rev@$branch$st"
+ echo -n "☿ $rev@$branch" $st
fi
fi
}
@@ -208,7 +207,7 @@ prompt_status() {
symbols=()
[[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}✘"
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡"
- [[ ${#jobstates} -ne 0 ]] && symbols+="%{%F{cyan}%}⚙"
+ [[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙"
[[ -n "$symbols" ]] && prompt_segment black default "$symbols"
}
@@ -216,7 +215,6 @@ prompt_status() {
## Main prompt
build_prompt() {
RETVAL=$?
- PROMPT='%{%f%b%k%}'
prompt_status
prompt_virtualenv
prompt_context
@@ -225,8 +223,6 @@ build_prompt() {
prompt_bzr
prompt_hg
prompt_end
- PROMPT+=' '
}
-autoload -U add-zsh-hook
-add-zsh-hook precmd build_prompt
+PROMPT='%{%f%b%k%}$(build_prompt) '
From 3d8ee47c7a55119318d698a90f523e04fffb878d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Fri, 25 May 2018 20:44:56 +0200
Subject: [PATCH 117/644] Update README formatting
---
plugins/transfer/README.md | 26 +++++++++++++++++++++-----
1 file changed, 21 insertions(+), 5 deletions(-)
diff --git a/plugins/transfer/README.md b/plugins/transfer/README.md
index 9bf488d4e..5fa064445 100644
--- a/plugins/transfer/README.md
+++ b/plugins/transfer/README.md
@@ -1,8 +1,24 @@
-# `transfer.sh` plugin
-transfer.sh is an easy file sharing service from the command line
+# `transfer` plugin
+
+[`transfer.sh`](https://transfer.sh) is an easy to use file sharing service from the command line
## Usage
-Example
-> transfer file.txt
-> transfer directory/
+Add `transfer` to your plugins array in your zshrc file:
+```zsh
+plugins=(... transfer)
+```
+
+Then you can:
+
+- transfer a file:
+
+```zsh
+transfer file.txt
+```
+
+- transfer a whole directory (it will be automatically compressed):
+
+```zsh
+transfer directory/
+```
From de8ef8286a88f82976bb6d4c89de0757272c7bcc Mon Sep 17 00:00:00 2001
From: Nathan Robinson
Date: Fri, 25 May 2018 23:46:18 -0400
Subject: [PATCH 118/644] Remove po alias
https://github.com/robbyrussell/oh-my-zsh/issues/6761
---
lib/directories.zsh | 4 ----
1 file changed, 4 deletions(-)
diff --git a/lib/directories.zsh b/lib/directories.zsh
index a50a692c8..14064b86f 100644
--- a/lib/directories.zsh
+++ b/lib/directories.zsh
@@ -28,7 +28,3 @@ alias lsa='ls -lah'
alias l='ls -lah'
alias ll='ls -lh'
alias la='ls -lAh'
-
-# Push and pop directories on directory stack
-alias pu='pushd'
-alias po='popd'
From 9b11b7e9388dc8c736c321e56e29440dedfa6152 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sat, 26 May 2018 18:25:47 +0200
Subject: [PATCH 119/644] Update logic to follow npm plugin convention
---
plugins/kubectl/kubectl.plugin.zsh | 17 +++++++----------
1 file changed, 7 insertions(+), 10 deletions(-)
diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh
index f4062186a..c4e30dacd 100644
--- a/plugins/kubectl/kubectl.plugin.zsh
+++ b/plugins/kubectl/kubectl.plugin.zsh
@@ -1,16 +1,13 @@
-# Autocompletion for kubectl, the command line interface for Kubernetes
-#
-# Author: https://github.com/pstadler
+if (( $+commands[kubectl] )); then
+ __KUBECTL_COMPLETION_FILE="${ZSH_CACHE_DIR}/kubectl_completion"
-KUBECTL_COMPLETION_FILENAME="$TMPPREFIX-kubectl-completion-zsh"
+ if [[ ! -f $__KUBECTL_COMPLETION_FILE ]]; then
+ kubectl completion zsh >! $__KUBECTL_COMPLETION_FILE
+ fi
-if [[ ! -f "$KUBECTL_COMPLETION_FILENAME" ]]
-then
- kubectl completion zsh > "$KUBECTL_COMPLETION_FILENAME"
-fi
+ [[ -f $__KUBECTL_COMPLETION_FILE ]] && source $__KUBECTL_COMPLETION_FILE
-if [ $commands[kubectl] ]; then
- source "$KUBECTL_COMPLETION_FILENAME"
+ unset __KUBECTL_COMPLETION_FILE
fi
# This command is used ALOT both below and in daily life
From d6aeaad83d73855776f7c937ef51428523295352 Mon Sep 17 00:00:00 2001
From: Pooya Parsa
Date: Sat, 26 May 2018 21:09:32 +0430
Subject: [PATCH 120/644] [plugin] update NPX docs (#6849)
---
plugins/npx/README.md | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/plugins/npx/README.md b/plugins/npx/README.md
index 2c94e4515..1c052930b 100644
--- a/plugins/npx/README.md
+++ b/plugins/npx/README.md
@@ -11,7 +11,21 @@ This plugin automatically registers npx command-not-found handler if `npx` exist
plugins=(.... npx)
```
-- Globally install npx binary (you need node.js installed too!)
+- Globally install npx binary (npx will be auto installed with recent versions of Node.js)
```bash
sudo npm install -g npx
-```
\ No newline at end of file
+```
+
+## Note
+
+The shell auto-fallback doesn't auto-install plain packages. In order to get it to install something, you need to add `@`:
+
+```
+➜ jasmine@latest # or just `jasmine@`
+npx: installed 13 in 1.896s
+Randomized with seed 54385
+Started
+```
+
+It does it this way so folks using the fallback don't accidentally try to install regular typoes.
+
From c09783c2554e505cc04ef0fc7465341475050947 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sat, 26 May 2018 19:02:03 +0200
Subject: [PATCH 121/644] Revert "unset chpwd_functions before running cd ...
(#6830)"
This reverts commit 3dab7e46e8815838c8099040e11a7ae9a30ba03d.
---
plugins/shrink-path/shrink-path.plugin.zsh | 5 -----
1 file changed, 5 deletions(-)
diff --git a/plugins/shrink-path/shrink-path.plugin.zsh b/plugins/shrink-path/shrink-path.plugin.zsh
index 6dd6a930f..f111962a5 100644
--- a/plugins/shrink-path/shrink-path.plugin.zsh
+++ b/plugins/shrink-path/shrink-path.plugin.zsh
@@ -94,11 +94,6 @@ shrink_path () {
(( tilde )) && dir=${dir/$HOME/\~}
tree=(${(s:/:)dir})
(
- # unset chpwd_functions since we'll be calling `cd` and don't
- # want any side-effects (eg., if the user was using auto-ls)
- chpwd_functions=()
- # unset chpwd since even if chpwd_functions is (), zsh will
- # attempt to execute chpwd
unfunction chpwd 2> /dev/null
if [[ $tree[1] == \~* ]] {
cd ${~tree[1]}
From 66cb4005ab6cfcd6b092c1b482e767af214e83bb Mon Sep 17 00:00:00 2001
From: Kaleb Elwert
Date: Wed, 1 Mar 2017 15:32:00 -0800
Subject: [PATCH 122/644] Update shrink-path to use cd -q for bypassing the
chpwd callbacks
---
plugins/shrink-path/shrink-path.plugin.zsh | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/plugins/shrink-path/shrink-path.plugin.zsh b/plugins/shrink-path/shrink-path.plugin.zsh
index f111962a5..e7eed1705 100644
--- a/plugins/shrink-path/shrink-path.plugin.zsh
+++ b/plugins/shrink-path/shrink-path.plugin.zsh
@@ -94,13 +94,12 @@ shrink_path () {
(( tilde )) && dir=${dir/$HOME/\~}
tree=(${(s:/:)dir})
(
- unfunction chpwd 2> /dev/null
if [[ $tree[1] == \~* ]] {
- cd ${~tree[1]}
+ cd -q ${~tree[1]}
result=$tree[1]
shift tree
} else {
- cd /
+ cd -q /
}
for dir in $tree; {
if (( lastfull && $#tree == 1 )) {
@@ -117,7 +116,7 @@ shrink_path () {
(( short )) && break
done
result+="/$part"
- cd $dir
+ cd -q $dir
shift tree
}
echo ${result:-/}
From 5896c87155f9346a2926786c6d578d0a5696d712 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sat, 26 May 2018 19:31:17 +0200
Subject: [PATCH 123/644] shrink-path: match only the beginning of the
directory (#6862)
Fixes #6317
---
plugins/shrink-path/shrink-path.plugin.zsh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/shrink-path/shrink-path.plugin.zsh b/plugins/shrink-path/shrink-path.plugin.zsh
index e7eed1705..29e6f0deb 100644
--- a/plugins/shrink-path/shrink-path.plugin.zsh
+++ b/plugins/shrink-path/shrink-path.plugin.zsh
@@ -88,10 +88,10 @@ shrink_path () {
if (( named )) {
for part in ${(k)nameddirs}; {
- [[ $dir == ${nameddirs[$part]}(/*|) ]] && dir=${dir/${nameddirs[$part]}/\~$part}
+ [[ $dir == ${nameddirs[$part]}(/*|) ]] && dir=${dir/#${nameddirs[$part]}/\~$part}
}
}
- (( tilde )) && dir=${dir/$HOME/\~}
+ (( tilde )) && dir=${dir/#$HOME/\~}
tree=(${(s:/:)dir})
(
if [[ $tree[1] == \~* ]] {
From 90a5bd06ca76aff04f76a5d43a432ed9340dd78d Mon Sep 17 00:00:00 2001
From: Lorenzo Bolla
Date: Sat, 26 May 2018 19:44:49 +0100
Subject: [PATCH 124/644] Prefer virtualenvwrapper_lazy (#6842)
This gives much faster start up times and only loads virtualenvwrapper
when needed.
Fix #6839
---
plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh b/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
index 484f18c91..2a7c0b92a 100644
--- a/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
+++ b/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
@@ -1,6 +1,14 @@
virtualenvwrapper='virtualenvwrapper.sh'
+virtualenvwrapper_lazy='virtualenvwrapper_lazy.sh'
-if (( $+commands[$virtualenvwrapper] )); then
+if (( $+commands[$virtualenvwrapper_lazy] )); then
+ function {
+ setopt local_options
+ unsetopt equals
+ virtualenvwrapper=${${virtualenvwrapper_lazy}:c}
+ source ${${virtualenvwrapper_lazy}:c}
+ }
+elif (( $+commands[$virtualenvwrapper] )); then
function {
setopt local_options
unsetopt equals
From 77b924b8394344175aab0c4d78bec670ef721d93 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sat, 26 May 2018 21:23:35 +0200
Subject: [PATCH 125/644] Give more helpful message and disable purge of caches
This error message will give information on what exactly has happened
and how to either solve ownership and permissions or disable the check
entirely.
Also gets rid of the purge of compinit caches since with the current
logic insecure completion directories are ignored and therefore haven't
tainted the cached files.
---
lib/compfix.zsh | 44 ++++++++++++++------------------------------
1 file changed, 14 insertions(+), 30 deletions(-)
diff --git a/lib/compfix.zsh b/lib/compfix.zsh
index 208aaadb1..68decc1ed 100644
--- a/lib/compfix.zsh
+++ b/lib/compfix.zsh
@@ -2,10 +2,6 @@
# insecure ownership or permissions) by:
#
# * Human-readably notifying the user of these insecurities.
-# * Moving away all existing completion caches to a temporary directory. Since
-# any of these caches may have been generated from insecure directories, they
-# are all suspect now. Failing to do so typically causes subsequent compinit()
-# calls to fail with "command not found: compdef" errors. (That's bad.)
function handle_completion_insecurities() {
# List of the absolute paths of all unique insecure directories, split on
# newline from compaudit()'s output resembling:
@@ -22,39 +18,27 @@ function handle_completion_insecurities() {
insecure_dirs=( ${(f@):-"$(compaudit 2>/dev/null)"} )
# If no such directories exist, get us out of here.
- if (( ! ${#insecure_dirs} )); then
- print "[oh-my-zsh] No insecure completion-dependent directories detected."
- return
- fi
+ (( ! ${#insecure_dirs} )) && return
# List ownership and permissions of all insecure directories.
print "[oh-my-zsh] Insecure completion-dependent directories detected:"
ls -ld "${(@)insecure_dirs}"
- print "[oh-my-zsh] For safety, completions will be disabled until you manually fix all"
- print "[oh-my-zsh] insecure directory permissions and ownership and restart oh-my-zsh."
- print "[oh-my-zsh] See the above list for directories with group or other writability.\n"
- # Locally enable the "NULL_GLOB" option, thus removing unmatched filename
- # globs from argument lists *AND* printing no warning when doing so. Failing
- # to do so prints an unreadable warning if no completion caches exist below.
- setopt local_options null_glob
+ cat <
Date: Sat, 26 May 2018 21:26:49 +0200
Subject: [PATCH 126/644] Always load secure completion directories
---
oh-my-zsh.sh | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
index c0e2ba8f6..72527362f 100644
--- a/oh-my-zsh.sh
+++ b/oh-my-zsh.sh
@@ -63,15 +63,14 @@ if [ -z "$ZSH_COMPDUMP" ]; then
fi
if [[ $ZSH_DISABLE_COMPFIX != true ]]; then
- # If completion insecurities exist, warn the user without enabling completions.
+ # If completion insecurities exist, warn the user
if ! compaudit &>/dev/null; then
- # This function resides in the "lib/compfix.zsh" script sourced above.
handle_completion_insecurities
- # Else, enable and cache completions to the desired file.
- else
- compinit -d "${ZSH_COMPDUMP}"
fi
+ # Load only from secure directories
+ compinit -i -d "${ZSH_COMPDUMP}"
else
+ # If the user wants it, load from all found directories
compinit -u -d "${ZSH_COMPDUMP}"
fi
From 8bbef9180e3ba16e717a9587d0c965ab901c1226 Mon Sep 17 00:00:00 2001
From: Erwan ROUSSEL
Date: Sat, 26 May 2018 22:22:22 +0200
Subject: [PATCH 127/644] Npm's plugin documentation (#6864)
* Documentation for Npm plugin added
* Fix style and add alias descriptions
---
plugins/npm/README.md | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
create mode 100644 plugins/npm/README.md
diff --git a/plugins/npm/README.md b/plugins/npm/README.md
new file mode 100644
index 000000000..202e2b0a4
--- /dev/null
+++ b/plugins/npm/README.md
@@ -0,0 +1,26 @@
+## npm plugin
+
+The npm plugin provides completion as well as adding many useful aliases.
+
+To use it, add npm to the plugins array of your zshrc file:
+```
+plugins=(... npm)
+```
+
+## Aliases
+
+| Alias | Command | Descripton |
+|:------ |:-----------------------------|:----------------------------------------------------------------|
+| `npmg` | `npm i -g` | Install dependencies globally |
+| `npmS` | `npm i -S` | Install and save to dependencies in your package.json |
+| `npmD` | `npm i -D` | Install and save to dev-dependencies in your package.json |
+| `npmE` | `PATH="$(npm bin)":"$PATH"` | Run command from node_modules folder based on current directory |
+| `npmO` | `npm outdated` | Check which npm modules are outdated |
+| `npmV` | `npm -v` | Check package versions |
+| `npmL` | `npm list` | List installed packages |
+| `npmL0` | `npm ls --depth=0` | List top-level installed packages |
+| `npmst` | `npm start` | Run npm start |
+| `npmt` | `npm test` | Run npm test |
+| `npmR` | `npm run` | Run npm scripts |
+| `npmP` | `npm publish` | Run npm publish |
+| `npmI` | `npm init` | Run npm init |
From ce2890bef95b4b0a5b14ed8dd50ad2f78f8dee72 Mon Sep 17 00:00:00 2001
From: Michael Fladischer
Date: Mon, 28 May 2018 11:23:05 +0200
Subject: [PATCH 128/644] [plugins/vundle] Use HTTPS to clone repository.
(#6857)
The git protocol is likely to be blocked in some networks while HTTPS usually
works.
---
plugins/vundle/vundle.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/vundle/vundle.plugin.zsh b/plugins/vundle/vundle.plugin.zsh
index 0f071597a..c84cacd0e 100644
--- a/plugins/vundle/vundle.plugin.zsh
+++ b/plugins/vundle/vundle.plugin.zsh
@@ -6,7 +6,7 @@ function vundle-init () {
if [ ! -d ~/.vim/bundle/Vundle.vim/.git ] && [ ! -f ~/.vim/bundle/Vundle.vim/.git ]
then
- git clone git://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
+ git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
echo "\n\tRead about vim configuration for vundle at https://github.com/VundleVim/Vundle.vim\n"
fi
}
From ebda8af870acc295388ed187f0139a8bffa83196 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Mon, 28 May 2018 17:09:53 +0200
Subject: [PATCH 129/644] Clarify ssh-agent settings position
---
plugins/ssh-agent/README.md | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/ssh-agent/README.md b/plugins/ssh-agent/README.md
index 00af42f01..85d8c8a85 100644
--- a/plugins/ssh-agent/README.md
+++ b/plugins/ssh-agent/README.md
@@ -11,6 +11,8 @@ plugins=(... ssh-agent)
## Instructions
+**IMPORTANT: put these settings _before_ the line that sources oh-my-zsh**
+
To enable **agent forwarding support** add the following to your zshrc file:
```zsh
From 6ace3cd18dd3cbc0e2631fa98051194b703fe4d7 Mon Sep 17 00:00:00 2001
From: Paul Ossenbruggen
Date: Tue, 5 Jun 2018 06:37:20 -0700
Subject: [PATCH 130/644] add xx command to Xcode plugin. Allows quick opening
of files in Xcode. (#6812)
---
plugins/xcode/README.md | 6 +++++-
plugins/xcode/xcode.plugin.zsh | 13 ++++++++++++-
2 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/plugins/xcode/README.md b/plugins/xcode/README.md
index c12ce047f..37f882638 100644
--- a/plugins/xcode/README.md
+++ b/plugins/xcode/README.md
@@ -19,7 +19,7 @@ plugins=(... xcode)
| xcdd | Purge all temporary build information | rm -rf ~/Library/Developer/Xcode/DerivedData/* |
| xcp | Show currently selected Xcode directory | xcode-select --print-path |
| xcsel | Select different Xcode directory by path | sudo xcode-select --switch |
-
+| xx | Opens the files listed in Xcode | open -a "Xcode.app" |
## Functions
@@ -29,6 +29,10 @@ plugins=(... xcode)
Opens the current directory in Xcode as an Xcode project. This will open one of the `.xcworkspace` and `.xcodeproj` files that it can find in the current working directory. You can also specify a directory to look in for the Xcode files.
Returns 1 if it didn't find any relevant files.
+### `xx`
+
+Opens the files listed in Xcode, multiple files are opened in a multi-file browser.
+
### `simulator`
Opens the iOS Simulator from your command line, dependent on whichever is the active developer directory for Xcode. (That is, it respects the `xcsel` setting.)
diff --git a/plugins/xcode/xcode.plugin.zsh b/plugins/xcode/xcode.plugin.zsh
index f711c39fb..b46e05f2f 100644
--- a/plugins/xcode/xcode.plugin.zsh
+++ b/plugins/xcode/xcode.plugin.zsh
@@ -27,6 +27,17 @@ function xc {
fi
}
+# Opens a file or files in the Xcode IDE. Multiple files are opened in multi-file browser
+# original author: @possen
+function xx {
+ if [[ $# == 0 ]]; then
+ echo "Specify file(s) to open in xcode."
+ return 1
+ fi
+ echo "${xcode_files}"
+ open -a "Xcode.app" "$@"
+}
+
# "XCode-SELect by Version" - select Xcode by just version number
# Uses naming convention:
# - different versions of Xcode are named Xcode-.app or stored
@@ -70,7 +81,7 @@ function xcselv {
function _omz_xcode_print_xcselv_usage {
cat << EOF >&2
-Usage:
+Usage:
xcselv
xcselv [options]
From f461d21de1bd0c1394e57a2e3af69778692e4ba4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Wed, 6 Jun 2018 17:14:19 +0200
Subject: [PATCH 131/644] virtualenvwrapper: set $WORKON_HOME if undefined
This uses the default that virtualenvwrapper.sh would set if it was called. If the user
changes its value after the plugin is loaded, the plugin will work all the same.
Fixes #6882
Closes #6870
Closes #6883
---
plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh b/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
index 2a7c0b92a..e27c6bb76 100644
--- a/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
+++ b/plugins/virtualenvwrapper/virtualenvwrapper.plugin.zsh
@@ -7,6 +7,7 @@ if (( $+commands[$virtualenvwrapper_lazy] )); then
unsetopt equals
virtualenvwrapper=${${virtualenvwrapper_lazy}:c}
source ${${virtualenvwrapper_lazy}:c}
+ [[ -z "$WORKON_HOME" ]] && WORKON_HOME="$HOME/.virtualenvs"
}
elif (( $+commands[$virtualenvwrapper] )); then
function {
From 019e0d7c71429650de33b5fb48b066ee46f37199 Mon Sep 17 00:00:00 2001
From: Andre Figueiredo
Date: Sun, 10 Jun 2018 12:55:47 -0400
Subject: [PATCH 132/644] fix(typo) (#6905)
*trupd* for "trizen -Sy" fixed to *trupg*
---
plugins/archlinux/README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/archlinux/README.md b/plugins/archlinux/README.md
index c3521c523..0d1fdea3a 100644
--- a/plugins/archlinux/README.md
+++ b/plugins/archlinux/README.md
@@ -23,7 +23,7 @@
| trupd | trizen -Sy && sudo abs | Update and refresh the local package and ABS databases |
| trupd | trizen -Sy && sudo aur | Update and refresh the local package and AUR databases |
| trupd | trizen -Sy | Update and refresh the local package database |
-| trupd | trizen -Syua | Sync with repositories before upgrading all packages (from AUR too) |
+| trupg | trizen -Syua | Sync with repositories before upgrading all packages (from AUR too) |
| trsu | trizen -Syua --no-confirm | Same as `trupg`, but without confirmation |
| upgrade | trizen -Syu | Sync with repositories before upgrading packages |
From 0808c0f6efaaf988ea6530645394d97fef810f01 Mon Sep 17 00:00:00 2001
From: Matteo Giaccone
Date: Tue, 12 Jun 2018 18:23:31 +0200
Subject: [PATCH 133/644] Remove default for git reset (#4993)
The command will do the same as before, but now you can also specify
a path.
Example:
grh branch-name
grhh tag-name
---
plugins/git/git.plugin.zsh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index 34598fb35..413d780e1 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -211,8 +211,8 @@ alias grbc='git rebase --continue'
alias grbi='git rebase -i'
alias grbm='git rebase master'
alias grbs='git rebase --skip'
-alias grh='git reset HEAD'
-alias grhh='git reset HEAD --hard'
+alias grh='git reset'
+alias grhh='git reset --hard'
alias grmv='git remote rename'
alias grrm='git remote remove'
alias grset='git remote set-url'
From 3dcf9fd662b2eb74dc84bd739ca66b8a5bf4f52b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Tue, 12 Jun 2018 18:40:31 +0200
Subject: [PATCH 134/644] Delete python completion in favor of zsh's one
---
plugins/python/_python | 54 ------------------------------------------
1 file changed, 54 deletions(-)
delete mode 100644 plugins/python/_python
diff --git a/plugins/python/_python b/plugins/python/_python
deleted file mode 100644
index f517d4806..000000000
--- a/plugins/python/_python
+++ /dev/null
@@ -1,54 +0,0 @@
-#compdef python
-
-# Python 2.6
-# Python 3.0
-
-local curcontext="$curcontext" state line expl
-typeset -A opt_args
-
-local -a args
-
-if _pick_variant python3=Python\ 3 python2 --version; then
- args=(
- '(-bb)-b[issue warnings about str(bytes_instance), str(bytearray_instance) and comparing bytes/bytearray with str]'
- '(-b)-bb[issue errors about str(bytes_instance), str(bytearray_instance) and comparing bytes/bytearray with str]'
- )
-else
- args=(
- '-Q+[division options]:division option:(old warn warnall new)'
- '(-tt)-t[issue warnings about inconsistent tab usage]'
- '(-t)-tt[issue errors about inconsistent tab usage]'
- '-3[warn about Python 3.x incompatibilities]'
- )
-fi
-
-_arguments -C -s -S "$args[@]" \
- "-B[don't write .py\[co\] files on import]" \
- '(1 -)-c+[program passed in as string (terminates option list)]:python command:' \
- '-d[debug output from parser]' \
- '-E[ignore PYTHON* environment variables (such as PYTHONPATH)]' \
- '(1 * -)-h[display help information]' \
- '-i[inspect interactively after running script]' \
- '(1 * -)-m[run library module as a script (terminates option list)]:module:->modules' \
- '-O[optimize generated bytecode slightly]' \
- '-OO[remove doc-strings in addition to the -O optimizations]' \
- "-s[don't add user site directory to sys.path]" \
- "-S[don't imply 'import site' on initialization]" \
- '-u[unbuffered binary stdout and stderr]' \
- '-v[verbose (trace import statements)]' \
- '(1 * -)'{-V,--version}'[display version information]' \
- '-W+[warning control]:warning filter (action\:message\:category\:module\:lineno):(default always ignore module once error)' \
- '-x[skip first line of source, allowing use of non-Unix forms of #!cmd]' \
- '(-)1:script file:_files -g "*.py(|c|o)(-.)"' \
- '*::script argument: _normal' && return
-
-if [[ "$state" = modules ]]; then
- local -a modules
- modules=(
- ${${=${(f)"$(_call_program modules $words[1] -c \
- 'from\ pydoc\ import\ help\;\ help\(\"modules\"\)')"}[2,-3]}:#\(package\)}
- )
- _wanted modules expl module compadd -a modules && return
-fi
-
-return 1
From 321200d708027b56e95525cba3d4a6bb3d86983e Mon Sep 17 00:00:00 2001
From: Peter Butkovic
Date: Tue, 12 Jun 2018 19:19:59 +0200
Subject: [PATCH 135/644] added tmuxinator aliases (#3147)
---
plugins/tmuxinator/tmuxinator.plugin.zsh | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 plugins/tmuxinator/tmuxinator.plugin.zsh
diff --git a/plugins/tmuxinator/tmuxinator.plugin.zsh b/plugins/tmuxinator/tmuxinator.plugin.zsh
new file mode 100644
index 000000000..166fa9881
--- /dev/null
+++ b/plugins/tmuxinator/tmuxinator.plugin.zsh
@@ -0,0 +1,5 @@
+# aliases
+alias txs='tmuxinator start'
+alias txo='tmuxinator open'
+alias txn='tmuxinator new'
+alias txl='tmuxinator list'
From 7a9bab1d77e2c22c331ce98a7245d0ba5d348353 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Tue, 12 Jun 2018 19:20:10 +0200
Subject: [PATCH 136/644] Update tmuxinator completion to 03c8babb
---
plugins/tmuxinator/_tmuxinator | 55 +++++++++++-----------------------
1 file changed, 18 insertions(+), 37 deletions(-)
diff --git a/plugins/tmuxinator/_tmuxinator b/plugins/tmuxinator/_tmuxinator
index 551267ed2..37032f8d8 100644
--- a/plugins/tmuxinator/_tmuxinator
+++ b/plugins/tmuxinator/_tmuxinator
@@ -1,40 +1,21 @@
-#compdef tmuxinator mux
-#autoload
+_tmuxinator() {
+ local commands projects
+ commands=(${(f)"$(tmuxinator commands zsh)"})
+ projects=(${(f)"$(tmuxinator completions start)"})
-local curcontext="$curcontext" state line ret=1
-local -a _configs
-
-_arguments -C \
- '1: :->cmds' \
- '2:: :->args' && ret=0
-
-_configs=(${$(echo ~/.tmuxinator/*.yml):r:t})
-
-case $state in
- cmds)
- _values "tmuxinator command" \
- "new[create a new project file and open it in your editor]" \
- "start[start a tmux session using project's tmuxinator config]" \
- "open[create a new project file and open it in your editor]" \
- "copy[copy source_project project file to a new project called new_project]" \
- "delete[deletes the project called project_name]" \
- "debug[output the shell commands generated by a projet]" \
- "implode[deletes all existing projects!]" \
- "list[list all existing projects]" \
- "doctor[look for problems in your configuration]" \
- "help[shows this help document]" \
- "version[shows tmuxinator version number]" \
- $_configs
- ret=0
- ;;
- args)
- case $line[1] in
- start|open|copy|delete|debug)
- [[ -n "$_configs" ]] && _values 'configs' $_configs
- ret=0
- ;;
+ if (( CURRENT == 2 )); then
+ _describe -t commands "tmuxinator subcommands" commands
+ _describe -t projects "tmuxinator projects" projects
+ elif (( CURRENT == 3)); then
+ case $words[2] in
+ copy|debug|delete|open|start)
+ _arguments '*:projects:($projects)'
+ ;;
esac
- ;;
-esac
+ fi
-return ret
+ return
+}
+
+compdef _tmuxinator tmuxinator mux
+alias mux="tmuxinator"
From be5bff2e86872c00536191265aa9fdef225af100 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Tue, 12 Jun 2018 19:54:47 +0200
Subject: [PATCH 137/644] Allow FreeBSD to correctly detect number of CPUs
Use the same scheme as Darwin - sysctl instead of nproc, which doesn't exist in FreeBSD
Closes #2545
Co-authored-by: Daniel Bye
---
plugins/bundler/bundler.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
index 6b10b78d1..ea199d09a 100644
--- a/plugins/bundler/bundler.plugin.zsh
+++ b/plugins/bundler/bundler.plugin.zsh
@@ -57,7 +57,7 @@ bundle_install() {
if _bundler-installed && _within-bundled-project; then
local bundler_version=`bundle version | cut -d' ' -f3`
if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then
- if [[ "$OSTYPE" = darwin* ]]
+ if [[ "$OSTYPE" = (darwin|freebsd)* ]]
then
local cores_num="$(sysctl -n hw.ncpu)"
else
From 09fbc163663cd814488cb4be474f034525a8cca0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Tue, 12 Jun 2018 20:45:38 +0200
Subject: [PATCH 138/644] Refactor lein plugin (#6914)
* Add upstream lein completion (cee9029d)
* Delete lein.plugin.zsh
---
plugins/lein/_lein | 69 ++++++++++++++++++++++++++++++++++++
plugins/lein/lein.plugin.zsh | 43 ----------------------
2 files changed, 69 insertions(+), 43 deletions(-)
create mode 100644 plugins/lein/_lein
delete mode 100644 plugins/lein/lein.plugin.zsh
diff --git a/plugins/lein/_lein b/plugins/lein/_lein
new file mode 100644
index 000000000..9d022e968
--- /dev/null
+++ b/plugins/lein/_lein
@@ -0,0 +1,69 @@
+#compdef lein
+
+# Lein ZSH completion function
+# Drop this somewhere in your $fpath (like /usr/share/zsh/site-functions)
+# and rename it _lein
+
+_lein() {
+ if (( CURRENT > 2 )); then
+ # shift words so _arguments doesn't have to be concerned with second command
+ (( CURRENT-- ))
+ shift words
+ # use _call_function here in case it doesn't exist
+ _call_function 1 _lein_${words[1]}
+ else
+ _values "lein command" \
+ "change[Rewrite project.clj by applying a function.]" \
+ "check[Check syntax and warn on reflection.]" \
+ "classpath[Print the classpath of the current project.]" \
+ "clean[Remove all files from project's target-path.]" \
+ "compile[Compile Clojure source into .class files.]" \
+ "deploy[Build and deploy jar to remote repository.]" \
+ "deps[Download all dependencies.]" \
+ "do[Higher-order task to perform other tasks in succession.]" \
+ "help[Display a list of tasks or help for a given task.]" \
+ "install[Install the current project to the local repository.]" \
+ "jar[Package up all the project's files into a jar file.]" \
+ "javac[Compile Java source files.]" \
+ "new[Generate project scaffolding based on a template.]" \
+ "plugin[DEPRECATED. Please use the :user profile instead.]" \
+ "pom[Write a pom.xml file to disk for Maven interoperability.]" \
+ "release[Perform :release-tasks.]" \
+ "repl[Start a repl session either with the current project or standalone.]" \
+ "retest[Run only the test namespaces which failed last time around.]" \
+ "run[Run a -main function with optional command-line arguments.]" \
+ "search[Search remote maven repositories for matching jars.]" \
+ "show-profiles[List all available profiles or display one if given an argument.]" \
+ "test[Run the project's tests.]" \
+ "trampoline[Run a task without nesting the project's JVM inside Leiningen's.]" \
+ "uberjar[Package up the project files and dependencies into a jar file.]" \
+ "update-in[Perform arbitrary transformations on your project map.]" \
+ "upgrade[Upgrade Leiningen to specified version or latest stable.]" \
+ "vcs[Interact with the version control system.]" \
+ "version[Print version for Leiningen and the current JVM.]" \
+ "with-profile[Apply the given task with the profile(s) specified.]"
+ fi
+}
+
+_lein_plugin() {
+ _values "lein plugin commands" \
+ "install[Download, package, and install plugin jarfile into ~/.lein/plugins]" \
+ "uninstall[Delete the plugin jarfile: \[GROUP/\]ARTIFACT-ID VERSION]"
+}
+
+
+_lein_namespaces() {
+ if [ -f "./project.clj" -a -d "$1" ]; then
+ _values "lein valid namespaces" \
+ $(find "$1" -type f -name "*.clj" -exec awk '/^\(ns */ {gsub("\\)", "", $2); print $2}' '{}' '+')
+ fi
+}
+
+
+_lein_run() {
+ _lein_namespaces "src/"
+}
+
+_lein_test() {
+ _lein_namespaces "test/"
+}
diff --git a/plugins/lein/lein.plugin.zsh b/plugins/lein/lein.plugin.zsh
deleted file mode 100644
index f4e50b447..000000000
--- a/plugins/lein/lein.plugin.zsh
+++ /dev/null
@@ -1,43 +0,0 @@
-function _lein_commands() {
- local ret=1 state
- _arguments ':subcommand:->subcommand' && ret=0
-
- case $state in
- subcommand)
- subcommands=(
- "classpath:print the classpath of the current project"
- "clean:remove compiled files and dependencies from project"
- "compile:ahead-of-time compile the project"
- "deploy:build jar and deploy to remote repository"
- "deps:download and install all dependencies"
- "help:display a list of tasks or help for a given task"
- "install:install the project and its dependencies in your local repository"
- "int:enter an interactive task shell"
- "interactive:enter an interactive task shell"
- "jack-in:jack in to a clojure slime session from emacs."
- "jar:create a jar file containing the compiled .class files"
- "javac:compile java source files"
- "new:create a new project skeleton"
- "plugin:manage user-level plugins"
- "pom:write a pom.xml file to disk for maven interop"
- "repl:start a repl session either with the current project or standalone"
- "retest:run only the test namespaces which failed last time around"
- "run:run the project's -main function"
- "search:search remote maven repositories for matching jars"
- "swank:launch swank server for Emacs to connect"
- "test:run the project's tests"
- "test!:run a project's tests after cleaning and fetching dependencies"
- "trampoline:run a task without nesting the project's JVM inside Leiningen's."
- "uberjar:Create a jar including the contents of each of deps"
- "upgrade:upgrade leiningen to the latest stable release"
- "version:print leiningen's version"
- )
- _describe -t subcommands 'leiningen subcommands' subcommands && ret=0
- ;;
- *) _files
- esac
-
- return ret
-}
-
-compdef _lein_commands lein
From fec0089cddf4eb6677d90561079f7a6cb0971197 Mon Sep 17 00:00:00 2001
From: Dan Wallis
Date: Wed, 13 Jun 2018 01:02:48 +0100
Subject: [PATCH 139/644] Quote $ZSH where necessary in install script (#6587)
Quote $ZSH where necessary in install script
---
tools/install.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/install.sh b/tools/install.sh
index ad47df785..b815a9c81 100755
--- a/tools/install.sh
+++ b/tools/install.sh
@@ -59,7 +59,7 @@ main() {
exit 1
fi
fi
- env git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git $ZSH || {
+ env git clone --depth=1 https://github.com/robbyrussell/oh-my-zsh.git "$ZSH" || {
printf "Error: git clone of oh-my-zsh repo failed\n"
exit 1
}
@@ -72,9 +72,9 @@ main() {
fi
printf "${BLUE}Using the Oh My Zsh template file and adding it to ~/.zshrc${NORMAL}\n"
- cp $ZSH/templates/zshrc.zsh-template ~/.zshrc
+ cp "$ZSH"/templates/zshrc.zsh-template ~/.zshrc
sed "/^export ZSH=/ c\\
- export ZSH=$ZSH
+ export ZSH=\"$ZSH\"
" ~/.zshrc > ~/.zshrc-omztemp
mv -f ~/.zshrc-omztemp ~/.zshrc
From 5efa5138bf4ab168b1ca197dfdeef0e4c3ade271 Mon Sep 17 00:00:00 2001
From: Parham Alvani
Date: Thu, 14 Jun 2018 23:02:15 +0430
Subject: [PATCH 140/644] silence mode of curl (#6898)
Uses silence mode of curl for better autocomplete.
Co-authored-by: Dominik Rimpf
---
plugins/gitignore/gitignore.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/gitignore/gitignore.plugin.zsh b/plugins/gitignore/gitignore.plugin.zsh
index f242169e4..15e38d3b7 100644
--- a/plugins/gitignore/gitignore.plugin.zsh
+++ b/plugins/gitignore/gitignore.plugin.zsh
@@ -1,7 +1,7 @@
function gi() { curl -fL https://www.gitignore.io/api/${(j:,:)@} }
_gitignoreio_get_command_list() {
- curl -fL https://www.gitignore.io/api/list | tr "," "\n"
+ curl -sfL https://www.gitignore.io/api/list | tr "," "\n"
}
_gitignoreio () {
From 08153ff526dab352a1ddc991ada0076041f22f66 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Fri, 15 Jun 2018 18:55:39 +0200
Subject: [PATCH 141/644] Use https everywhere in the README
---
README.md | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/README.md b/README.md
index 128a07fb5..b3651a99c 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
-Oh My Zsh is an open source, community-driven framework for managing your [zsh](http://www.zsh.org/) configuration.
+Oh My Zsh is an open source, community-driven framework for managing your [zsh](https://www.zsh.org/) configuration.
Sounds boring. Let's try again.
@@ -12,7 +12,7 @@ Once installed, your terminal shell will become the talk of the town _or your mo
Finally, you'll begin to get the sort of attention that you have always felt you deserved. ...or maybe you'll use the time that you're saving to start flossing more often. 😬
-To learn more, visit [ohmyz.sh](http://ohmyz.sh) and follow [@ohmyzsh](https://twitter.com/ohmyzsh) on Twitter.
+To learn more, visit [ohmyz.sh](https://ohmyz.sh) and follow [@ohmyzsh](https://twitter.com/ohmyzsh) on Twitter.
## Getting Started
@@ -21,7 +21,7 @@ To learn more, visit [ohmyz.sh](http://ohmyz.sh) and follow [@ohmyzsh](https://t
__Disclaimer:__ _Oh My Zsh works best on macOS and Linux._
* Unix-like operating system (macOS or Linux)
-* [Zsh](http://www.zsh.org) should be installed (v4.3.9 or more recent). If not pre-installed (`zsh --version` to confirm), check the following instruction here: [Installing ZSH](https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH)
+* [Zsh](https://www.zsh.org) should be installed (v4.3.9 or more recent). If not pre-installed (`zsh --version` to confirm), check the following instruction here: [Installing ZSH](https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH)
* `curl` or `wget` should be installed
* `git` should be installed
@@ -215,7 +215,7 @@ If you want to uninstall `oh-my-zsh`, just run `uninstall_oh_my_zsh` from the co
## Contributing
-I'm far from being a [Zsh](http://www.zsh.org/) expert and suspect there are many ways to improve – if you have ideas on how to make the configuration easier to maintain (and faster), don't hesitate to fork and send pull requests!
+I'm far from being a [Zsh](https://www.zsh.org/) expert and suspect there are many ways to improve – if you have ideas on how to make the configuration easier to maintain (and faster), don't hesitate to fork and send pull requests!
We also need people to test out pull-requests. So take a look through [the open issues](https://github.com/robbyrussell/oh-my-zsh/issues) and help where you can.
@@ -238,7 +238,7 @@ We're on the social media.
## Merchandise
-We have [stickers](https://shop.planetargon.com/products/ohmyzsh-stickers-set-of-3-stickers) and [shirts](http://shop.planetargon.com/products/ohmyzsh-t-shirts) for you to show off your love of Oh My Zsh. Again, this will help you become the talk of the town!
+We have [stickers](https://shop.planetargon.com/products/ohmyzsh-stickers-set-of-3-stickers) and [shirts](https://shop.planetargon.com/products/ohmyzsh-t-shirts) for you to show off your love of Oh My Zsh. Again, this will help you become the talk of the town!
## License
From 4105faf620cd324712568ca9b6c3665979adc698 Mon Sep 17 00:00:00 2001
From: Edwin de Jong
Date: Fri, 15 Jun 2018 21:04:25 +0200
Subject: [PATCH 142/644] Update sbt to add publish-local to commands (#3112)
---
plugins/sbt/_sbt | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/sbt/_sbt b/plugins/sbt/_sbt
index 91372aa72..a601c9b97 100644
--- a/plugins/sbt/_sbt
+++ b/plugins/sbt/_sbt
@@ -17,6 +17,7 @@ _sbt_commands=(
'package-src:produce a source artifact, such as a jar containing sources'
'publish:publish artifacts to a repository'
'publish-local:publish artifacts to the local repository'
+ 'publish-m2:publish artifacts to the local Maven 2 repository'
'run:run a main class'
'run-main:run the main class selected by the first argument'
'test:execute all tests'
From 2647a8ccfd8beebda0d5362fd3ec610dda8d6441 Mon Sep 17 00:00:00 2001
From: Yann VR
Date: Fri, 15 Jun 2018 20:40:31 +0100
Subject: [PATCH 143/644] Meteor-1-2 arguments update (#4538)
Fixes #4280
Fixes #4321
---
plugins/meteor/_meteor | 43 +++++++++++++++++++++++++++++-------------
1 file changed, 30 insertions(+), 13 deletions(-)
diff --git a/plugins/meteor/_meteor b/plugins/meteor/_meteor
index cd7fc304f..69ac7a1b7 100644
--- a/plugins/meteor/_meteor
+++ b/plugins/meteor/_meteor
@@ -13,19 +13,36 @@ _meteor_installed_packages() {
local -a _1st_arguments
_1st_arguments=(
- 'run:[Default] Run this project in local development mode'
- 'create:Create a new project'
- 'update:Upgrade this project to the latest version of Meteor'
- 'add:Add a package to this project'
- 'remove:Remove a package from this project'
- 'list:List available packages'
- 'help:Display Meteor help'
- 'bundle:Pack this project up into a tarball'
- 'mongo:Connect to the Mongo database for the specified site'
- 'deploy:Deploy this project to Meteor'
- 'logs:Show logs for specified site'
- 'reset:Reset the project state. Erases the local database.'
- 'test-packages:Test one or more packages'
+ "run: [default] Run this project in local development mode."
+ "debug: Run the project, but suspend the server process for debugging."
+ "create: Create a new project."
+ "update: Upgrade this project's dependencies to their latest versions."
+ "add: Add a package to this project."
+ "remove: Remove a package from this project."
+ "list: List the packages explicitly used by your project."
+ "add-platform: Add a platform to this project."
+ "remove-platform: Remove a platform from this project."
+ "list-platforms: List the platforms added to your project."
+ "build: Build this project for all platforms."
+ "lint: Build this project and run the linters printing all errors and warnings."
+ "shell: Launch a Node REPL for interactively evaluating server-side code."
+ "mongo: Connect to the Mongo database for the specified site."
+ "reset: Reset the project state. Erases the local database."
+ "deploy: Deploy this project to Meteor."
+ "logs: Show logs for specified site."
+ "authorized: View or change authorized users and organizations for a site."
+ "claim: Claim a site deployed with an old Meteor version."
+ "login: Log in to your Meteor developer account."
+ "logout: Log out of your Meteor developer account."
+ "whoami: Prints the username of your Meteor developer account."
+ "test-packages: Test one or more packages."
+ "admin: Administrative commands."
+ "list-sites: List sites for which you are authorized."
+ "publish-release: Publish a new meteor release to the package server."
+ "publish: Publish a new version of a package to the package server."
+ "publish-for-arch: Builds an already-published package for a new platform."
+ "search: Search through the package server database."
+ "show: Show detailed information about a release or package."
)
local expl
From 125dd32361df63626ff7a3ff2ebc3416d2e3be55 Mon Sep 17 00:00:00 2001
From: Adnan Y
Date: Fri, 10 Apr 2015 16:12:03 -0700
Subject: [PATCH 144/644] meteor: completion updated with more commands
---
plugins/meteor/_meteor | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/meteor/_meteor b/plugins/meteor/_meteor
index 69ac7a1b7..48b9fa4c1 100644
--- a/plugins/meteor/_meteor
+++ b/plugins/meteor/_meteor
@@ -43,6 +43,8 @@ _1st_arguments=(
"publish-for-arch: Builds an already-published package for a new platform."
"search: Search through the package server database."
"show: Show detailed information about a release or package."
+ "install-sdk:Installs SDKs for a platform."
+ "configure-android:Run the Android configuration tool from Meteor’s ADK environment."
)
local expl
From ef1e89b44b1a969d1ad08bf788a860be0c6f0379 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Fri, 15 Jun 2018 23:05:01 +0200
Subject: [PATCH 145/644] meteor: fix formatting and reorganise
---
plugins/meteor/_meteor | 64 +++++++++++++++++++++---------------------
1 file changed, 32 insertions(+), 32 deletions(-)
diff --git a/plugins/meteor/_meteor b/plugins/meteor/_meteor
index 48b9fa4c1..6a15c4bc2 100644
--- a/plugins/meteor/_meteor
+++ b/plugins/meteor/_meteor
@@ -13,38 +13,38 @@ _meteor_installed_packages() {
local -a _1st_arguments
_1st_arguments=(
- "run: [default] Run this project in local development mode."
- "debug: Run the project, but suspend the server process for debugging."
- "create: Create a new project."
- "update: Upgrade this project's dependencies to their latest versions."
- "add: Add a package to this project."
- "remove: Remove a package from this project."
- "list: List the packages explicitly used by your project."
- "add-platform: Add a platform to this project."
- "remove-platform: Remove a platform from this project."
- "list-platforms: List the platforms added to your project."
- "build: Build this project for all platforms."
- "lint: Build this project and run the linters printing all errors and warnings."
- "shell: Launch a Node REPL for interactively evaluating server-side code."
- "mongo: Connect to the Mongo database for the specified site."
- "reset: Reset the project state. Erases the local database."
- "deploy: Deploy this project to Meteor."
- "logs: Show logs for specified site."
- "authorized: View or change authorized users and organizations for a site."
- "claim: Claim a site deployed with an old Meteor version."
- "login: Log in to your Meteor developer account."
- "logout: Log out of your Meteor developer account."
- "whoami: Prints the username of your Meteor developer account."
- "test-packages: Test one or more packages."
- "admin: Administrative commands."
- "list-sites: List sites for which you are authorized."
- "publish-release: Publish a new meteor release to the package server."
- "publish: Publish a new version of a package to the package server."
- "publish-for-arch: Builds an already-published package for a new platform."
- "search: Search through the package server database."
- "show: Show detailed information about a release or package."
+ "add-platform:Add a platform to this project."
+ "add:Add a package to this project."
+ "admin:Administrative commands."
+ "authorized:View or change authorized users and organizations for a site."
+ "build:Build this project for all platforms."
+ "claim:Claim a site deployed with an old Meteor version."
+ "configure-android:Run the Android configuration tool from Meteor's ADK environment."
+ "create:Create a new project."
+ "debug:Run the project, but suspend the server process for debugging."
+ "deploy:Deploy this project to Meteor."
"install-sdk:Installs SDKs for a platform."
- "configure-android:Run the Android configuration tool from Meteor’s ADK environment."
+ "lint:Build this project and run the linters printing all errors and warnings."
+ "list-platforms:List the platforms added to your project."
+ "list-sites:List sites for which you are authorized."
+ "list:List the packages explicitly used by your project."
+ "login:Log in to your Meteor developer account."
+ "logout:Log out of your Meteor developer account."
+ "logs:Show logs for specified site."
+ "mongo:Connect to the Mongo database for the specified site."
+ "publish-for-arch:Builds an already-published package for a new platform."
+ "publish-release:Publish a new meteor release to the package server."
+ "publish:Publish a new version of a package to the package server."
+ "remove-platform:Remove a platform from this project."
+ "remove:Remove a package from this project."
+ "reset:Reset the project state. Erases the local database."
+ "run:[default] Run this project in local development mode."
+ "search:Search through the package server database."
+ "shell:Launch a Node REPL for interactively evaluating server-side code."
+ "show:Show detailed information about a release or package."
+ "test-packages:Test one or more packages."
+ "update:Upgrade this project's dependencies to their latest versions."
+ "whoami:Prints the username of your Meteor developer account."
)
local expl
@@ -64,4 +64,4 @@ case "$words[2]" in
add)
_meteor_all_packages
_wanted packages expl 'all packages' compadd -a packages ;;
-esac
\ No newline at end of file
+esac
From de8299d6c4f50bc40286a05cd7e802b6bffe41f0 Mon Sep 17 00:00:00 2001
From: Chao Du
Date: Mon, 2 Nov 2015 14:29:37 +0800
Subject: [PATCH 146/644] Fixed Issue #4550: Move ~/.zsh-update file to
$ZSH_CACHE_DIR
---
oh-my-zsh.sh | 14 +++++++-------
tools/check_for_upgrade.sh | 8 ++++----
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
index 72527362f..ca505d1ba 100644
--- a/oh-my-zsh.sh
+++ b/oh-my-zsh.sh
@@ -1,6 +1,12 @@
+# Set ZSH_CACHE_DIR to the path where cache files should be created
+# or else we will use the default cache/
+if [[ -z "$ZSH_CACHE_DIR" ]]; then
+ ZSH_CACHE_DIR="$ZSH/cache"
+fi
+
# Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
- env ZSH=$ZSH DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh -f $ZSH/tools/check_for_upgrade.sh
+ env ZSH=$ZSH ZSH_CACHE_DIR=$ZSH_CACHE_DIR DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh -f $ZSH/tools/check_for_upgrade.sh
fi
# Initializes Oh My Zsh
@@ -17,12 +23,6 @@ if [[ -z "$ZSH_CUSTOM" ]]; then
ZSH_CUSTOM="$ZSH/custom"
fi
-# Set ZSH_CACHE_DIR to the path where cache files should be created
-# or else we will use the default cache/
-if [[ -z "$ZSH_CACHE_DIR" ]]; then
- ZSH_CACHE_DIR="$ZSH/cache"
-fi
-
# Load all of the config files in ~/oh-my-zsh that end in .zsh
# TIP: Add files you don't want in git to .gitignore
diff --git a/tools/check_for_upgrade.sh b/tools/check_for_upgrade.sh
index b42b87750..05b31e8d4 100644
--- a/tools/check_for_upgrade.sh
+++ b/tools/check_for_upgrade.sh
@@ -7,7 +7,7 @@ function _current_epoch() {
}
function _update_zsh_update() {
- echo "LAST_EPOCH=$(_current_epoch)" >! ~/.zsh-update
+ echo "LAST_EPOCH=$(_current_epoch)" >! ${ZSH_CACHE_DIR}/.zsh-update
}
function _upgrade_zsh() {
@@ -30,11 +30,11 @@ fi
whence git >/dev/null || return 0
if mkdir "$ZSH/log/update.lock" 2>/dev/null; then
- if [ -f ~/.zsh-update ]; then
- . ~/.zsh-update
+ if [ -f ${ZSH_CACHE_DIR}/.zsh-update ]; then
+ . ${ZSH_CACHE_DIR}/.zsh-update
if [[ -z "$LAST_EPOCH" ]]; then
- _update_zsh_update && return 0;
+ _update_zsh_update && return 0
fi
epoch_diff=$(($(_current_epoch) - $LAST_EPOCH))
From e96a7b728a9c15f5615f4e41a79a5f0fe2b97712 Mon Sep 17 00:00:00 2001
From: Chao Du
Date: Tue, 29 Dec 2015 11:17:02 +0800
Subject: [PATCH 147/644] migrate .zsh-update file
---
oh-my-zsh.sh | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/oh-my-zsh.sh b/oh-my-zsh.sh
index ca505d1ba..d7c68d35c 100644
--- a/oh-my-zsh.sh
+++ b/oh-my-zsh.sh
@@ -4,6 +4,11 @@ if [[ -z "$ZSH_CACHE_DIR" ]]; then
ZSH_CACHE_DIR="$ZSH/cache"
fi
+# Migrate .zsh-update file to $ZSH_CACHE_DIR
+if [ -f ~/.zsh-update ] && [ ! -f ${ZSH_CACHE_DIR}/.zsh-update ]; then
+ mv ~/.zsh-update ${ZSH_CACHE_DIR}/.zsh-update
+fi
+
# Check for updates on initial load...
if [ "$DISABLE_AUTO_UPDATE" != "true" ]; then
env ZSH=$ZSH ZSH_CACHE_DIR=$ZSH_CACHE_DIR DISABLE_UPDATE_PROMPT=$DISABLE_UPDATE_PROMPT zsh -f $ZSH/tools/check_for_upgrade.sh
From f258bcba8d93065ade5ea4000afa5e60e84aae76 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Przemys=C5=82aw=20W=C5=82odek?=
Date: Sun, 17 Jun 2018 00:03:14 +0200
Subject: [PATCH 148/644] Fix yarn alias that conflicts with yeoman cli (#6453)
Yeoman cli alias is 'yo' so 'yarn outdated' can't be aliased to 'yo'.
See: http://yeoman.io/
---
plugins/yarn/yarn.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/yarn/yarn.plugin.zsh b/plugins/yarn/yarn.plugin.zsh
index 5fa512377..939820edb 100644
--- a/plugins/yarn/yarn.plugin.zsh
+++ b/plugins/yarn/yarn.plugin.zsh
@@ -4,7 +4,7 @@ alias y="yarn "
alias ya="yarn add"
alias ycc="yarn cache clean"
alias yh="yarn help"
-alias yo="yarn outdated"
+alias yout="yarn outdated"
alias yui="yarn upgrade-interactive"
_yarn ()
From c99844d84891076dceb5638bd6f4ad1599358cea Mon Sep 17 00:00:00 2001
From: kang
Date: Sun, 17 Jun 2018 06:07:03 +0800
Subject: [PATCH 149/644] adb: fix `adb -s` device completion (#6489)
---
plugins/adb/_adb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/adb/_adb b/plugins/adb/_adb
index 8cbf6593c..e3c20d751 100644
--- a/plugins/adb/_adb
+++ b/plugins/adb/_adb
@@ -48,8 +48,8 @@ _arguments \
case "$state" in
specify_device)
- _values 'devices' $(adb devices -l|awk 'NR>1&& $1 ~ /^[a-zA-Z0-9].*$/ \
- {printf "%s[%s] ",$1,$6 }')
+ _values -C 'devices' ${$(adb devices -l|awk 'NR>1&& $1 \
+ {sub(/ +/," ",$0);gsub(":","\\:",$1); printf "%s[%s] ",$1, $NF}'):-""}
return
;;
esac
From b0a149076fc39ff2707279c2246744378643c0d5 Mon Sep 17 00:00:00 2001
From: Ben Klein
Date: Sat, 16 Jun 2018 20:35:41 -0400
Subject: [PATCH 150/644] Allow arguments to `d` to be passed to dirs
Replace the alias with a function. Call `dirs` if arguments are given to `d`.
---
lib/directories.zsh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/lib/directories.zsh b/lib/directories.zsh
index 14064b86f..355c442d2 100644
--- a/lib/directories.zsh
+++ b/lib/directories.zsh
@@ -21,7 +21,14 @@ alias 9='cd -9'
alias md='mkdir -p'
alias rd=rmdir
-alias d='dirs -v | head -10'
+function d () {
+ if [[ -n $1 ]]; then
+ dirs "$@"
+ else
+ dirs -v | head -10
+ fi
+}
+compdef _dirs d
# List directory contents
alias lsa='ls -lah'
From 48e2c828ef3d60750d157f388830d639c9b2e0bc Mon Sep 17 00:00:00 2001
From: Henry Bley-Vroman
Date: Mon, 18 Jun 2018 15:04:42 -0400
Subject: [PATCH 151/644] Thefuck: homebrew install documentation and thefuck
repo link (#5940)
* Thefuck: homebrew install documentation and thefuck repo link
* thefuck: reformat error message
---
plugins/thefuck/thefuck.plugin.zsh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/plugins/thefuck/thefuck.plugin.zsh b/plugins/thefuck/thefuck.plugin.zsh
index 765e2b9a5..ac88e67de 100644
--- a/plugins/thefuck/thefuck.plugin.zsh
+++ b/plugins/thefuck/thefuck.plugin.zsh
@@ -1,6 +1,7 @@
if [[ -z $commands[thefuck] ]]; then
- echo 'thefuck is not installed, you should "pip install thefuck" first'
- return -1
+ echo 'thefuck is not installed, you should "pip install thefuck" or "brew install thefuck" first.'
+ echo 'See https://github.com/nvbn/thefuck#installation'
+ return 1
fi
# Register alias
From 0d80e9b4ee4925da24f5c2ef9082f6660d983113 Mon Sep 17 00:00:00 2001
From: Elton Chen-Yu Ho
Date: Tue, 19 Jun 2018 04:12:07 +0800
Subject: [PATCH 152/644] Fix zshrc alias when $EDITOR uses parameters (#6146)
According to #5003
if one exports EDITOR with parameters, say:
`export EDITOR='subl -w'`
running command:
`zshrc`
will result in:
`zsh: command not found: subl -w`
This can be fixed by updating common-aliases.plugin.zsh line 16 with:
`alias zshrc='${=EDITOR} ~/.zshrc' # Quick access to the ~/.zshrc file`
Fixes #5003
---
plugins/common-aliases/common-aliases.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/common-aliases/common-aliases.plugin.zsh b/plugins/common-aliases/common-aliases.plugin.zsh
index 742798f27..6a7daf845 100644
--- a/plugins/common-aliases/common-aliases.plugin.zsh
+++ b/plugins/common-aliases/common-aliases.plugin.zsh
@@ -13,7 +13,7 @@ alias lS='ls -1FSsh'
alias lart='ls -1Fcart'
alias lrt='ls -1Fcrt'
-alias zshrc='$EDITOR ~/.zshrc' # Quick access to the ~/.zshrc file
+alias zshrc='${=EDITOR} ~/.zshrc' # Quick access to the ~/.zshrc file
alias grep='grep --color'
alias sgrep='grep -R -n -H -C 5 --exclude-dir={.git,.svn,CVS} '
From 6af58f492f8c5219e27f74cf6378e92834d1b3e5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Mon, 18 Jun 2018 22:47:51 +0200
Subject: [PATCH 153/644] common-aliases: delete unexistant command
`display_info` doesn't exist in any known platform
Fixes #5208
---
plugins/common-aliases/common-aliases.plugin.zsh | 2 --
1 file changed, 2 deletions(-)
diff --git a/plugins/common-aliases/common-aliases.plugin.zsh b/plugins/common-aliases/common-aliases.plugin.zsh
index 6a7daf845..785a09c63 100644
--- a/plugins/common-aliases/common-aliases.plugin.zsh
+++ b/plugins/common-aliases/common-aliases.plugin.zsh
@@ -44,8 +44,6 @@ alias p='ps -f'
alias sortnr='sort -n -r'
alias unexport='unset'
-alias whereami=display_info
-
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
From a0b8eab5f0cd339082c1fe33d7bcfc34e38918b5 Mon Sep 17 00:00:00 2001
From: doofin <8177dph@gmail.com>
Date: Tue, 19 Jun 2018 23:38:10 +0800
Subject: [PATCH 154/644] Update sbt.plugin.zsh (#6930)
---
plugins/sbt/sbt.plugin.zsh | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/sbt/sbt.plugin.zsh b/plugins/sbt/sbt.plugin.zsh
index 15acfec4f..8fabf0add 100644
--- a/plugins/sbt/sbt.plugin.zsh
+++ b/plugins/sbt/sbt.plugin.zsh
@@ -7,6 +7,7 @@
# aliases - mnemonic: prefix is 'sb'
alias sbc='sbt compile'
+alias sbcc='sbt clean compile'
alias sbco='sbt console'
alias sbcq='sbt console-quick'
alias sbcl='sbt clean'
From 6c1dab232033b79534d4583a4d6f40340bdf334c Mon Sep 17 00:00:00 2001
From: Ruben Di Battista
Date: Wed, 20 Jun 2018 23:27:38 +0200
Subject: [PATCH 155/644] Fix autojump sourcing on OSX with Macports (#4801)
* Fix autojump sourcing on OSX with Macports
The last version of autojump available on Macports does not have
anymore different shell scripts (.sh, .zsh, .bash ...) to be sourced
but just one autojump.sh that takes care of that located at
/opt/local/etc/profile.d/autojump.sh
fix # 4625
* Fix bug with macports autojump on OSX.
---
plugins/autojump/autojump.plugin.zsh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/autojump/autojump.plugin.zsh b/plugins/autojump/autojump.plugin.zsh
index 7339fad9e..c0af67631 100644
--- a/plugins/autojump/autojump.plugin.zsh
+++ b/plugins/autojump/autojump.plugin.zsh
@@ -15,8 +15,8 @@ if [ $commands[autojump] ]; then # check if autojump is installed
. /etc/profile.d/autojump.sh
elif [ -f /usr/local/share/autojump/autojump.zsh ]; then # freebsd installation
. /usr/local/share/autojump/autojump.zsh
- elif [ -f /opt/local/etc/profile.d/autojump.zsh ]; then # mac os x with ports
- . /opt/local/etc/profile.d/autojump.zsh
+ elif [ -f /opt/local/etc/profile.d/autojump.sh ]; then # mac os x with ports
+ . /opt/local/etc/profile.d/autojump.sh
elif [ $commands[brew] -a -f `brew --prefix`/etc/autojump.sh ]; then # mac os x with brew
. `brew --prefix`/etc/autojump.sh
fi
From 547a6ce260362b06e86a9c366dc29984c0954124 Mon Sep 17 00:00:00 2001
From: Jeremy Jones
Date: Sat, 23 Jun 2018 23:52:53 -0500
Subject: [PATCH 156/644] fix path completion issue with go run subcommand
(#6929)
---
plugins/golang/golang.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/golang/golang.plugin.zsh b/plugins/golang/golang.plugin.zsh
index d9d450690..d5c78ce6c 100644
--- a/plugins/golang/golang.plugin.zsh
+++ b/plugins/golang/golang.plugin.zsh
@@ -135,7 +135,7 @@ __go_tool_complete() {
run)
_arguments -s -w : \
${build_flags[@]} \
- '*:file:_path_files -g "*.go"'
+ '*:file:_files -g "*.go"'
;;
tool)
if (( CURRENT == 3 )); then
From 787c6899d4db04b3e6cef9a02c6a2ff3d896ece3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Fri, 29 Jun 2018 17:50:32 +0200
Subject: [PATCH 157/644] rand-quote: update URL
Fixes #6949
---
plugins/rand-quote/rand-quote.plugin.zsh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/rand-quote/rand-quote.plugin.zsh b/plugins/rand-quote/rand-quote.plugin.zsh
index 8f345d9aa..a64e9b4ed 100644
--- a/plugins/rand-quote/rand-quote.plugin.zsh
+++ b/plugins/rand-quote/rand-quote.plugin.zsh
@@ -1,4 +1,4 @@
-# Get a random quote fron the site http://www.quotationspage.com/random.php3
+# Get a random quote fron the site http://www.quotationspage.com/random.php
# Created by Eduardo San Martin Morote aka Posva
# http://posva.github.io
# Sun Jun 09 10:59:36 CEST 2013
@@ -13,7 +13,7 @@ END_COLOR="\e[m"
if [[ -x `which curl` ]]; then
function quote()
{
- Q=$(curl -s --connect-timeout 2 "http://www.quotationspage.com/random.php3" | iconv -c -f ISO-8859-1 -t UTF-8 | grep -m 1 "dt ")
+ Q=$(curl -s --connect-timeout 2 "http://www.quotationspage.com/random.php" | iconv -c -f ISO-8859-1 -t UTF-8 | grep -m 1 "dt ")
TXT=$(echo "$Q" | sed -e 's/<\/dt>.*//g' -e 's/.*html//g' -e 's/^[^a-zA-Z]*//' -e 's/<\/a..*$//g')
W=$(echo "$Q" | sed -e 's/.*\/quotes\///g' -e 's/<.*//g' -e 's/.*">//g')
if [ "$W" -a "$TXT" ]; then
From 1e255a1a8d19f713482c7f2caa639733e8f86b39 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Fri, 29 Jun 2018 17:55:55 +0200
Subject: [PATCH 158/644] rand-quote: add README
---
plugins/rand-quote/README.md | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 plugins/rand-quote/README.md
diff --git a/plugins/rand-quote/README.md b/plugins/rand-quote/README.md
new file mode 100644
index 000000000..c387aaa22
--- /dev/null
+++ b/plugins/rand-quote/README.md
@@ -0,0 +1,15 @@
+# rand-quote plugin
+
+Displays a random quote taken from [quotationspage.com](http://www.quotationspage.com/random.php)
+
+Created by [Eduardo San Martin Morote, aka Posva](https://posva.github.io)
+
+## Usage
+
+Add the plugin to the plugins array in your zshrc file and restart zsh:
+
+```zsh
+plugins=(... rand-quote)
+```
+
+Then, run `quote` to get a new random quote.
From 76bfa7dd2a5422569c48ceb5429fb31adf1f23c2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Fri, 29 Jun 2018 18:16:10 +0200
Subject: [PATCH 159/644] rand-quote: refactor rand-quote function
- Make function variables local
- Use prompt color sequences
- Use guard clause to check for curl
- Improved syntax
---
plugins/rand-quote/rand-quote.plugin.zsh | 36 ++++++++----------------
1 file changed, 12 insertions(+), 24 deletions(-)
diff --git a/plugins/rand-quote/rand-quote.plugin.zsh b/plugins/rand-quote/rand-quote.plugin.zsh
index a64e9b4ed..371b997d3 100644
--- a/plugins/rand-quote/rand-quote.plugin.zsh
+++ b/plugins/rand-quote/rand-quote.plugin.zsh
@@ -1,26 +1,14 @@
-# Get a random quote fron the site http://www.quotationspage.com/random.php
-# Created by Eduardo San Martin Morote aka Posva
-# http://posva.github.io
-# Sun Jun 09 10:59:36 CEST 2013
-# Don't remove this header, thank you
-# Usage: quote
-
-WHO_COLOR="\e[0;33m"
-TEXT_COLOR="\e[0;35m"
-COLON_COLOR="\e[0;35m"
-END_COLOR="\e[m"
-
-if [[ -x `which curl` ]]; then
- function quote()
- {
- Q=$(curl -s --connect-timeout 2 "http://www.quotationspage.com/random.php" | iconv -c -f ISO-8859-1 -t UTF-8 | grep -m 1 "dt ")
- TXT=$(echo "$Q" | sed -e 's/<\/dt>.*//g' -e 's/.*html//g' -e 's/^[^a-zA-Z]*//' -e 's/<\/a..*$//g')
- W=$(echo "$Q" | sed -e 's/.*\/quotes\///g' -e 's/<.*//g' -e 's/.*">//g')
- if [ "$W" -a "$TXT" ]; then
- echo "${WHO_COLOR}${W}${COLON_COLOR}: ${TEXT_COLOR}“${TXT}”${END_COLOR}"
- fi
- }
- #quote
-else
+if ! (( $+commands[curl] )); then
echo "rand-quote plugin needs curl to work" >&2
+ return
fi
+
+function quote {
+ emulate -L zsh
+ Q=$(curl -s --connect-timeout 2 "http://www.quotationspage.com/random.php" | iconv -c -f ISO-8859-1 -t UTF-8 | grep -m 1 "dt ")
+
+ TXT=$(echo "$Q" | sed -e 's/<\/dt>.*//g' -e 's/.*html//g' -e 's/^[^a-zA-Z]*//' -e 's/<\/a..*$//g')
+ WHO=$(echo "$Q" | sed -e 's/.*\/quotes\///g' -e 's/<.*//g' -e 's/.*">//g')
+
+ [[ -n "$WHO" && -n "$TXT" ]] && print -P "%F{3}${WHO}%f: “%F{5}${TXT}%f”"
+}
From 0639582f73be6aec42d856a242ad1783eb05f973 Mon Sep 17 00:00:00 2001
From: Sascha Rudolph
Date: Fri, 29 Jun 2018 18:22:46 +0200
Subject: [PATCH 160/644] 6098 - add support for apt in debian plugin (#6122)
Signed-off-by: Sascha Rudolph
---
plugins/debian/debian.plugin.zsh | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh
index 19966b6ac..42690e53e 100644
--- a/plugins/debian/debian.plugin.zsh
+++ b/plugins/debian/debian.plugin.zsh
@@ -5,9 +5,12 @@
#
# Debian-related zsh aliases and functions for zsh
-# Use aptitude if installed, or apt-get if not.
+# Use apt or aptitude if installed, fallback is apt-get
# You can just set apt_pref='apt-get' to override it.
-if [[ -e $( which -p aptitude 2>&1 ) ]]; then
+if [[ -e $( which -p apt 2>&1 ) ]]; then
+ apt_pref='apt'
+ apt_upgr='upgrade'
+elif [[ -e $( which -p aptitude 2>&1 ) ]]; then
apt_pref='aptitude'
apt_upgr='safe-upgrade'
else
From 12086593a432d754d9c28bf6a66a1196e79877a3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Fri, 29 Jun 2018 20:20:26 +0200
Subject: [PATCH 161/644] open_command: simplify code
---
lib/functions.zsh | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/lib/functions.zsh b/lib/functions.zsh
index 7410ae645..f448dbce8 100644
--- a/lib/functions.zsh
+++ b/lib/functions.zsh
@@ -16,9 +16,6 @@ function take() {
}
function open_command() {
- emulate -L zsh
- setopt shwordsplit
-
local open_cmd
# define the open command
@@ -36,9 +33,9 @@ function open_command() {
# don't use nohup on OSX
if [[ "$OSTYPE" == darwin* ]]; then
- $open_cmd "$@" &>/dev/null
+ ${=open_cmd} "$@" &>/dev/null
else
- nohup $open_cmd "$@" &>/dev/null
+ nohup ${=open_cmd} "$@" &>/dev/null
fi
}
From f898ada8e3d25c7d1ea309b487711a4e0a2c07b6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Fri, 29 Jun 2018 20:20:56 +0200
Subject: [PATCH 162/644] open_command: fix and improve command for WSL
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
- Add double quotes to command so that the next argument isn't
interpreted as the title for the start command.
- If the first argument is a valid path, convert it to Windows path
notation. If `wslpath` fails—because it's a path from inside WSL,
which cannot be converted to Windows path notation— fail with an
error code.
This last circumstance will show an error like so:
wslpath: path: Result not representable
---
lib/functions.zsh | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/lib/functions.zsh b/lib/functions.zsh
index f448dbce8..dd8311611 100644
--- a/lib/functions.zsh
+++ b/lib/functions.zsh
@@ -22,9 +22,10 @@ function open_command() {
case "$OSTYPE" in
darwin*) open_cmd='open' ;;
cygwin*) open_cmd='cygstart' ;;
- linux*) [[ $(uname -a) =~ "Microsoft" ]] && \
- open_cmd='cmd.exe /c start' || \
- open_cmd='xdg-open' ;;
+ linux*) ! [[ $(uname -a) =~ "Microsoft" ]] && open_cmd='xdg-open' || {
+ open_cmd='cmd.exe /c start ""'
+ [[ -e "$1" ]] && { 1="$(wslpath -w "${1:a}")" || return 1 }
+ } ;;
msys*) open_cmd='start ""' ;;
*) echo "Platform $OSTYPE not supported"
return 1
From b6ca933a02ed780c8ed776e74b141e45a5389f98 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michal=20Juri=C5=A1?=
Date: Sat, 30 Jun 2018 22:25:53 +0200
Subject: [PATCH 163/644] Add alias for 'git rebase develop' (#6006)
---
plugins/git/git.plugin.zsh | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index 413d780e1..04ff22164 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -208,6 +208,7 @@ alias gra='git remote add'
alias grb='git rebase'
alias grba='git rebase --abort'
alias grbc='git rebase --continue'
+alias grbd='git rebase develop'
alias grbi='git rebase -i'
alias grbm='git rebase master'
alias grbs='git rebase --skip'
From b09890a3e42b82810c6a2c79b3cf427fbf136a65 Mon Sep 17 00:00:00 2001
From: Justin Aiken <60tonangel@gmail.com>
Date: Sat, 30 Jun 2018 14:45:20 -0600
Subject: [PATCH 164/644] Added more levels of zeus compeletion (#2058)
---
plugins/zeus/_zeus | 116 +++++++++++++++++++++++++++++++++++----------
1 file changed, 90 insertions(+), 26 deletions(-)
diff --git a/plugins/zeus/_zeus b/plugins/zeus/_zeus
index 5a13bd9ec..78f0c545e 100644
--- a/plugins/zeus/_zeus
+++ b/plugins/zeus/_zeus
@@ -2,33 +2,97 @@
#autoload
# in order to make this work, you will need to have the gem zeus installed
-
-# zeus zsh completion, based on adb completion
+# zeus zsh completion
local -a _1st_arguments
-_1st_arguments=(
-'console:Lets you interact with your Rails application from the command line. (alias = c)'
-'cucumber:Runs cucumber.'
-'dbconsole:Figures out which database you are using and drops you into whichever command line interface.'
-'destroy:Figures out what generate did, and undoes it. (alias = d)'
-'generate:Uses templates to create a whole lot of things. (alias = g)'
-'rake:Execute rake tasks.'
-'runner:Runs Ruby code in the context of Rails non-interactively. (alias = r)'
-'server:Launches a small web server named WEBrick which comes bundled with Ruby. (alias = s)'
-'start:Preloads the zeus environment'
-'test:Runs RSpec tests. (alias = rspec, testrb)'
-'version:Shows the version number.'
-)
-
-local expl
-local -a pkgs installed_pkgs
-
-_arguments \
- '*:: :->subcmds' && return 0
-
-if (( CURRENT == 1 )); then
- _describe -t commands "zeus subcommand" _1st_arguments
- return
+if [[ -e .zeus.sock ]]; then
+ _1st_arguments=(
+ 'console:Lets you interact with your Rails application from the command line. (alias = c)'
+ 'cucumber:Runs cucumber.'
+ 'dbconsole:Figures out which database you are using and drops you into whichever command line interface.'
+ 'destroy:Figures out what generate did, and undoes it. (alias = d)'
+ 'generate:Uses templates to create a whole lot of things. (alias = g)'
+ 'rake:Execute rake tasks.'
+ 'runner:Runs Ruby code in the context of Rails non-interactively. (alias = r)'
+ 'server:Launches a small web server named WEBrick which comes bundled with Ruby. (alias = s)'
+ 'test:Runs RSpec tests. (alias = rspec, testrb)'
+ 'version:Shows the version number.'
+ )
+else
+ _1st_arguments=(
+ 'start:Preloads the zeus environment'
+ 'init:Generate a zeus.json file'
+ )
fi
-_files
+_rails_generate_arguments() {
+ generate_arguments=(
+ controller
+ generator
+ helper
+ integration_test
+ mailer
+ migration
+ model
+ observer
+ performance_test
+ plugin
+ resource
+ scaffold
+ scaffold_controller
+ session_migration
+ stylesheets
+ )
+}
+
+_rake_does_task_list_need_generating () {
+ if [ ! -f .rake_tasks ]; then return 0;
+ else
+ accurate=$(stat -f%m .rake_tasks)
+ changed=$(stat -f%m Rakefile)
+ return $(expr $accurate '>=' $changed)
+ fi
+}
+
+_zrake ()
+{
+ local expl
+ declare -a tasks
+
+ if [ -f Rakefile ]; then
+ if _rake_does_task_list_need_generating; then
+ echo "\nGenerating .rake_tasks..." > /dev/stderr
+ rake --silent --tasks | cut -d " " -f 2 > .rake_tasks
+ fi
+ tasks=(`cat .rake_tasks`)
+ _wanted tasks expl 'rake' compadd $tasks
+ fi
+}
+
+local expl
+local curcontext="$curcontext" state line
+typeset -A opt_args
+
+_arguments -C \
+ ':command:->command' \
+ '*::options:->options'
+
+
+case $state in
+ (command)
+ _describe -t commands "zeus subcommand" _1st_arguments
+ return
+ ;;
+
+ (options)
+ case $line[1] in
+ (rake)
+ _zrake
+ ;;
+ (generate|g|destroy|d)
+ _rails_generate_arguments
+ _wanted generate_arguments expl 'all generate' compadd -a generate_arguments
+ ;;
+ esac
+ ;;
+esac
From 302270174d8173be35e8c1b464a0d9e731650c15 Mon Sep 17 00:00:00 2001
From: Michael Stucki
Date: Sun, 1 Jul 2018 18:20:34 +0200
Subject: [PATCH 165/644] Use existing ssh-agent when invoking a sudo shell
(#3891)
When invoking a shell as root using ```sudo -s```, the ssh-agent plugin
starts a new agent although it already exists.
The problem boils down to a check if ssh-agent is running using
```ps x```. If that is extended to ```ps ax``` for root, then the
existing ssh-agent will still work.
---
plugins/ssh-agent/ssh-agent.plugin.zsh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/plugins/ssh-agent/ssh-agent.plugin.zsh b/plugins/ssh-agent/ssh-agent.plugin.zsh
index 20f97c6f1..fe4946c6d 100644
--- a/plugins/ssh-agent/ssh-agent.plugin.zsh
+++ b/plugins/ssh-agent/ssh-agent.plugin.zsh
@@ -30,7 +30,12 @@ if [[ $_agent_forwarding == "yes" && -n "$SSH_AUTH_SOCK" ]]; then
elif [[ -f "$_ssh_env_cache" ]]; then
# Source SSH settings, if applicable
. $_ssh_env_cache > /dev/null
- ps x | grep ssh-agent | grep -q $SSH_AGENT_PID || {
+ if [[ $USER == "root" ]]; then
+ FILTER="ax"
+ else
+ FILTER="x"
+ fi
+ ps $FILTER | grep ssh-agent | grep -q $SSH_AGENT_PID || {
_start_agent
}
else
From 8f95637e6772a1156a29d9c6a9c21ea8d7316a12 Mon Sep 17 00:00:00 2001
From: Joel Kuzmarski
Date: Sun, 1 Jul 2018 11:39:30 -0500
Subject: [PATCH 166/644] Login shell after install (#5314)
Otherwise these files are not sourced:
1. /etc/zprofile
2. ~/.zprofile
3. /etc/zlogin
4. ~/.zlogin
5. ~/.zlogout
6. /etc/zlogout
---
tools/install.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/install.sh b/tools/install.sh
index b815a9c81..0cc020053 100755
--- a/tools/install.sh
+++ b/tools/install.sh
@@ -108,7 +108,7 @@ main() {
echo 'p.p.s. Get stickers and t-shirts at https://shop.planetargon.com.'
echo ''
printf "${NORMAL}"
- env zsh
+ env zsh -l
}
main
From 71e4a166cfd6c2cbd3b8ef7b48629c8cc30e10d2 Mon Sep 17 00:00:00 2001
From: Jonathen Russell
Date: Mon, 2 Jul 2018 03:15:54 +1000
Subject: [PATCH 167/644] simple theme: indication of privileges (#3728)
I found this quite annoying not being in this theme after switching from gentoo-theme, it's helpful and it doesn't detract from simplicity.
---
themes/simple.zsh-theme | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/themes/simple.zsh-theme b/themes/simple.zsh-theme
index a88d9d72a..8d0070ba7 100644
--- a/themes/simple.zsh-theme
+++ b/themes/simple.zsh-theme
@@ -1,4 +1,4 @@
-PROMPT='%{$fg[green]%}%~%{$fg_bold[blue]%}$(git_prompt_info)%{$reset_color%} '
+PROMPT='%(!.%{$fg[red]%}.%{$fg[green]%})%~%{$fg_bold[blue]%}$(git_prompt_info)%{$reset_color%} '
ZSH_THEME_GIT_PROMPT_PREFIX="("
ZSH_THEME_GIT_PROMPT_SUFFIX=")"
From 4aaafc0fe811f5be85b8c7b3e5db61d030a2d857 Mon Sep 17 00:00:00 2001
From: Hosmel Quintana
Date: Sun, 1 Jul 2018 11:39:44 -0600
Subject: [PATCH 168/644] Add Homestead plugin (#3712)
---
plugins/homestead/homestead.plugin.zsh | 10 ++++++++++
1 file changed, 10 insertions(+)
create mode 100644 plugins/homestead/homestead.plugin.zsh
diff --git a/plugins/homestead/homestead.plugin.zsh b/plugins/homestead/homestead.plugin.zsh
new file mode 100644
index 000000000..cdbc564e4
--- /dev/null
+++ b/plugins/homestead/homestead.plugin.zsh
@@ -0,0 +1,10 @@
+# Homestead basic command completion
+_homestead_get_command_list () {
+ homestead --no-ansi | sed "1,/Available commands/d" | awk '/^ +[a-z]+/ { print $1 }'
+}
+
+_homestead () {
+ compadd `_homestead_get_command_list`
+}
+
+compdef _homestead homestead
From 2de926aa109181907def20c21f28d8a5e32b9d85 Mon Sep 17 00:00:00 2001
From: Thomas Kriechbaumer
Date: Sun, 1 Jul 2018 20:00:09 +0200
Subject: [PATCH 169/644] add ufw completion script (#3835)
---
plugins/ufw/_ufw | 117 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 117 insertions(+)
create mode 100644 plugins/ufw/_ufw
diff --git a/plugins/ufw/_ufw b/plugins/ufw/_ufw
new file mode 100644
index 000000000..08f871f35
--- /dev/null
+++ b/plugins/ufw/_ufw
@@ -0,0 +1,117 @@
+#compdef ufw
+#autoload
+
+typeset -A opt_args
+
+function _ufw_delete_rules {
+ if ufw status &> /dev/null ; then
+ ufw status numbered \
+ | perl -n -e'/\[ +(\d+)\] +([^ ].+)/ && print "\"$1\[$2\]\" "'
+ fi
+}
+
+function _ufw_app_profiles {
+ grep -rhoP "(?<=\[)[^\]]+" /etc/ufw/applications.d/ \
+ | awk '{ print "\""$0"\""}' \
+ | tr '\n' ' '
+}
+
+local -a _1st_arguments
+_1st_arguments=(
+ 'allow:add allow rule'
+ 'app:Application profile commands'
+ 'default:set default policy'
+ 'delete:delete RULE'
+ 'deny:add deny rule'
+ 'disable:disables the firewall'
+ 'enable:enables the firewall'
+ 'insert:insert RULE at NUM'
+ 'limit:add limit rule'
+ 'logging:set logging to LEVEL'
+ 'reject:add reject rule'
+ 'reload:reloads firewall'
+ 'reset:reset firewall'
+ 'show:show firewall report'
+ 'status:show firewall status'
+ 'version:display version information'
+)
+
+local context state line curcontext="$curcontext"
+
+_arguments -C \
+ '(--dry-run)--dry-run[dry run]' \
+ '1:: :->cmds' \
+ '2:: :->subcmds' \
+ '3:: :->subsubcmds' \
+&& return 0
+
+echo "DEBUG: $(date)| $state | $line[1] | $line| $word[1]| $word| $CURRENT|" >> log.log
+
+local rules
+
+case "$state" in
+ (cmds)
+ _describe -t commands "ufw commands" _1st_arguments
+ return 0
+ ;;
+ (subcmds)
+ case "$line[1]" in
+ (app)
+ _values 'app' \
+ 'list[list application profiles]' \
+ 'info[show information on PROFILE]' \
+ 'update[update PROFILE]' \
+ 'default[set default application policy]' \
+ && ret=0
+ ;;
+ (status)
+ _values 'status' \
+ 'numbered[show firewall status as numbered list of RULES]' \
+ 'verbose[show verbose firewall status]' \
+ && ret=0
+ ;;
+ (logging)
+ _values 'logging' \
+ 'on' 'off' 'low' 'medium' 'high' 'full' \
+ && ret=0
+ ;;
+ (default)
+ _values 'default' \
+ 'allow' 'deny' 'reject' \
+ && ret=0
+ ;;
+ (show)
+ _values 'show' \
+ 'raw' 'builtins' 'before-rules' 'user-rules' 'after-rules' 'logging-rules' 'listening' 'added' \
+ && ret=0
+ ;;
+ (delete)
+ rules="$(_ufw_delete_rules)"
+ if [[ -n "$rules" ]] ; then
+ _values 'delete' \
+ ${(Q)${(z)"$(_ufw_delete_rules)"}} \
+ && ret=0
+ fi
+ ;;
+ esac
+ ;;
+ (subsubcmds)
+ case "$line[1]" in
+ (app)
+ case "$line[2]" in
+ (info|update)
+ _values 'profiles' \
+ ${(Q)${(z)"$(_ufw_app_profiles)"}} \
+ && ret=0
+ ;;
+ esac
+ ;;
+ (default)
+ _values 'default-direction' \
+ 'incoming' 'outgoing' \
+ && ret=0
+ ;;
+ esac
+esac
+
+return
From 78e7ec2186201a941f47d2f1f7a986bae3828e59 Mon Sep 17 00:00:00 2001
From: Shadab Zafar
Date: Sun, 1 Jul 2018 23:43:49 +0530
Subject: [PATCH 170/644] Add magic-enter plugin (#4082)
* Added magic-enter plugin
To bind commonly used tasks to the enter key
* Allow the magic-enter commands to be modified by the user
---
plugins/magic-enter/Readme.md | 14 +++++++++++++
plugins/magic-enter/magic-enter.plugin.zsh | 24 ++++++++++++++++++++++
2 files changed, 38 insertions(+)
create mode 100644 plugins/magic-enter/Readme.md
create mode 100644 plugins/magic-enter/magic-enter.plugin.zsh
diff --git a/plugins/magic-enter/Readme.md b/plugins/magic-enter/Readme.md
new file mode 100644
index 000000000..b401ab415
--- /dev/null
+++ b/plugins/magic-enter/Readme.md
@@ -0,0 +1,14 @@
+## Magic Enter
+
+**Maintainer:** [@dufferzafar](https://github.com/dufferzafar)
+
+Makes your enter key magical, by binding commonly used commands to it.
+
+You can set the commands to be run in your .zshrc, before the line containing plugins!
+
+```bash
+MAGIC_ENTER_GIT_COMMAND='git status -u .'
+MAGIC_ENTER_OTHER_COMMAND='ls -lh .'
+
+plugins=(magic-enter)
+```
diff --git a/plugins/magic-enter/magic-enter.plugin.zsh b/plugins/magic-enter/magic-enter.plugin.zsh
new file mode 100644
index 000000000..8e1859678
--- /dev/null
+++ b/plugins/magic-enter/magic-enter.plugin.zsh
@@ -0,0 +1,24 @@
+# Bind quick stuff to enter!
+#
+# Pressing enter in a git directory runs `git status`
+# in other directories `ls`
+magic-enter () {
+
+ # If commands are not already set, use the defaults
+ [ -z "$MAGIC_ENTER_GIT_COMMAND" ] && MAGIC_ENTER_GIT_COMMAND="git status -u ."
+ [ -z "$MAGIC_ENTER_OTHER_COMMAND" ] && MAGIC_ENTER_OTHER_COMMAND="ls -lh ."
+
+ if [[ -z $BUFFER ]]; then
+ echo ""
+ if git rev-parse --is-inside-work-tree &>/dev/null; then
+ eval "$MAGIC_ENTER_GIT_COMMAND"
+ else
+ eval "$MAGIC_ENTER_OTHER_COMMAND"
+ fi
+ zle redisplay
+ else
+ zle accept-line
+ fi
+}
+zle -N magic-enter
+bindkey "^M" magic-enter
From 29a2394c8f88efe04a61460a9a171228c39b1de0 Mon Sep 17 00:00:00 2001
From: Alberto Re
Date: Sun, 1 Jul 2018 20:16:08 +0200
Subject: [PATCH 171/644] Adds `vagrant_prompt_info` function to your shell
(#4081)
---
plugins/vagrant-prompt/README.md | 6 +++
.../vagrant-prompt/vagrant-prompt.plugin.zsh | 38 +++++++++++++++++++
2 files changed, 44 insertions(+)
create mode 100644 plugins/vagrant-prompt/README.md
create mode 100644 plugins/vagrant-prompt/vagrant-prompt.plugin.zsh
diff --git a/plugins/vagrant-prompt/README.md b/plugins/vagrant-prompt/README.md
new file mode 100644
index 000000000..c5bc55d17
--- /dev/null
+++ b/plugins/vagrant-prompt/README.md
@@ -0,0 +1,6 @@
+This plugin prompts the status of the Vagrant VMs. It supports single-host and
+multi-host configurations as well.
+
+Look inside the source for documentation about custom variables.
+
+Alberto Re
diff --git a/plugins/vagrant-prompt/vagrant-prompt.plugin.zsh b/plugins/vagrant-prompt/vagrant-prompt.plugin.zsh
new file mode 100644
index 000000000..28bf31f91
--- /dev/null
+++ b/plugins/vagrant-prompt/vagrant-prompt.plugin.zsh
@@ -0,0 +1,38 @@
+# vim:ft=zsh ts=2 sw=2 sts=2
+#
+# To display Vagrant infos on your prompt add the vagrant_prompt_info to the
+# $PROMPT variable in your theme. Example:
+#
+# PROMPT='%{$fg[$NCOLOR]%}%B%n%b%{$reset_color%}:%{$fg[blue]%}%B%c/%b%{$reset_color%} $(vagrant_prompt_info)$(svn_prompt_info)$(git_prompt_info)%(!.#.$) '
+#
+# `vagrant_prompt_info` makes use of some custom variables. This is an example
+# definition:
+#
+# ZSH_THEME_VAGRANT_PROMPT_PREFIX="%{$fg_bold[blue]%}["
+# ZSH_THEME_VAGRANT_PROMPT_SUFFIX="%{$fg_bold[blue]%}]%{$reset_color%} "
+# ZSH_THEME_VAGRANT_PROMPT_RUNNING="%{$fg_no_bold[green]%}●"
+# ZSH_THEME_VAGRANT_PROMPT_POWEROFF="%{$fg_no_bold[red]%}●"
+# ZSH_THEME_VAGRANT_PROMPT_SUSPENDED="%{$fg_no_bold[yellow]%}●"
+# ZSH_THEME_VAGRANT_PROMPT_NOT_CREATED="%{$fg_no_bold[white]%}○"
+
+function vagrant_prompt_info() {
+ test -d .vagrant && test -f Vagrantfile
+ if [[ "$?" == "0" ]]; then
+ statuses=$(vagrant status 2> /dev/null | grep -P "\w+\s+[\w\s]+\s\(\w+\)")
+ statuses=("${(f)statuses}")
+ printf '%s' $ZSH_THEME_VAGRANT_PROMPT_PREFIX
+ for vm_details in $statuses; do
+ vm_state=$(echo $vm_details | grep -o -E "saved|poweroff|not created|running")
+ if [[ "$vm_state" == "running" ]]; then
+ printf '%s' $ZSH_THEME_VAGRANT_PROMPT_RUNNING
+ elif [[ "$vm_state" == "saved" ]]; then
+ printf '%s' $ZSH_THEME_VAGRANT_PROMPT_SUSPENDED
+ elif [[ "$vm_state" == "not created" ]]; then
+ printf '%s' $ZSH_THEME_VAGRANT_PROMPT_NOT_CREATED
+ elif [[ "$vm_state" == "poweroff" ]]; then
+ printf '%s' $ZSH_THEME_VAGRANT_PROMPT_POWEROFF
+ fi
+ done
+ printf '%s' $ZSH_THEME_VAGRANT_PROMPT_SUFFIX
+ fi
+}
From 3a7a5908626c977e9fccaceda3ffeba67c5f1548 Mon Sep 17 00:00:00 2001
From: nyim
Date: Mon, 2 Jul 2018 02:41:52 +0800
Subject: [PATCH 172/644] mortalscumbag add icon showing local branch behind
(#4364)
---
themes/mortalscumbag.zsh-theme | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/themes/mortalscumbag.zsh-theme b/themes/mortalscumbag.zsh-theme
index 55ece9760..8c7b0f5d1 100644
--- a/themes/mortalscumbag.zsh-theme
+++ b/themes/mortalscumbag.zsh-theme
@@ -9,6 +9,11 @@ function my_git_prompt() {
STATUS="$STATUS$ZSH_THEME_GIT_PROMPT_AHEAD"
fi
+ # is branch behind?
+ if $(echo "$(git log HEAD..origin/$(current_branch) 2> /dev/null)" | grep '^commit' &> /dev/null); then
+ STATUS="$STATUS$ZSH_THEME_GIT_PROMPT_BEHIND"
+ fi
+
# is anything staged?
if $(echo "$INDEX" | command grep -E -e '^(D[ M]|[MARC][ MD]) ' &> /dev/null); then
STATUS="$STATUS$ZSH_THEME_GIT_PROMPT_STAGED"
@@ -52,6 +57,7 @@ PROMPT=$'\n$(ssh_connection)%{$fg_bold[green]%}%n@%m%{$reset_color%}$(my_git_pro
ZSH_THEME_PROMPT_RETURNCODE_PREFIX="%{$fg_bold[red]%}"
ZSH_THEME_GIT_PROMPT_PREFIX=" $fg[white]‹ %{$fg_bold[yellow]%}"
ZSH_THEME_GIT_PROMPT_AHEAD="%{$fg_bold[magenta]%}↑"
+ZSH_THEME_GIT_PROMPT_BEHIND="%{$fg_bold[green]%}↓"
ZSH_THEME_GIT_PROMPT_STAGED="%{$fg_bold[green]%}●"
ZSH_THEME_GIT_PROMPT_UNSTAGED="%{$fg_bold[red]%}●"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg_bold[white]%}●"
From 27321265258ce4e0b0c0b1bdb90eb5e72b9b1c29 Mon Sep 17 00:00:00 2001
From: miguelpuyol
Date: Sun, 1 Jul 2018 20:42:29 +0200
Subject: [PATCH 173/644] Add Spring Boot Run command (#4460)
---
plugins/mvn/mvn.plugin.zsh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/mvn/mvn.plugin.zsh b/plugins/mvn/mvn.plugin.zsh
index ee6fe2770..d422ba5c7 100644
--- a/plugins/mvn/mvn.plugin.zsh
+++ b/plugins/mvn/mvn.plugin.zsh
@@ -59,11 +59,13 @@ alias mvn-updates='mvn versions:display-dependency-updates'
alias mvntc7='mvn tomcat7:run'
alias mvntc='mvn tomcat:run'
alias mvnjetty='mvn jetty:run'
+alias mvnboot='mvn spring-boot:run'
alias mvndt='mvn dependency:tree'
alias mvns='mvn site'
alias mvnsrc='mvn dependency:sources'
alias mvndocs='mvn dependency:resolve -Dclassifier=javadoc'
+
function listMavenCompletions {
reply=(
# common lifecycle
From d21654fe2ec745d750cef9743ad2135c651118bc Mon Sep 17 00:00:00 2001
From: ELLIOTTCABLE
Date: Sun, 1 Jul 2018 13:44:37 -0500
Subject: [PATCH 174/644] Make `vagrant` completion a little more self-aware
(#4516)
(Probably due to an original copy-pasta'ing, `vagrant`'s completion thought it was `gem`'s completion.)
From c7d8ad1e7511749f584adae37f0ff1ccd0922ec6 Mon Sep 17 00:00:00 2001
From: meehow
Date: Sun, 1 Jul 2018 20:45:15 +0200
Subject: [PATCH 175/644] sudo added to nmap commands which require sudo
(#4476)
---
plugins/nmap/nmap.plugin.zsh | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/plugins/nmap/nmap.plugin.zsh b/plugins/nmap/nmap.plugin.zsh
index d09f2c615..82c275f23 100644
--- a/plugins/nmap/nmap.plugin.zsh
+++ b/plugins/nmap/nmap.plugin.zsh
@@ -17,16 +17,16 @@
alias nmap_open_ports="nmap --open"
alias nmap_list_interfaces="nmap --iflist"
-alias nmap_slow="nmap -sS -v -T1"
-alias nmap_fin="nmap -sF -v"
-alias nmap_full="nmap -sS -T4 -PE -PP -PS80,443 -PY -g 53 -A -p1-65535 -v"
-alias nmap_check_for_firewall="nmap -sA -p1-65535 -v -T4"
+alias nmap_slow="sudo nmap -sS -v -T1"
+alias nmap_fin="sudo nmap -sF -v"
+alias nmap_full="sudo nmap -sS -T4 -PE -PP -PS80,443 -PY -g 53 -A -p1-65535 -v"
+alias nmap_check_for_firewall="sudo nmap -sA -p1-65535 -v -T4"
alias nmap_ping_through_firewall="nmap -PS -PA"
alias nmap_fast="nmap -F -T5 --version-light --top-ports 300"
-alias nmap_detect_versions="nmap -sV -p1-65535 -O --osscan-guess -T4 -Pn"
+alias nmap_detect_versions="sudo nmap -sV -p1-65535 -O --osscan-guess -T4 -Pn"
alias nmap_check_for_vulns="nmap --script=vulscan"
-alias nmap_full_udp="nmap -sS -sU -T4 -A -v -PE -PS22,25,80 -PA21,23,80,443,3389 "
-alias nmap_traceroute="nmap -sP -PE -PS22,25,80 -PA21,23,80,3389 -PU -PO --traceroute "
+alias nmap_full_udp="sudo nmap -sS -sU -T4 -A -v -PE -PS22,25,80 -PA21,23,80,443,3389 "
+alias nmap_traceroute="sudo nmap -sP -PE -PS22,25,80 -PA21,23,80,3389 -PU -PO --traceroute "
alias nmap_full_with_scripts="sudo nmap -sS -sU -T4 -A -v -PE -PP -PS21,22,23,25,80,113,31339 -PA80,113,443,10042 -PO --script all "
alias nmap_web_safe_osscan="sudo nmap -p 80,443 -O -v --osscan-guess --fuzzy "
From 27b9aed87f2c05e0c7e18716741ec3381e27f889 Mon Sep 17 00:00:00 2001
From: Pierre Barbier de Reuille
Date: Sun, 1 Jul 2018 20:48:53 +0200
Subject: [PATCH 176/644] Added "-n name" option to vim-interaction plugin
(#4522)
---
plugins/vim-interaction/vim-interaction.plugin.zsh | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/plugins/vim-interaction/vim-interaction.plugin.zsh b/plugins/vim-interaction/vim-interaction.plugin.zsh
index b774be342..010f998d3 100644
--- a/plugins/vim-interaction/vim-interaction.plugin.zsh
+++ b/plugins/vim-interaction/vim-interaction.plugin.zsh
@@ -8,10 +8,11 @@ function callvim
{
if [[ $# == 0 ]]; then
cat <"
fi
cmd="$before$files$after"
- gvim --remote-send "$cmd"
+ gvim --servername "$name" --remote-send "$cmd"
if typeset -f postCallVim > /dev/null; then
postCallVim
fi
From 55ab532e506521069afba327432132c096885c29 Mon Sep 17 00:00:00 2001
From: Yuri Parsons
Date: Sun, 1 Jul 2018 22:43:45 +0200
Subject: [PATCH 177/644] Don't correct cp commands (#4636)
---
lib/correction.zsh | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/correction.zsh b/lib/correction.zsh
index 3e1415a0b..c635236b5 100644
--- a/lib/correction.zsh
+++ b/lib/correction.zsh
@@ -1,4 +1,5 @@
if [[ "$ENABLE_CORRECTION" == "true" ]]; then
+ alias cp='nocorrect cp'
alias ebuild='nocorrect ebuild'
alias gist='nocorrect gist'
alias heroku='nocorrect heroku'
From ac0d71467be9de2e399ef99ae58d7780e1d2ff4c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BD=93=E8=BD=A9?=
Date: Mon, 2 Jul 2018 05:07:35 +0800
Subject: [PATCH 178/644] add plugin:percol (#4582)
* add plugin:percol
* fix format
* check percol
* fix empty history in gnome terminal
---
plugins/percol/README.md | 23 +++++++++++++++++++++++
plugins/percol/percol.plugin.zsh | 22 ++++++++++++++++++++++
2 files changed, 45 insertions(+)
create mode 100644 plugins/percol/README.md
create mode 100644 plugins/percol/percol.plugin.zsh
diff --git a/plugins/percol/README.md b/plugins/percol/README.md
new file mode 100644
index 000000000..97cca6876
--- /dev/null
+++ b/plugins/percol/README.md
@@ -0,0 +1,23 @@
+## percol
+
+Provides some useful function to make [percol](https://github.com/mooz/percol) work with zsh history and [jump plugin](https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/jump/jump.plugin.zsh)
+
+### Preview
+![Preview](http://t1.qpic.cn/mblogpic/eb1c8f9d2b9f62d19fa8/2000.jpg)
+
+### Requirements
+
+```shell
+pip install percol
+```
+
+And [jump](https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/jump/jump.plugin.zsh) for `oh-my-zsh` is a optional requirement.
+
+### Usage
+
+For default
+
+- `^-r` bind to `percol_select_history`.You can use it to grep your history with percol.
+
+- `^-b` bind to `percol_select_marks`.You can use it to grep your bookmarks with percol.
+
diff --git a/plugins/percol/percol.plugin.zsh b/plugins/percol/percol.plugin.zsh
new file mode 100644
index 000000000..c6adf4e1e
--- /dev/null
+++ b/plugins/percol/percol.plugin.zsh
@@ -0,0 +1,22 @@
+if which percol &> /dev/null; then
+ function percol_select_history() {
+ local tac
+ which gtac &> /dev/null && tac="gtac" || { which tac &> /dev/null && tac="tac" || { tac="tail -r" } }
+ BUFFER=$(fc -l -n 1 | eval $tac | percol --query "$LBUFFER")
+ CURSOR=$#BUFFER
+ zle -R -c
+ }
+
+ zle -N percol_select_history
+ bindkey '^R' percol_select_history
+
+ if which marks &> /dev/null; then
+ function percol_select_marks() {
+ BUFFER=$(marks | percol --query "$LBUFFER" | awk '{print $3}')
+ CURSOR=$#BUFFER # move cursor
+ zle -R -c # refresh
+ }
+ zle -N percol_select_marks
+ bindkey '^B' percol_select_marks
+ fi
+fi
From 5c0911c184b012797ef4d0ed2a79d67b6b0976e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Maciej=20Sypie=C5=84?=
Date: Sun, 1 Jul 2018 23:12:14 +0200
Subject: [PATCH 179/644] update nvm completions with v0.29.0 (#4701)
---
plugins/nvm/_nvm | 19 +++++++++++++------
1 file changed, 13 insertions(+), 6 deletions(-)
diff --git a/plugins/nvm/_nvm b/plugins/nvm/_nvm
index 1414dcbb1..1eec48b0a 100644
--- a/plugins/nvm/_nvm
+++ b/plugins/nvm/_nvm
@@ -6,16 +6,23 @@
local -a _1st_arguments
_1st_arguments=(
'help:show help'
- 'install:download and install a version'
+ '--version:print out the latest released version of nvm'
+ 'install:download and install a version in '
'uninstall:uninstall a version'
- 'use:modify PATH to use version'
- 'run:run version with given arguments'
+ 'use:modify PATH to use . Uses .nvmrc if available'
+ 'exec:run on . Uses .nvmrc if available'
+ 'run:run `node` on with as arguments. Uses .nvmrc if available'
+ 'current:list installed versions'
'ls:list installed versions or versions matching a given description'
+ 'version:resolve the given description to a single local version'
+ 'version-remote:resolve the given description to a single remote version'
'ls-remote:list remote versions available for install'
- 'deactivate:undo effects of NVM on current shell'
+ 'deactivate:undo effects of `nvm` on current shell'
'alias:show or set aliases'
'unalias:deletes an alias'
- 'copy-packages:install global NPM packages to current version'
+ 'reinstall-packages:reinstall global `npm` packages contained in to current version'
+ 'unload:unload `nvm` from shell'
+ 'which:display path to installed node version. Uses .nvmrc if available'
)
_arguments -C '*:: :->subcmds' && return 0
@@ -23,4 +30,4 @@ _arguments -C '*:: :->subcmds' && return 0
if (( CURRENT == 1 )); then
_describe -t commands "nvm subcommand" _1st_arguments
return
-fi
\ No newline at end of file
+fi
From af085542bdc0e835093ed2b86f90251bc1f3d719 Mon Sep 17 00:00:00 2001
From: Alexandre Nicastro
Date: Sun, 1 Jul 2018 18:21:20 -0300
Subject: [PATCH 180/644] Stop error "permission denied: /npm_completion"
(#6340)
Fixes #5874
Related:
https://github.com/lukechilds/zsh-nvm/issues/23
https://github.com/zsh-users/antigen/issues/586
---
plugins/npm/npm.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh
index 43af35ddb..f62174a4f 100644
--- a/plugins/npm/npm.plugin.zsh
+++ b/plugins/npm/npm.plugin.zsh
@@ -1,5 +1,5 @@
(( $+commands[npm] )) && {
- __NPM_COMPLETION_FILE="${ZSH_CACHE_DIR}/npm_completion"
+ __NPM_COMPLETION_FILE="${ZSH_CACHE_DIR:-$ZSH/cache}/npm_completion"
if [[ ! -f $__NPM_COMPLETION_FILE ]]; then
npm completion >! $__NPM_COMPLETION_FILE 2>/dev/null
From 9711d8f7316339b21c1043c74020c944eda7a2f5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Mon, 2 Jul 2018 17:04:09 +0200
Subject: [PATCH 181/644] Rename kube-ps1.zsh to kube-ps1.plugin.zsh
---
plugins/kube-ps1/{kube-ps1.zsh => kube-ps1.plugin.zsh} | 0
1 file changed, 0 insertions(+), 0 deletions(-)
rename plugins/kube-ps1/{kube-ps1.zsh => kube-ps1.plugin.zsh} (100%)
diff --git a/plugins/kube-ps1/kube-ps1.zsh b/plugins/kube-ps1/kube-ps1.plugin.zsh
similarity index 100%
rename from plugins/kube-ps1/kube-ps1.zsh
rename to plugins/kube-ps1/kube-ps1.plugin.zsh
From 7cba6bb038fb699c44532992ee75e836b6576ac7 Mon Sep 17 00:00:00 2001
From: sam-lunt
Date: Mon, 2 Jul 2018 10:05:24 -0500
Subject: [PATCH 182/644] Enable passing multiple directories to take (#6900)
* enable passing multiple directories to take
* Update take function
Do not call cd if mkdir fails
---
lib/functions.zsh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/functions.zsh b/lib/functions.zsh
index dd8311611..1066fed57 100644
--- a/lib/functions.zsh
+++ b/lib/functions.zsh
@@ -11,8 +11,7 @@ function upgrade_oh_my_zsh() {
}
function take() {
- mkdir -p $1
- cd $1
+ mkdir -p $@ && cd ${@:$#}
}
function open_command() {
From f09fed61957928605e8eccc54aaf9dac398214ed Mon Sep 17 00:00:00 2001
From: Unknown-Guy
Date: Tue, 3 Jul 2018 18:37:18 +0300
Subject: [PATCH 183/644] change mortalscumbag to use core git_current_branch
(#6965)
---
themes/mortalscumbag.zsh-theme | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/themes/mortalscumbag.zsh-theme b/themes/mortalscumbag.zsh-theme
index 8c7b0f5d1..d81a7ca06 100644
--- a/themes/mortalscumbag.zsh-theme
+++ b/themes/mortalscumbag.zsh-theme
@@ -10,7 +10,7 @@ function my_git_prompt() {
fi
# is branch behind?
- if $(echo "$(git log HEAD..origin/$(current_branch) 2> /dev/null)" | grep '^commit' &> /dev/null); then
+ if $(echo "$(git log HEAD..origin/$(git_current_branch) 2> /dev/null)" | grep '^commit' &> /dev/null); then
STATUS="$STATUS$ZSH_THEME_GIT_PROMPT_BEHIND"
fi
From da8745eb9abe5565519218c1b732548de0b66b75 Mon Sep 17 00:00:00 2001
From: Roman Sedov
Date: Tue, 3 Jul 2018 18:45:42 +0300
Subject: [PATCH 184/644] convenient vscode plugin for oh-my-zsh (#6903)
---
plugins/vscode/README.md | 38 ++++++++++++++++++++++++++++++++
plugins/vscode/vscode.plugin.zsh | 19 ++++++++++++++++
2 files changed, 57 insertions(+)
create mode 100644 plugins/vscode/README.md
create mode 100644 plugins/vscode/vscode.plugin.zsh
diff --git a/plugins/vscode/README.md b/plugins/vscode/README.md
new file mode 100644
index 000000000..ef1fdea30
--- /dev/null
+++ b/plugins/vscode/README.md
@@ -0,0 +1,38 @@
+# VS code
+
+This plugin makes interaction between the command line and the code editor easier.
+
+To start using it, add the `vscode` plugin to your `plugins` array in `~/.zshrc`:
+
+```zsh
+plugins=(... vscode)
+```
+
+## Common aliases
+
+| Alias | Command | Description |
+| ----------------------- | ------------------------------ | ----------------------------------------------------------------------------------------------------------- |
+| vsc | code . | Open the current folder in VS code |
+| vsca `dir` | code --add `dir` | Add folder(s) to the last active window |
+| vscd `file` `file` | code --diff `file` `file` | Compare two files with each other. |
+| vscg `file:line[:char]` | code --goto `file:line[:char]` | Open a file at the path on the specified line and character position. |
+| vscn | code --new-window | Force to open a new window. |
+| vscr | code --reuse-window | Force to open a file or folder in the last active window. |
+| vscw | code --wait | Wait for the files to be closed before returning. |
+| vscu `dir` | code --user-data-dir `dir` | Specifies the directory that user data is kept in. Can be used to open multiple distinct instances of Code. |
+
+## Extensions aliases
+
+| Alias | Command | Description |
+| ----------------------- | ---------------------------------------------------------------- | --------------------------------- |
+| vsce `dir` | code --extensions-dir `dir` | Set the root path for extensions. |
+| vscie `id or vsix-path` | code --install-extension `extension-id> or
Date: Tue, 3 Jul 2018 11:46:33 -0400
Subject: [PATCH 185/644] Spelling fix (#6963)
---
plugins/kubectl/kubectl.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh
index c4e30dacd..f91475b6c 100644
--- a/plugins/kubectl/kubectl.plugin.zsh
+++ b/plugins/kubectl/kubectl.plugin.zsh
@@ -10,7 +10,7 @@ if (( $+commands[kubectl] )); then
unset __KUBECTL_COMPLETION_FILE
fi
-# This command is used ALOT both below and in daily life
+# This command is used a LOT both below and in daily life
alias k=kubectl
# Apply a YML file
From b0052c7958db673bcf9d7a14103599c11e2b0513 Mon Sep 17 00:00:00 2001
From: Matthieu PETIOT
Date: Wed, 4 Jul 2018 12:48:46 +0200
Subject: [PATCH 186/644] Add argument to set644 and set755 perms alias.
(#6959)
This can avoid big mistakes as this I just made.
I thought I could give it an argument. So, now, it is possible.
---
plugins/perms/README.md | 6 +++---
plugins/perms/perms.plugin.zsh | 8 ++++++--
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/plugins/perms/README.md b/plugins/perms/README.md
index 873c21d42..324b3f3cc 100644
--- a/plugins/perms/README.md
+++ b/plugins/perms/README.md
@@ -4,6 +4,6 @@ Plugin to handle some unix filesystem permissions quickly
### Usage
-* `set755` recursively sets all directories located within the current working directory and sub directories to octal 755.
-* `set644` recursively sets all files located within the current working directory and sub directories to octal 644.
-* `fixperms` is a wrapper around `set755` and `set644` applied to a specified directory or the current directory otherwise. It also prompts prior to execution unlike the other two aliases.
\ No newline at end of file
+* `set755` recursively sets all given directories (default to .) to octal 755.
+* `set644` recursively sets all given files (default to .) to octal 644.
+* `fixperms` is a wrapper around `set755` and `set644` applied to a specified directory or the current directory otherwise. It also prompts prior to execution unlike the other two aliases.
diff --git a/plugins/perms/perms.plugin.zsh b/plugins/perms/perms.plugin.zsh
index 7cdebab7f..1a7472c1c 100644
--- a/plugins/perms/perms.plugin.zsh
+++ b/plugins/perms/perms.plugin.zsh
@@ -6,10 +6,14 @@
### Aliases
# Set all files' permissions to 644 recursively in a directory
-alias set644='find . -type f ! -perm 644 -print0 | xargs -0 chmod 644'
+set644() {
+ find "${@:-.}" -type f ! -perm 644 -print0 | xargs -0 chmod 644
+}
# Set all directories' permissions to 755 recursively in a directory
-alias set755='find . -type d ! -perm 755 -print0 | xargs -0 chmod 755'
+set755() {
+ find "${@:-.}" -type d ! -perm 755 -print0 | xargs -0 chmod 755
+}
### Functions
From d232e6866c08a7b192d31c435ad2e00ccc48e03a Mon Sep 17 00:00:00 2001
From: Thomas Kriechbaumer
Date: Mon, 9 Jul 2018 19:27:02 +0200
Subject: [PATCH 187/644] ufw: remove debug print (#6976)
---
plugins/ufw/_ufw | 2 --
1 file changed, 2 deletions(-)
diff --git a/plugins/ufw/_ufw b/plugins/ufw/_ufw
index 08f871f35..f5ad03377 100644
--- a/plugins/ufw/_ufw
+++ b/plugins/ufw/_ufw
@@ -45,8 +45,6 @@ _arguments -C \
'3:: :->subsubcmds' \
&& return 0
-echo "DEBUG: $(date)| $state | $line[1] | $line| $word[1]| $word| $CURRENT|" >> log.log
-
local rules
case "$state" in
From be342b1bc8306cc24c2bb6145ceae78839a3008f Mon Sep 17 00:00:00 2001
From: Azat S
Date: Tue, 10 Jul 2018 14:41:20 +0300
Subject: [PATCH 188/644] Yarn upgrade-interactive (#5796)
* Add Yarn upgrade-ineractive CLI command
* Remove dots at the end of completions
---
plugins/yarn/yarn.plugin.zsh | 42 ++++++++++++++++++++++--------------
1 file changed, 26 insertions(+), 16 deletions(-)
diff --git a/plugins/yarn/yarn.plugin.zsh b/plugins/yarn/yarn.plugin.zsh
index 939820edb..eee811b16 100644
--- a/plugins/yarn/yarn.plugin.zsh
+++ b/plugins/yarn/yarn.plugin.zsh
@@ -28,24 +28,30 @@ _yarn ()
_production=('(--production)--production[Do not install project devDependencies]')
+ _upgrade=(
+ '(--exact)--exact[Install exact version]'
+ '(--tilde)--tilde[Install most recent release with the same minor version]'
+ )
+
_1st_arguments=(
'help:Display help information about yarn' \
- 'init:Initialize for the development of a package.' \
- 'add:Add a package to use in your current package.' \
- 'install:Install all the dependencies listed within package.json in the local node_modules folder.' \
- 'publish:Publish a package to a package manager.' \
- 'remove:Remove a package that will no longer be used in your current package.' \
- 'cache:Clear the local cache. It will be populated again the next time yarn or yarn install is run.' \
- 'clean:Frees up space by removing unnecessary files and folders from dependencies.' \
- 'check:Verifies that versions of the package dependencies in the current project’s package.json matches that of yarn’s lock file.' \
- 'ls:List all installed packages.' \
- 'global:Makes binaries available to use on your operating system.' \
- 'info: [] - fetch information about a package and return it in a tree format.' \
- 'outdated:Checks for outdated package dependencies.' \
- 'run:Runs a defined package script.' \
- 'self-update:Updates Yarn to the latest version.' \
- 'upgrade:Upgrades packages to their latest version based on the specified range.' \
- 'why: - Show information about why a package is installed.'
+ 'init:Initialize for the development of a package' \
+ 'add:Add a package to use in your current package' \
+ 'install:Install all the dependencies listed within package.json in the local node_modules folder' \
+ 'publish:Publish a package to a package manager' \
+ 'remove:Remove a package that will no longer be used in your current package' \
+ 'cache:Clear the local cache. It will be populated again the next time yarn or yarn install is run' \
+ 'clean:Frees up space by removing unnecessary files and folders from dependencies' \
+ 'check:Verifies that versions of the package dependencies in the current project’s package.json matches that of yarn’s lock file' \
+ 'ls:List all installed packages' \
+ 'global:Makes binaries available to use on your operating system' \
+ 'info: [] - fetch information about a package and return it in a tree format' \
+ 'outdated:Checks for outdated package dependencies' \
+ 'run:Runs a defined package script' \
+ 'self-update:Updates Yarn to the latest version' \
+ 'upgrade:Upgrades packages to their latest version based on the specified range' \
+ 'upgrade-interactive:Selectively upgrades specific packages in a simple way' \
+ 'why: - Show information about why a package is installed'
)
_arguments \
'*:: :->subcmds' && return 0
@@ -78,6 +84,10 @@ _yarn ()
_arguments \
$_dopts
;;
+ upgrade-interactive)
+ _arguments \
+ $_upgrade
+ ;;
*)
_arguments \
;;
From 7cb5fa8aea3d325fee08e3c1708abd12cdea1c1c Mon Sep 17 00:00:00 2001
From: Arthur <192247+arteezy@users.noreply.github.com>
Date: Wed, 11 Jul 2018 03:31:47 +0600
Subject: [PATCH 189/644] Fix dotenv plugin accepted file format and clarify
README (#6093)
* Fix dotenv plugin accepted file format
* clarify README and add disclaimer section
---
plugins/dotenv/README.md | 19 +++++++++++++++----
plugins/dotenv/dotenv.plugin.zsh | 8 +++++++-
2 files changed, 22 insertions(+), 5 deletions(-)
diff --git a/plugins/dotenv/README.md b/plugins/dotenv/README.md
index ade09fbb2..e0e75571f 100644
--- a/plugins/dotenv/README.md
+++ b/plugins/dotenv/README.md
@@ -2,19 +2,19 @@
Automatically load your project ENV variables from `.env` file when you `cd` into project root directory.
-Storing configuration in the environment is one of the tenets of a [twelve-factor app](http://www.12factor.net). Anything that is likely to change between deployment environments–such as resource handles for databases or credentials for external services–should be extracted from the code into environment variables.
+Storing configuration in the environment is one of the tenets of a [twelve-factor app](http://www.12factor.net). Anything that is likely to change between deployment environments, such as resource handles for databases or credentials for external services, should be extracted from the code into environment variables.
## Installation
Just add the plugin to your `.zshrc`:
```sh
-plugins=(git man dotenv)
+plugins=(... dotenv)
```
## Usage
-Create `.env` file inside your project directory and put your local ENV variables there.
+Create `.env` file inside your project root directory and put your ENV variables there.
For example:
```sh
@@ -30,5 +30,16 @@ SECRET_KEY=7c6c72d959416d5aa368a409362ec6e2ac90d7f
MONGO_URI=mongodb://127.0.0.1:27017
PORT=3001
```
+You can even mix both formats, although it's probably a bad idea.
-**It's strongly recommended to add `.env` file to `.gitignore`**, because usually it contains sensitive information such as your credentials, secret keys, passwords etc. You don't want to commit this file, it supposed to be local only.
+## Version Control
+
+**It's strongly recommended to add `.env` file to `.gitignore`**, because usually it contains sensitive information such as your credentials, secret keys, passwords etc. You don't want to commit this file, it's supposed to be local only.
+
+## Disclaimer
+
+This plugin only sources the `.env` file. Nothing less, nothing more. It doesn't do any checks. It's designed to be the fastest and simplest option. You're responsible for the `.env` file content. You can put some code (or weird symbols) there, but do it on your own risk. `dotenv` is the basic tool, yet it does the job.
+
+If you need more advanced and feature-rich ENV management, check out these awesome projects:
+* [direnv](https://github.com/direnv/direnv)
+* [zsh-autoenv](https://github.com/Tarrasch/zsh-autoenv)
diff --git a/plugins/dotenv/dotenv.plugin.zsh b/plugins/dotenv/dotenv.plugin.zsh
index 9dd784229..fa47c4c68 100644
--- a/plugins/dotenv/dotenv.plugin.zsh
+++ b/plugins/dotenv/dotenv.plugin.zsh
@@ -2,7 +2,13 @@
source_env() {
if [[ -f .env ]]; then
- source .env
+ if [[ -o a ]]; then
+ source .env
+ else
+ set -a
+ source .env
+ set +a
+ fi
fi
}
From 1a657c6c4d44dbfcffb4c633a58e623f4d692706 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Tue, 10 Jul 2018 21:23:25 +0200
Subject: [PATCH 190/644] yarn: use zsh-completions completion (ff73f40)
Version: ff73f40 (2018-05-02)
Fixes #5859
Fixes #5878
Fixes #5983
Fixes #6013
---
plugins/yarn/_yarn | 345 +++++++++++++++++++++++++++++++++++
plugins/yarn/yarn.plugin.zsh | 92 ----------
2 files changed, 345 insertions(+), 92 deletions(-)
create mode 100644 plugins/yarn/_yarn
diff --git a/plugins/yarn/_yarn b/plugins/yarn/_yarn
new file mode 100644
index 000000000..382f58a0a
--- /dev/null
+++ b/plugins/yarn/_yarn
@@ -0,0 +1,345 @@
+#compdef yarn
+# ------------------------------------------------------------------------------
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+# * Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+# * Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in the
+# documentation and/or other materials provided with the distribution.
+# * Neither the name of the zsh-users nor the
+# names of its contributors may be used to endorse or promote products
+# derived from this software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL ZSH-USERS BE LIABLE FOR ANY
+# DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+# LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+# ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# ------------------------------------------------------------------------------
+# Description
+# -----------
+#
+# Completion script for yarn (https://yarnpkg.com/)
+#
+# ------------------------------------------------------------------------------
+# Authors
+# -------
+#
+# * Massimiliano Torromeo
+#
+# ------------------------------------------------------------------------------
+
+_commands=(
+ 'access'
+ 'autoclean:Clean and remove unnecessary files from package dependencies'
+ 'cache:List or clean every cached package'
+ "check:Verify package dependencies agains yarn's lock file"
+ 'config:Manages the yarn configuration files'
+ 'generate-lock-entry:Generates a lock file entry'
+ 'global:Install packages globally on your operating system'
+ 'help:Show information about a command'
+ 'import:Generate yarn.lock from an existing npm-installed node_modules folder'
+ 'info:Show information about a package'
+ 'init:Interactively creates or updates a package.json file'
+ 'install:Install all the dependencies listed within package.json'
+ 'licenses:List licenses for installed packages'
+ 'link:Symlink a package folder during development'
+ 'list:List installed packages'
+ 'login:Store registry username and email'
+ 'logout:Clear registry username and email'
+ 'outdated:Check for outdated package dependencies'
+ 'owner:Manage package owners'
+ 'pack:Create a compressed gzip archive of package dependencies'
+ 'publish:Publish a package to the npm registry'
+ 'run:Run a defined package script'
+ 'tag:Add, remove, or list tags on a package'
+ 'team:Maintain team memberships'
+ 'unlink:Unlink a previously created symlink for a package'
+ 'version:Update the package version'
+ 'versions:Display version information of currently installed Yarn, Node.js, and its dependencies'
+ 'why:Show information about why a package is installed'
+)
+
+_global_commands=(
+ 'add:Installs a package and any packages that it depends on'
+ 'bin:Displays the location of the yarn bin folder'
+ 'remove:Remove installed package from dependencies updating package.json'
+ 'upgrade:Upgrades packages to their latest version based on the specified range'
+ 'upgrade-interactive'
+)
+
+_yarn_commands_scripts() {
+ local -a scripts
+ scripts=($(yarn run --json 2>/dev/null | sed -E '/Commands available|possibleCommands/!d;s/.*Commands available from binary scripts: ([^"]+)".*/\1/;s/.*"items":\[([^]]+).*/\1/;s/[" ]//g' | tr , '\n' | sed -e 's/:/\\:/g'))
+ _describe 'command or script' _commands -- _global_commands -- scripts
+}
+
+_yarn_scripts() {
+ local -a scripts
+ scripts=($(yarn run --json 2>/dev/null | sed -E '/Commands available|possibleCommands/!d;s/.*Commands available from binary scripts: ([^"]+)".*/\1/;s/.*"items":\[([^]]+).*/\1/;s/[" ]//g' | tr , '\n' | sed -e 's/:/\\:/g'))
+ _describe 'script' scripts
+}
+
+_yarn_global_commands() {
+ local -a cmds
+ cmds=('ls:List installed packages')
+ _describe 'command' _global_commands
+}
+
+_yarn_commands() {
+ _describe 'command' _commands -- _global_commands
+}
+
+_yarn() {
+ local context state state_descr line
+ typeset -A opt_args
+
+ _arguments \
+ '(-h --help)'{-h,--help}'[output usage information]' \
+ '(-V --version)'{-V,--version}'[output the version number]' \
+ '--verbose[output verbose messages on internal operations]' \
+ '--offline[trigger an error if any required dependencies are not available in local cache]' \
+ '--prefer-offline[use network only if dependencies are not available in local cache]' \
+ '--strict-semver' \
+ '--json' \
+ "--ignore-scripts[don't run lifecycle scripts]" \
+ '--har[save HAR output of network traffic]' \
+ '--ignore-platform[ignore platform checks]' \
+ '--ignore-engines[ignore engines check]' \
+ '--ignore-optional[ignore optional dependencies]' \
+ '--force[install and build packages even if they were built before, overwrite lockfile]' \
+ '--skip-integrity-check[run install without checking if node_modules is installed]' \
+ '--check-files[install will verify file tree of packages for consistency]' \
+ "--no-bin-links[don't generate bin links when setting up packages]" \
+ '--flat[only allow one version of a package]' \
+ '(--prod --production)'{--prod,--production} \
+ "--no-lockfile[don't read or generate a lockfile]" \
+ "--pure-lockfile[don't generate a lockfile]" \
+ "--frozen-lockfile[don't generate a lockfile and fail if an update is needed]" \
+ '--link-duplicates[create hardlinks to the repeated modules in node_modules]' \
+ '--global-folder=[modules folder]:folder:_files -/' \
+ '--modules-folder=[rather than installing modules into the node_modules folder relative to the cwd, output them here]:folder:_files -/' \
+ '--cache-folder=[specify a custom folder to store the yarn cache]:folder:_files -/' \
+ '--mutex=[use a mutex to ensure only one yarn instance is executing]:type[\:specifier]' \
+ '--no-emoji[disable emoji in output]' \
+ '(-s --silent)'{-s,--silent}'[skip Yarn console logs, other types of logs (script output) will be printed]' \
+ '--proxy=:host:_hosts' \
+ '--https-proxy=:host:_hosts' \
+ '--no-progress[disable progress bar]' \
+ '--network-concurrency=[maximum number of concurrent network requests]:number' \
+ '--network-timeout=[TCP timeout for network requests]:milliseconds' \
+ '--non-interactive[do not show interactive prompts]' \
+ '1: :_yarn_commands_scripts' \
+ '*:: :->command_args'
+
+
+ case $state in
+ command_args)
+ case $words[1] in
+ help)
+ _arguments \
+ '1: :_yarn_commands' \
+ ;;
+
+ access)
+ _arguments \
+ '1: :(public restricted grant revoke ls-packages ls-collaborators edit)'
+ ;;
+
+ add)
+ _arguments \
+ '(-D --dev)'{-D,--dev}'[install packages in devDependencies]' \
+ '(-P --peer)'{-P,--peer}'[install packages in peerDependencies]' \
+ '(-O --optional)'{-O,--optional}'[install packages in optionalDependencies]' \
+ '(-E --exact)'{-E,--exact}'[install packages as exact versions]' \
+ '(-T --tilde)'{-T,--tilde}'[install the most recent release of the packages that have the same minor version]' \
+ '*:package-name:'
+ ;;
+
+ cache)
+ _arguments \
+ '1: :(ls dir clean)'
+ ;;
+
+ check)
+ _arguments \
+ '--integrity' \
+ '--verify-tree'
+ ;;
+
+ config)
+ _arguments \
+ '1: :(set get delete list)' \
+ '*:: :->config_args'
+ ;;
+
+ global)
+ _arguments \
+ '--prefix=[bin prefix to use to install binaries]' \
+ '1: :_yarn_global_commands' \
+ '*:: :->command_args'
+ ;;
+
+ info)
+ _arguments \
+ '1:package:' \
+ '2:field'
+ ;;
+
+ init)
+ _arguments \
+ '(-y --yes)'{-y,--yes}'[install packages in devDependencies]'
+ ;;
+
+ licenses)
+ _arguments \
+ '1: :(ls generate-disclaimer)' \
+ ;;
+
+ link|unlink|outdated)
+ _arguments \
+ '1:package' \
+ ;;
+
+ list)
+ _arguments \
+ '--depth[Limit the depth of the shown dependencies]:depth'
+ ;;
+
+ owner)
+ _arguments \
+ '1: :(ls add rm)' \
+ '*:: :->owner_args'
+ ;;
+
+ pack)
+ _arguments \
+ '(-f --filename)'{-f,--filename}':filename:_files'
+ ;;
+
+ publish)
+ _arguments \
+ '--new-version:version:' \
+ '--message:message:' \
+ '--no-git-tag-version' \
+ '--access:access:' \
+ '--tag:tag:' \
+ '1: :_files'
+ ;;
+
+ remove|upgrade)
+ _arguments \
+ '*:package:'
+ ;;
+
+ run)
+ _arguments \
+ '1: :_yarn_scripts'
+ ;;
+
+ tag)
+ _arguments \
+ '1: :(ls add rm)' \
+ '*:: :->tag_args'
+ ;;
+
+ team)
+ _arguments \
+ '1: :(create destroy add rm ls)' \
+ '*:: :->team_args'
+ ;;
+
+ version)
+ _arguments \
+ '--new-version:version:' \
+ '--message:message:' \
+ '--no-git-tag-version'
+ ;;
+
+ why)
+ _arguments \
+ '1:query:_files'
+ ;;
+ esac
+ ;;
+ esac
+
+ case $state in
+ config_args)
+ case $words[1] in
+ get|delete)
+ _arguments \
+ '1:key:'
+ ;;
+
+ set)
+ _arguments \
+ '(-g --global)'{-g,--global} \
+ '1:key:' \
+ '2:value:'
+ ;;
+ esac
+ ;;
+
+ owner_args)
+ case $words[1] in
+ ls)
+ _arguments \
+ '1:package:'
+ ;;
+
+ add|rm)
+ _arguments \
+ '1:user:' \
+ '2:package:'
+ ;;
+ esac
+ ;;
+
+ tag_args)
+ case $words[1] in
+ ls)
+ _arguments \
+ '1:package'
+ ;;
+
+ add|rm)
+ _arguments \
+ '1:package:' \
+ '2:tag:'
+ ;;
+ esac
+ ;;
+
+ team_args)
+ case $words[1] in
+ create|destroy|ls)
+ _arguments \
+ '1:scope\:team:'
+ ;;
+
+ add|rm)
+ _arguments \
+ '1:scope\:team:' \
+ '2:user:'
+ ;;
+ esac
+ ;;
+ esac
+}
+
+_yarn "$@"
+
+# Local Variables:
+# mode: Shell-Script
+# sh-indentation: 2
+# indent-tabs-mode: nil
+# sh-basic-offset: 2
+# End:
+# vim: ft=zsh sw=2 ts=2 et
diff --git a/plugins/yarn/yarn.plugin.zsh b/plugins/yarn/yarn.plugin.zsh
index eee811b16..7a9a7e4d4 100644
--- a/plugins/yarn/yarn.plugin.zsh
+++ b/plugins/yarn/yarn.plugin.zsh
@@ -1,98 +1,6 @@
-# Alias sorted alphabetically
-
alias y="yarn "
alias ya="yarn add"
alias ycc="yarn cache clean"
alias yh="yarn help"
alias yout="yarn outdated"
alias yui="yarn upgrade-interactive"
-
-_yarn ()
-{
- local -a _1st_arguments _dopts _dev _production
- local expl
- typeset -A opt_args
-
- _dopts=(
- '(--force)--force[This refetches all packages, even ones that were previously installed.]'
- )
-
- _installopts=(
- '(--flat)--flat[Only allow one version of a package. On the first run this will prompt you to choose a single version for each package that is depended on at multiple version ranges.]'
- '(--har)--har[Outputs an HTTP archive from all the network requests performed during the installation.]'
- '(--no-lockfile)--no-lockfile[Don’t read or generate a yarn.lock lockfile.]'
- '(--pure-lockfile)--pure-lockfile[Don’t generate a yarn.lock lockfile.]'
- )
-
- _dev=('(--dev)--dev[Save installed packages into the project"s package.json devDependencies]')
-
- _production=('(--production)--production[Do not install project devDependencies]')
-
- _upgrade=(
- '(--exact)--exact[Install exact version]'
- '(--tilde)--tilde[Install most recent release with the same minor version]'
- )
-
- _1st_arguments=(
- 'help:Display help information about yarn' \
- 'init:Initialize for the development of a package' \
- 'add:Add a package to use in your current package' \
- 'install:Install all the dependencies listed within package.json in the local node_modules folder' \
- 'publish:Publish a package to a package manager' \
- 'remove:Remove a package that will no longer be used in your current package' \
- 'cache:Clear the local cache. It will be populated again the next time yarn or yarn install is run' \
- 'clean:Frees up space by removing unnecessary files and folders from dependencies' \
- 'check:Verifies that versions of the package dependencies in the current project’s package.json matches that of yarn’s lock file' \
- 'ls:List all installed packages' \
- 'global:Makes binaries available to use on your operating system' \
- 'info: [] - fetch information about a package and return it in a tree format' \
- 'outdated:Checks for outdated package dependencies' \
- 'run:Runs a defined package script' \
- 'self-update:Updates Yarn to the latest version' \
- 'upgrade:Upgrades packages to their latest version based on the specified range' \
- 'upgrade-interactive:Selectively upgrades specific packages in a simple way' \
- 'why: - Show information about why a package is installed'
- )
- _arguments \
- '*:: :->subcmds' && return 0
-
- if (( CURRENT == 1 )); then
- _describe -t commands "yarn subcommand" _1st_arguments
- return
- fi
-
- case "$words[1]" in
- add)
- _arguments \
- $_dopts \
- $_dev \
- $_production
- ;;
- install)
- _arguments \
- $_installopts \
- $_dopts \
- $_dev \
- $_no_color \
- $_production
- ;;
- update)
- _arguments \
- $_dopts
- ;;
- remove)
- _arguments \
- $_dopts
- ;;
- upgrade-interactive)
- _arguments \
- $_upgrade
- ;;
- *)
- _arguments \
- ;;
- esac
-
-}
-
-compdef _yarn yarn
From 344b13c4a5f4fb69817efe148c9ed63fa428c5f3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Wed, 11 Jul 2018 21:21:01 +0200
Subject: [PATCH 191/644] yarn: add aliases for common commands
Fixes #5722
Fixes #5864
Fixes #5920
Fixes #6566
Fixes #6579
Fixes #6686
Fixes #6740
---
plugins/yarn/yarn.plugin.zsh | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/plugins/yarn/yarn.plugin.zsh b/plugins/yarn/yarn.plugin.zsh
index 7a9a7e4d4..fe752357f 100644
--- a/plugins/yarn/yarn.plugin.zsh
+++ b/plugins/yarn/yarn.plugin.zsh
@@ -1,6 +1,18 @@
-alias y="yarn "
+alias y="yarn"
alias ya="yarn add"
+alias yad="yarn add --dev"
+alias yap="yarn add --peer"
+alias yb="yarn build"
alias ycc="yarn cache clean"
+alias ygu="yarn global upgrade"
alias yh="yarn help"
+alias yin="yarn install"
+alias yls="yarn list"
alias yout="yarn outdated"
+alias yrm="yarn remove"
+alias yrun="yarn run"
+alias yst="yarn start"
+alias yt="yarn test"
+alias yuc="yarn global upgrade && yarn cache clean"
alias yui="yarn upgrade-interactive"
+alias yup="yarn upgrade"
From 4c0b82b482be7fd36d5abceefe9901ea5ab3da9e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Wed, 11 Jul 2018 21:40:24 +0200
Subject: [PATCH 192/644] yarn: add README
---
plugins/yarn/README.md | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
create mode 100644 plugins/yarn/README.md
diff --git a/plugins/yarn/README.md b/plugins/yarn/README.md
new file mode 100644
index 000000000..c4e6d6da5
--- /dev/null
+++ b/plugins/yarn/README.md
@@ -0,0 +1,33 @@
+# Yarn plugin
+
+This plugin adds completion for the [Yarn package manager](https://yarnpkg.com/en/),
+as well as some aliases for common Yarn commands.
+
+To use it, add `yarn` to the plugins array in your zshrc file:
+
+```zsh
+plugins=(... yarn)
+```
+
+## Aliases
+
+| Alias | Command | Description |
+|-------|-------------------------------------------|-------------------------------------------------------------|
+| y | `yarn` | The Yarn command |
+| ya | `yarn add` | Install a package in dependencies (`package.json`) |
+| yad | `yarn add --dev` | Install a package in devDependencies (`package.json`) |
+| yap | `yarn add --peer` | Install a package in peerDependencies (`package.json`) |
+| yb | `yarn build` | Run the build script defined in `package.json` |
+| ycc | `yarn cache clean` | Clean yarn's global cache of packages |
+| ygu | `yarn global upgrade` | Upgrade packages installed globally to their latest version |
+| yh | `yarn help` | Show help for a yarn command |
+| yin | `yarn install` | Install dependencies defined in `package.json` |
+| yls | `yarn list` | List installed packages |
+| yout | `yarn outdated` | Check for outdated package dependencies |
+| yrm | `yarn remove` | Remove installed packages |
+| yrun | `yarn run` | Run a defined package script |
+| yst | `yarn start` | Run the start script defined in `package.json` |
+| yt | `yarn test` | Run the test script defined in `package.json` |
+| yuc | `yarn global upgrade && yarn cache clean` | Upgrade global packages and clean yarn's global cache |
+| yui | `yarn upgrade-interactive` | Prompt for which outdated packages to upgrade |
+| yup | `yarn upgrade` | Upgrade packages to their latest version |
From f88396e3271b2459e92dfef37ed773fd01c446b8 Mon Sep 17 00:00:00 2001
From: Arun Sathiya
Date: Fri, 13 Jul 2018 02:38:22 +0530
Subject: [PATCH 193/644] wp-cli: fix README typo for wptu command (#6987)
---
plugins/wp-cli/README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/wp-cli/README.md b/plugins/wp-cli/README.md
index da398ed1a..4d8cad452 100644
--- a/plugins/wp-cli/README.md
+++ b/plugins/wp-cli/README.md
@@ -75,7 +75,7 @@ This plugin adds [tab completion](http://wp-cli.org/#complete) for `wp-cli` as w
- wptp='wp theme path'
- wpts='wp theme search'
- wptst='wp theme status'
-- wptu='wp theme updatet'
+- wptu='wp theme update'
### User
- wpuac='wp user add-cap'
From d3e3b2dd0d7c7574d2a47c0d3a0d79583c58b2b8 Mon Sep 17 00:00:00 2001
From: Cristian Consonni
Date: Fri, 13 Jul 2018 13:14:15 +0200
Subject: [PATCH 194/644] Add support for custom timestamp format in history
(#6770)
---
lib/history.zsh | 3 ++-
templates/zshrc.zsh-template | 5 ++++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/lib/history.zsh b/lib/history.zsh
index 7d4e59d00..62e02648b 100644
--- a/lib/history.zsh
+++ b/lib/history.zsh
@@ -23,7 +23,8 @@ case $HIST_STAMPS in
"mm/dd/yyyy") alias history='omz_history -f' ;;
"dd.mm.yyyy") alias history='omz_history -E' ;;
"yyyy-mm-dd") alias history='omz_history -i' ;;
- *) alias history='omz_history' ;;
+ "") alias history='omz_history' ;;
+ *) alias history="omz_history -t '$HIST_STAMPS'" ;;
esac
## History file configuration
diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template
index bba2d370d..5f98fb211 100644
--- a/templates/zshrc.zsh-template
+++ b/templates/zshrc.zsh-template
@@ -48,7 +48,10 @@ ZSH_THEME="robbyrussell"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
-# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
+# You can set one of the optional three formats:
+# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
+# or set a custom format using the strftime function format specifications,
+# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
From d302e3eebeb5e3dd25811fae7035c2427739be91 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Wed, 18 Jul 2018 23:34:38 +0200
Subject: [PATCH 195/644] bundler: fix bundle version git error
It seems that `bundle version` calls git to know the commit sha, while `bundle --version` only shows the version of bundler.
Fixes #6988
---
plugins/bundler/bundler.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
index ea199d09a..b0b286af5 100644
--- a/plugins/bundler/bundler.plugin.zsh
+++ b/plugins/bundler/bundler.plugin.zsh
@@ -55,7 +55,7 @@ done
bundle_install() {
if _bundler-installed && _within-bundled-project; then
- local bundler_version=`bundle version | cut -d' ' -f3`
+ local bundler_version=`bundle --version | cut -d' ' -f3`
if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then
if [[ "$OSTYPE" = (darwin|freebsd)* ]]
then
From a3ab45db8b10a44329d7b715e2457fdd666c696e Mon Sep 17 00:00:00 2001
From: Jon Mosco <1970496+jonmosco@users.noreply.github.com>
Date: Thu, 19 Jul 2018 10:32:31 -0400
Subject: [PATCH 196/644] updating kube-ps1 to align with upstream changes
(#6995)
---
plugins/kube-ps1/README.md | 49 ++++++------
plugins/kube-ps1/kube-ps1.plugin.zsh | 110 ++++++++++++++++-----------
2 files changed, 94 insertions(+), 65 deletions(-)
diff --git a/plugins/kube-ps1/README.md b/plugins/kube-ps1/README.md
index a572773a3..fcb73cd2d 100644
--- a/plugins/kube-ps1/README.md
+++ b/plugins/kube-ps1/README.md
@@ -1,13 +1,12 @@
-Kubernetes prompt for zsh
-=========================
+# Kubernetes prompt for zsh
-A Kubernetes (k8s) zsh prompt that displays the current cluster cluster
+A Kubernetes zsh prompt that displays the current cluster cluster
and the namespace.
Inspired by several tools used to simplify usage of kubectl
-NOTE: If you are not using zsh, check out [kube-ps1](https://github.com/jonmosco/kube-ps1) designed for bash
-as well as zsh.
+NOTE: If you are not using zsh, check out [kube-ps1](https://github.com/jonmosco/kube-ps1)
+designed for bash as well as zsh.
## Requirements
@@ -32,28 +31,33 @@ fast switching between clusters and namespaces.
The prompt layout is:
```
-(|:)
+(|:)
```
-Supported platforms:
-* k8s - Kubernetes
-* ocp - OpenShift
+## Enabling
-## Install
+In order to use kube-ps1 with Oh My Zsh, you'll need to enable them in the
+.zshrc file. You'll find the zshrc file in your $HOME directory. Open it with
+your favorite text editor and you'll see a spot to list all the plugins you
+want to load.
-1. Clone this repository
-2. Source the kube-ps1.zsh in your ~./.zshrc
-
-ZSH:
+```shell
+vim $HOME/.zshrc
```
-source path/kube-ps1.sh
-PROMPT='$(kube_ps1) '
+
+Add kube-ps1 to the list of enabled plugins:
+
+```shell
+plugins=(
+ git
+ kube-ps1
+)
```
## Colors
-The colors are of my opinion. Blue was used as the prefix to match the Kubernetes
-color as closely as possible. Red was chosen as the cluster name to stand out, and cyan
+Blue was used as the prefix to match the Kubernetes color as closely as
+possible. Red was chosen as the cluster name to stand out, and cyan
for the namespace. These can of course be changed.
## Customization
@@ -62,14 +66,15 @@ The default settings can be overridden in ~/.zshrc
| Variable | Default | Meaning |
| :------- | :-----: | ------- |
-| `KUBE_PS1_DEFAULT` | `true` | Default settings for the prompt |
+| `KUBE_PS1_BINARY` | `kubectl` | Default Kubernetes binary |
| `KUBE_PS1_PREFIX` | `(` | Prompt opening character |
-| `KUBE_PS1_DEFAULT_LABEL` | `⎈ ` | Default prompt symbol |
+| `KUBE_PS1_SYMBOL_ENABLE` | `true ` | Display the prompt Symbol. If set to `false`, this will also disable `KUBE_PS1_SEPARATOR` |
+| `KUBE_PS1_SYMBOL_DEFAULT` | `⎈ ` | Default prompt symbol. Unicode `\u2388` |
+| `KUBE_PS1_SYMBOL_USE_IMG` | `false` | ☸️ , Unicode `\u2638` as the prompt symbol |
+| `KUBE_PS1_NS_ENABLE` | `true` | Display the namespace. If set to `false`, this will also disable `KUBE_PS1_DIVIDER` |
| `KUBE_PS1_SEPERATOR` | `\|` | Separator between symbol and cluster name |
-| `KUBE_PS1_PLATFORM` | `kubectl` | Cluster type and binary to use |
| `KUBE_PS1_DIVIDER` | `:` | Separator between cluster and namespace |
| `KUBE_PS1_SUFFIX` | `)` | Prompt closing character |
-| `KUBE_PS1_DEFAULT_LABEL_IMG` | `false` | Use Kubernetes img as the label: ☸️ |
## Contributors
diff --git a/plugins/kube-ps1/kube-ps1.plugin.zsh b/plugins/kube-ps1/kube-ps1.plugin.zsh
index e1cb4339d..fadef80d7 100644
--- a/plugins/kube-ps1/kube-ps1.plugin.zsh
+++ b/plugins/kube-ps1/kube-ps1.plugin.zsh
@@ -1,9 +1,10 @@
#!/bin/zsh
# Kubernetes prompt helper for bash/zsh
+# ported to oh-my-zsh
# Displays current context and namespace
-# Copyright 2017 Jon Mosco
+# Copyright 2018 Jon Mosco
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -21,32 +22,39 @@
[[ -n $DEBUG ]] && set -x
setopt PROMPT_SUBST
-add-zsh-hook precmd _kube_ps1_load
+autoload -U add-zsh-hook
+add-zsh-hook precmd _kube_ps1_update_cache
zmodload zsh/stat
+zmodload zsh/datetime
# Default values for the prompt
-# Override these values in ~/.zshrc or ~/.bashrc
-KUBE_PS1_DEFAULT="${KUBE_PS1_DEFAULT:=true}"
-KUBE_PS1_PREFIX="("
-KUBE_PS1_DEFAULT_LABEL="${KUBE_PS1_DEFAULT_LABEL:="⎈ "}"
-KUBE_PS1_DEFAULT_LABEL_IMG="${KUBE_PS1_DEFAULT_LABEL_IMG:=false}"
-KUBE_PS1_SEPERATOR="|"
-KUBE_PS1_PLATFORM="${KUBE_PS1_PLATFORM:="kubectl"}"
-KUBE_PS1_DIVIDER=":"
-KUBE_PS1_SUFFIX=")"
-KUBE_PS1_UNAME=$(uname)
+# Override these values in ~/.zshrc
+KUBE_PS1_BINARY="${KUBE_PS1_BINARY:-kubectl}"
+KUBE_PS1_SYMBOL_ENABLE="${KUBE_PS1_SYMBOL_ENABLE:-true}"
+KUBE_PS1_SYMBOL_DEFAULT="${KUBE_PS1_SYMBOL_DEFAULT:-\u2388 }"
+KUBE_PS1_SYMBOL_USE_IMG="${KUBE_PS1_SYMBOL_USE_IMG:-false}"
+KUBE_PS1_NS_ENABLE="${KUBE_PS1_NS_ENABLE:-true}"
+KUBE_PS1_SEPARATOR="${KUBE_PS1_SEPARATOR-|}"
+KUBE_PS1_DIVIDER="${KUBE_PS1_DIVIDER-:}"
+KUBE_PS1_PREFIX="${KUBE_PS1_PREFIX-(}"
+KUBE_PS1_SUFFIX="${KUBE_PS1_SUFFIX-)}"
KUBE_PS1_LAST_TIME=0
-kube_ps1_label () {
+_kube_ps1_binary_check() {
+ command -v "$1" >/dev/null
+}
- [[ "${KUBE_PS1_DEFAULT_LABEL_IMG}" == false ]] && return
+_kube_ps1_symbol() {
+ [[ "${KUBE_PS1_SYMBOL_ENABLE}" == false ]] && return
- if [[ "${KUBE_PS1_DEFAULT_LABEL_IMG}" == true ]]; then
- local KUBE_LABEL="☸️ "
+ KUBE_PS1_SYMBOL="${KUBE_PS1_SYMBOL_DEFAULT}"
+ KUBE_PS1_SYMBOL_IMG="\u2638 "
+
+ if [[ "${KUBE_PS1_SYMBOL_USE_IMG}" == true ]]; then
+ KUBE_PS1_SYMBOL="${KUBE_PS1_SYMBOL_IMG}"
fi
- KUBE_PS1_DEFAULT_LABEL="${KUBE_LABEL}"
-
+ echo "${KUBE_PS1_SYMBOL}"
}
_kube_ps1_split() {
@@ -56,23 +64,45 @@ _kube_ps1_split() {
}
_kube_ps1_file_newer_than() {
-
local mtime
local file=$1
local check_time=$2
- mtime=$(stat +mtime "${file}")
- [ "${mtime}" -gt "${check_time}" ]
+ zmodload -e "zsh/stat"
+ if [[ "$?" -eq 0 ]]; then
+ mtime=$(stat +mtime "${file}")
+ elif stat -c "%s" /dev/null &> /dev/null; then
+ # GNU stat
+ mtime=$(stat -c %Y "${file}")
+ else
+ # BSD stat
+ mtime=$(stat -f %m "$file")
+ fi
+ [[ "${mtime}" -gt "${check_time}" ]]
}
-_kube_ps1_load() {
+_kube_ps1_update_cache() {
+ KUBECONFIG="${KUBECONFIG:=$HOME/.kube/config}"
+ if ! _kube_ps1_binary_check "${KUBE_PS1_BINARY}"; then
+ # No ability to fetch context/namespace; display N/A.
+ KUBE_PS1_CONTEXT="BINARY-N/A"
+ KUBE_PS1_NAMESPACE="N/A"
+ return
+ fi
+
+ if [[ "${KUBECONFIG}" != "${KUBE_PS1_KUBECONFIG_CACHE}" ]]; then
+ # User changed KUBECONFIG; unconditionally refetch.
+ KUBE_PS1_KUBECONFIG_CACHE=${KUBECONFIG}
+ _kube_ps1_get_context_ns
+ return
+ fi
+
# kubectl will read the environment variable $KUBECONFIG
# otherwise set it to ~/.kube/config
- KUBECONFIG="${KUBECONFIG:=$HOME/.kube/config}"
-
- for conf in $(_kube_ps1_split : "${KUBECONFIG}"); do
- # TODO: check existence of $conf
+ local conf
+ for conf in $(_kube_ps1_split : "${KUBECONFIG:-${HOME}/.kube/config}"); do
+ [[ -r "${conf}" ]] || continue
if _kube_ps1_file_newer_than "${conf}" "${KUBE_PS1_LAST_TIME}"; then
_kube_ps1_get_context_ns
return
@@ -83,26 +113,20 @@ _kube_ps1_load() {
_kube_ps1_get_context_ns() {
# Set the command time
- KUBE_PS1_LAST_TIME=$(date +%s)
+ KUBE_PS1_LAST_TIME=$EPOCHSECONDS
- if [[ "${KUBE_PS1_DEFAULT}" == true ]]; then
- local KUBE_BINARY="${KUBE_PS1_PLATFORM}"
- elif [[ "${KUBE_PS1_DEFAULT}" == false ]] && [[ "${KUBE_PS1_PLATFORM}" == "kubectl" ]];then
- local KUBE_BINARY="kubectl"
- elif [[ "${KUBE_PS1_PLATFORM}" == "oc" ]]; then
- local KUBE_BINARY="oc"
+ KUBE_PS1_CONTEXT="$(${KUBE_PS1_BINARY} config current-context 2>/dev/null)"
+ if [[ -z "${KUBE_PS1_CONTEXT}" ]]; then
+ KUBE_PS1_CONTEXT="N/A"
+ KUBE_PS1_NAMESPACE="N/A"
+ return
+ elif [[ "${KUBE_PS1_NS_ENABLE}" == true ]]; then
+ KUBE_PS1_NAMESPACE="$(${KUBE_PS1_BINARY} config view --minify --output 'jsonpath={..namespace}' 2>/dev/null)"
+ # Set namespace to 'default' if it is not defined
+ KUBE_PS1_NAMESPACE="${KUBE_PS1_NAMESPACE:-default}"
fi
-
- KUBE_PS1_CONTEXT="$(${KUBE_BINARY} config current-context)"
- KUBE_PS1_NAMESPACE="$(${KUBE_BINARY} config view --minify --output 'jsonpath={..namespace}')"
- # Set namespace to default if it is not defined
- KUBE_PS1_NAMESPACE="${KUBE_PS1_NAMESPACE:-default}"
-
}
-# source our symbol
-kube_ps1_label
-
# Build our prompt
kube_ps1 () {
local reset_color="%f"
@@ -111,7 +135,7 @@ kube_ps1 () {
local cyan="%F{cyan}"
KUBE_PS1="${reset_color}$KUBE_PS1_PREFIX"
- KUBE_PS1+="${blue}$KUBE_PS1_DEFAULT_LABEL"
+ KUBE_PS1+="${blue}$(_kube_ps1_symbol)"
KUBE_PS1+="${reset_color}$KUBE_PS1_SEPERATOR"
KUBE_PS1+="${red}$KUBE_PS1_CONTEXT${reset_color}"
KUBE_PS1+="$KUBE_PS1_DIVIDER"
From 626b30b2a3d99a03058fea167281163d8d96d6f9 Mon Sep 17 00:00:00 2001
From: Johan Kaving
Date: Thu, 19 Jul 2018 16:53:19 +0200
Subject: [PATCH 197/644] Update git-flow-avh to 0.6.0 (#6498)
This updates the git-flow-avh plugin to the latest version
from https://github.com/petervanderdoes/git-flow-completion
(0.6.0 at the time of this commit).
This mainly adds support for the "git flow bugfix" command.
This PR replaces #4626 as well as #4705, both of which adds support for the bugfix command but doesn't use the official version from https://github.com/petervanderdoes/git-flow-completion
Fixes #4705
Fixes #4626
Fixes #5903
---
plugins/git-flow-avh/git-flow-avh.plugin.zsh | 723 +++++++++++--------
1 file changed, 426 insertions(+), 297 deletions(-)
mode change 100644 => 100755 plugins/git-flow-avh/git-flow-avh.plugin.zsh
diff --git a/plugins/git-flow-avh/git-flow-avh.plugin.zsh b/plugins/git-flow-avh/git-flow-avh.plugin.zsh
old mode 100644
new mode 100755
index ba98fff01..1f3fa1e28
--- a/plugins/git-flow-avh/git-flow-avh.plugin.zsh
+++ b/plugins/git-flow-avh/git-flow-avh.plugin.zsh
@@ -22,398 +22,527 @@
_git-flow ()
{
- local curcontext="$curcontext" state line
- typeset -A opt_args
+ local curcontext="$curcontext" state line
+ typeset -A opt_args
- _arguments -C \
- ':command:->command' \
- '*::options:->options'
+ _arguments -C \
+ ':command:->command' \
+ '*::options:->options'
- case $state in
- (command)
+ case $state in
+ (command)
- local -a subcommands
- subcommands=(
- 'init:Initialize a new git repo with support for the branching model.'
- 'feature:Manage your feature branches.'
- 'config:Manage your configuration.'
- 'release:Manage your release branches.'
- 'hotfix:Manage your hotfix branches.'
- 'support:Manage your support branches.'
- 'version:Shows version information.'
- 'finish:Finish the branch you are currently on.'
- 'delete:Delete the branch you are currently on.'
- 'publish:Publish the branch you are currently on.'
- )
- _describe -t commands 'git flow' subcommands
- ;;
+ local -a subcommands
+ subcommands=(
+ 'init:Initialize a new git repo with support for the branching model.'
+ 'feature:Manage your feature branches.'
+ 'bugfix:Manage your bugfix branches.'
+ 'config:Manage your configuration.'
+ 'release:Manage your release branches.'
+ 'hotfix:Manage your hotfix branches.'
+ 'support:Manage your support branches.'
+ 'version:Shows version information.'
+ 'finish:Finish the branch you are currently on.'
+ 'delete:Delete the branch you are currently on.'
+ 'publish:Publish the branch you are currently on.'
+ 'rebase:Rebase the branch you are currently on.'
+ )
+ _describe -t commands 'git flow' subcommands
+ ;;
- (options)
- case $line[1] in
+ (options)
+ case $line[1] in
- (init)
- _arguments \
- -f'[Force setting of gitflow branches, even if already configured]'
- ;;
+ (init)
+ _arguments \
+ -f'[Force setting of gitflow branches, even if already configured]'
+ ;;
- (version)
- ;;
+ (version)
+ ;;
- (hotfix)
- __git-flow-hotfix
- ;;
+ (hotfix)
+ __git-flow-hotfix
+ ;;
- (release)
- __git-flow-release
- ;;
+ (release)
+ __git-flow-release
+ ;;
- (feature)
- __git-flow-feature
- ;;
- (config)
- __git-flow-config
- ;;
+ (feature)
+ __git-flow-feature
+ ;;
+ (bugfix)
+ __git-flow-bugfix
+ ;;
- esac
- ;;
- esac
+ (config)
+ __git-flow-config
+ ;;
+
+ esac
+ ;;
+ esac
}
__git-flow-release ()
{
- local curcontext="$curcontext" state line
- typeset -A opt_args
+ local curcontext="$curcontext" state line
+ typeset -A opt_args
- _arguments -C \
- ':command:->command' \
- '*::options:->options'
+ _arguments -C \
+ ':command:->command' \
+ '*::options:->options'
- case $state in
- (command)
+ case $state in
+ (command)
- local -a subcommands
- subcommands=(
- 'start:Start a new release branch.'
- 'finish:Finish a release branch.'
- 'list:List all your release branches. (Alias to `git flow release`)'
- 'publish:Publish release branch to remote.'
- 'track:Checkout remote release branch.'
- 'delete:Delete a release branch.'
- )
- _describe -t commands 'git flow release' subcommands
- _arguments \
- -v'[Verbose (more) output]'
- ;;
+ local -a subcommands
+ subcommands=(
+ 'start:Start a new release branch.'
+ 'finish:Finish a release branch.'
+ 'list:List all your release branches. (Alias to `git flow release`)'
+ 'publish:Publish release branch to remote.'
+ 'track:Checkout remote release branch.'
+ 'rebase:Rebase from integration branch.'
+ 'delete:Delete a release branch.'
+ )
+ _describe -t commands 'git flow release' subcommands
+ _arguments \
+ -v'[Verbose (more) output]'
+ ;;
- (options)
- case $line[1] in
+ (options)
+ case $line[1] in
- (start)
- _arguments \
- -F'[Fetch from origin before performing finish]'\
- ':version:__git_flow_version_list'
- ;;
+ (start)
+ _arguments \
+ -F'[Fetch from origin before performing finish]'\
+ ':version:__git_flow_version_list'
+ ;;
- (finish)
- _arguments \
- -F'[Fetch from origin before performing finish]' \
- -s'[Sign the release tag cryptographically]'\
- -u'[Use the given GPG-key for the digital signature (implies -s)]'\
- -m'[Use the given tag message]'\
- -p'[Push to $ORIGIN after performing finish]'\
- ':version:__git_flow_version_list'
- ;;
+ (finish)
+ _arguments \
+ -F'[Fetch from origin before performing finish]' \
+ -s'[Sign the release tag cryptographically]'\
+ -u'[Use the given GPG-key for the digital signature (implies -s)]'\
+ -m'[Use the given tag message]'\
+ -p'[Push to $ORIGIN after performing finish]'\
+ ':version:__git_flow_version_list'
+ ;;
- (delete)
- _arguments \
- -f'[Force deletion]' \
- -r'[Delete remote branch]' \
- ':version:__git_flow_version_list'
- ;;
+ (delete)
+ _arguments \
+ -f'[Force deletion]' \
+ -r'[Delete remote branch]' \
+ ':version:__git_flow_version_list'
+ ;;
- (publish)
- _arguments \
- ':version:__git_flow_version_list'
- ;;
+ (publish)
+ _arguments \
+ ':version:__git_flow_version_list'
+ ;;
- (track)
- _arguments \
- ':version:__git_flow_version_list'
- ;;
+ (track)
+ _arguments \
+ ':version:__git_flow_version_list'
+ ;;
- *)
- _arguments \
- -v'[Verbose (more) output]'
- ;;
- esac
- ;;
- esac
+ (rebase)
+ _arguments \
+ -i'[Do an interactive rebase]' \
+ ':branch:__git_branch_names'
+ ;;
+
+ *)
+ _arguments \
+ -v'[Verbose (more) output]'
+ ;;
+ esac
+ ;;
+ esac
}
__git-flow-hotfix ()
{
- local curcontext="$curcontext" state line
- typeset -A opt_args
+ local curcontext="$curcontext" state line
+ typeset -A opt_args
- _arguments -C \
- ':command:->command' \
- '*::options:->options'
+ _arguments -C \
+ ':command:->command' \
+ '*::options:->options'
- case $state in
- (command)
+ case $state in
+ (command)
- local -a subcommands
- subcommands=(
- 'start:Start a new hotfix branch.'
- 'finish:Finish a hotfix branch.'
- 'delete:Delete a hotfix branch.'
- 'list:List all your hotfix branches. (Alias to `git flow hotfix`)'
- )
- _describe -t commands 'git flow hotfix' subcommands
- _arguments \
- -v'[Verbose (more) output]'
- ;;
+ local -a subcommands
+ subcommands=(
+ 'start:Start a new hotfix branch.'
+ 'finish:Finish a hotfix branch.'
+ 'delete:Delete a hotfix branch.'
+ 'rebase:Rebase from integration branch.'
+ 'list:List all your hotfix branches. (Alias to `git flow hotfix`)'
+ 'rename:Rename a hotfix branch.'
+ )
+ _describe -t commands 'git flow hotfix' subcommands
+ _arguments \
+ -v'[Verbose (more) output]'
+ ;;
- (options)
- case $line[1] in
+ (options)
+ case $line[1] in
- (start)
- _arguments \
- -F'[Fetch from origin before performing finish]'\
- ':hotfix:__git_flow_version_list'\
- ':branch-name:__git_branch_names'
- ;;
+ (start)
+ _arguments \
+ -F'[Fetch from origin before performing finish]'\
+ ':hotfix:__git_flow_version_list'\
+ ':branch-name:__git_branch_names'
+ ;;
- (finish)
- _arguments \
- -F'[Fetch from origin before performing finish]' \
- -s'[Sign the release tag cryptographically]'\
- -u'[Use the given GPG-key for the digital signature (implies -s)]'\
- -m'[Use the given tag message]'\
- -p'[Push to $ORIGIN after performing finish]'\
- ':hotfix:__git_flow_hotfix_list'
- ;;
+ (finish)
+ _arguments \
+ -F'[Fetch from origin before performing finish]' \
+ -s'[Sign the release tag cryptographically]'\
+ -u'[Use the given GPG-key for the digital signature (implies -s)]'\
+ -m'[Use the given tag message]'\
+ -p'[Push to $ORIGIN after performing finish]'\
+ ':hotfix:__git_flow_hotfix_list'
+ ;;
- (delete)
- _arguments \
- -f'[Force deletion]' \
- -r'[Delete remote branch]' \
- ':hotfix:__git_flow_hotfix_list'
- ;;
+ (delete)
+ _arguments \
+ -f'[Force deletion]' \
+ -r'[Delete remote branch]' \
+ ':hotfix:__git_flow_hotfix_list'
+ ;;
- *)
- _arguments \
- -v'[Verbose (more) output]'
- ;;
- esac
- ;;
- esac
+ (rebase)
+ _arguments \
+ -i'[Do an interactive rebase]' \
+ ':branch:__git_branch_names'
+ ;;
+
+ *)
+ _arguments \
+ -v'[Verbose (more) output]'
+ ;;
+ esac
+ ;;
+ esac
}
__git-flow-feature ()
{
- local curcontext="$curcontext" state line
- typeset -A opt_args
+ local curcontext="$curcontext" state line
+ typeset -A opt_args
- _arguments -C \
- ':command:->command' \
- '*::options:->options'
+ _arguments -C \
+ ':command:->command' \
+ '*::options:->options'
- case $state in
- (command)
+ case $state in
+ (command)
- local -a subcommands
- subcommands=(
- 'start:Start a new feature branch.'
- 'finish:Finish a feature branch.'
- 'delete:Delete a feature branch.'
- 'list:List all your feature branches. (Alias to `git flow feature`)'
- 'publish:Publish feature branch to remote.'
- 'track:Checkout remote feature branch.'
- 'diff:Show all changes.'
- 'rebase:Rebase from integration branch.'
- 'checkout:Checkout local feature branch.'
- 'pull:Pull changes from remote.'
- )
- _describe -t commands 'git flow feature' subcommands
- _arguments \
- -v'[Verbose (more) output]'
- ;;
+ local -a subcommands
+ subcommands=(
+ 'start:Start a new feature branch.'
+ 'finish:Finish a feature branch.'
+ 'delete:Delete a feature branch.'
+ 'list:List all your feature branches. (Alias to `git flow feature`)'
+ 'publish:Publish feature branch to remote.'
+ 'track:Checkout remote feature branch.'
+ 'diff:Show all changes.'
+ 'rebase:Rebase from integration branch.'
+ 'checkout:Checkout local feature branch.'
+ 'pull:Pull changes from remote.'
+ 'rename:Rename a feature branch.'
+ )
+ _describe -t commands 'git flow feature' subcommands
+ _arguments \
+ -v'[Verbose (more) output]'
+ ;;
- (options)
- case $line[1] in
+ (options)
+ case $line[1] in
- (start)
- _arguments \
- -F'[Fetch from origin before performing finish]'\
- ':feature:__git_flow_feature_list'\
- ':branch-name:__git_branch_names'
- ;;
+ (start)
+ _arguments \
+ -F'[Fetch from origin before performing finish]'\
+ ':feature:__git_flow_feature_list'\
+ ':branch-name:__git_branch_names'
+ ;;
- (finish)
- _arguments \
- -F'[Fetch from origin before performing finish]' \
- -r'[Rebase instead of merge]'\
- ':feature:__git_flow_feature_list'
- ;;
+ (finish)
+ _arguments \
+ -F'[Fetch from origin before performing finish]' \
+ -r'[Rebase instead of merge]'\
+ ':feature:__git_flow_feature_list'
+ ;;
- (delete)
- _arguments \
- -f'[Force deletion]' \
- -r'[Delete remote branch]' \
- ':feature:__git_flow_feature_list'
- ;;
+ (delete)
+ _arguments \
+ -f'[Force deletion]' \
+ -r'[Delete remote branch]' \
+ ':feature:__git_flow_feature_list'
+ ;;
- (publish)
- _arguments \
- ':feature:__git_flow_feature_list'\
- ;;
+ (publish)
+ _arguments \
+ ':feature:__git_flow_feature_list'\
+ ;;
- (track)
- _arguments \
- ':feature:__git_flow_feature_list'\
- ;;
+ (track)
+ _arguments \
+ ':feature:__git_flow_feature_list'\
+ ;;
- (diff)
- _arguments \
- ':branch:__git_branch_names'\
- ;;
+ (diff)
+ _arguments \
+ ':branch:__git_branch_names'\
+ ;;
- (rebase)
- _arguments \
- -i'[Do an interactive rebase]' \
- ':branch:__git_branch_names'
- ;;
+ (rebase)
+ _arguments \
+ -i'[Do an interactive rebase]' \
+ ':branch:__git_branch_names'
+ ;;
- (checkout)
- _arguments \
- ':branch:__git_flow_feature_list'\
- ;;
+ (checkout)
+ _arguments \
+ ':branch:__git_flow_feature_list'\
+ ;;
- (pull)
- _arguments \
- ':remote:__git_remotes'\
- ':branch:__git_branch_names'
- ;;
+ (pull)
+ _arguments \
+ ':remote:__git_remotes'\
+ ':branch:__git_branch_names'
+ ;;
- *)
- _arguments \
- -v'[Verbose (more) output]'
- ;;
- esac
- ;;
- esac
+ *)
+ _arguments \
+ -v'[Verbose (more) output]'
+ ;;
+ esac
+ ;;
+ esac
+}
+
+__git-flow-bugfix ()
+{
+ local curcontext="$curcontext" state line
+ typeset -A opt_args
+
+ _arguments -C \
+ ':command:->command' \
+ '*::options:->options'
+
+ case $state in
+ (command)
+
+ local -a subcommands
+ subcommands=(
+ 'start:Start a new bugfix branch.'
+ 'finish:Finish a bugfix branch.'
+ 'delete:Delete a bugfix branch.'
+ 'list:List all your bugfix branches. (Alias to `git flow bugfix`)'
+ 'publish:Publish bugfix branch to remote.'
+ 'track:Checkout remote bugfix branch.'
+ 'diff:Show all changes.'
+ 'rebase:Rebase from integration branch.'
+ 'checkout:Checkout local bugfix branch.'
+ 'pull:Pull changes from remote.'
+ 'rename:Rename a bugfix branch.'
+ )
+ _describe -t commands 'git flow bugfix' subcommands
+ _arguments \
+ -v'[Verbose (more) output]'
+ ;;
+
+ (options)
+ case $line[1] in
+
+ (start)
+ _arguments \
+ -F'[Fetch from origin before performing finish]'\
+ ':bugfix:__git_flow_bugfix_list'\
+ ':branch-name:__git_branch_names'
+ ;;
+
+ (finish)
+ _arguments \
+ -F'[Fetch from origin before performing finish]' \
+ -r'[Rebase instead of merge]'\
+ ':bugfix:__git_flow_bugfix_list'
+ ;;
+
+ (delete)
+ _arguments \
+ -f'[Force deletion]' \
+ -r'[Delete remote branch]' \
+ ':bugfix:__git_flow_bugfix_list'
+ ;;
+
+ (publish)
+ _arguments \
+ ':bugfix:__git_flow_bugfix_list'\
+ ;;
+
+ (track)
+ _arguments \
+ ':bugfix:__git_flow_bugfix_list'\
+ ;;
+
+ (diff)
+ _arguments \
+ ':branch:__git_branch_names'\
+ ;;
+
+ (rebase)
+ _arguments \
+ -i'[Do an interactive rebase]' \
+ ':branch:__git_branch_names'
+ ;;
+
+ (checkout)
+ _arguments \
+ ':branch:__git_flow_bugfix_list'\
+ ;;
+
+ (pull)
+ _arguments \
+ ':remote:__git_remotes'\
+ ':branch:__git_branch_names'
+ ;;
+
+ *)
+ _arguments \
+ -v'[Verbose (more) output]'
+ ;;
+ esac
+ ;;
+ esac
}
__git-flow-config ()
{
- local curcontext="$curcontext" state line
- typeset -A opt_args
+ local curcontext="$curcontext" state line
+ typeset -A opt_args
- _arguments -C \
- ':command:->command' \
- '*::options:->options'
+ _arguments -C \
+ ':command:->command' \
+ '*::options:->options'
- case $state in
- (command)
+ case $state in
+ (command)
- local -a subcommands
- subcommands=(
- 'list:List the configuration. (Alias to `git flow config`)'
- 'set:Set the configuration option'
- )
- _describe -t commands 'git flow config' subcommands
- ;;
+ local -a subcommands
+ subcommands=(
+ 'list:List the configuration. (Alias to `git flow config`)'
+ 'set:Set the configuration option'
+ )
+ _describe -t commands 'git flow config' subcommands
+ ;;
- (options)
- case $line[1] in
+ (options)
+ case $line[1] in
- (set)
- _arguments \
- --local'[Use repository config file]' \
- --global'[Use global config file]'\
- --system'[Use system config file]'\
- --file'[Use given config file]'\
- ':option:(master develop feature hotfix release support versiontagprefix)'
- ;;
+ (set)
+ _arguments \
+ --local'[Use repository config file]' \
+ --global'[Use global config file]'\
+ --system'[Use system config file]'\
+ --file'[Use given config file]'\
+ ':option:(master develop feature hotfix release support versiontagprefix)'
+ ;;
- *)
- _arguments \
- --local'[Use repository config file]' \
- --global'[Use global config file]'\
- --system'[Use system config file]'\
- --file'[Use given config file]'
- ;;
- esac
- ;;
- esac
+ *)
+ _arguments \
+ --local'[Use repository config file]' \
+ --global'[Use global config file]'\
+ --system'[Use system config file]'\
+ --file'[Use given config file]'
+ ;;
+ esac
+ ;;
+ esac
}
__git_flow_version_list ()
{
- local expl
- declare -a versions
+ local expl
+ declare -a versions
- versions=(${${(f)"$(_call_program versions git flow release list 2> /dev/null | tr -d ' |*')"}})
- __git_command_successful || return
+ versions=(${${(f)"$(_call_program versions git flow release list 2> /dev/null | tr -d ' |*')"}})
+ __git_command_successful || return
- _wanted versions expl 'version' compadd $versions
+ _wanted versions expl 'version' compadd $versions
}
__git_flow_feature_list ()
{
- local expl
- declare -a features
+ local expl
+ declare -a features
- features=(${${(f)"$(_call_program features git flow feature list 2> /dev/null | tr -d ' |*')"}})
- __git_command_successful || return
+ features=(${${(f)"$(_call_program features git flow feature list 2> /dev/null | tr -d ' |*')"}})
+ __git_command_successful || return
- _wanted features expl 'feature' compadd $features
+ _wanted features expl 'feature' compadd $features
+}
+
+__git_flow_bugfix_list ()
+{
+ local expl
+ declare -a bugfixes
+
+ bugfixes=(${${(f)"$(_call_program bugfixes git flow bugfix list 2> /dev/null | tr -d ' |*')"}})
+ __git_command_successful || return
+
+ _wanted bugfixes expl 'bugfix' compadd $bugfixes
}
__git_remotes () {
- local expl gitdir remotes
+ local expl gitdir remotes
- gitdir=$(_call_program gitdir git rev-parse --git-dir 2>/dev/null)
- __git_command_successful || return
+ gitdir=$(_call_program gitdir git rev-parse --git-dir 2>/dev/null)
+ __git_command_successful || return
- remotes=(${${(f)"$(_call_program remotes git config --get-regexp '"^remote\..*\.url$"')"}//#(#b)remote.(*).url */$match[1]})
- __git_command_successful || return
+ remotes=(${${(f)"$(_call_program remotes git config --get-regexp '"^remote\..*\.url$"')"}//#(#b)remote.(*).url */$match[1]})
+ __git_command_successful || return
- # TODO: Should combine the two instead of either or.
- if (( $#remotes > 0 )); then
- _wanted remotes expl remote compadd $* - $remotes
- else
- _wanted remotes expl remote _files $* - -W "($gitdir/remotes)" -g "$gitdir/remotes/*"
- fi
+ # TODO: Should combine the two instead of either or.
+ if (( $#remotes > 0 )); then
+ _wanted remotes expl remote compadd $* - $remotes
+ else
+ _wanted remotes expl remote _files $* - -W "($gitdir/remotes)" -g "$gitdir/remotes/*"
+ fi
}
__git_flow_hotfix_list ()
{
- local expl
- declare -a hotfixes
+ local expl
+ declare -a hotfixes
- hotfixes=(${${(f)"$(_call_program hotfixes git flow hotfix list 2> /dev/null | tr -d ' |*')"}})
- __git_command_successful || return
+ hotfixes=(${${(f)"$(_call_program hotfixes git flow hotfix list 2> /dev/null | tr -d ' |*')"}})
+ __git_command_successful || return
- _wanted hotfixes expl 'hotfix' compadd $hotfixes
+ _wanted hotfixes expl 'hotfix' compadd $hotfixes
}
__git_branch_names () {
- local expl
- declare -a branch_names
+ local expl
+ declare -a branch_names
- branch_names=(${${(f)"$(_call_program branchrefs git for-each-ref --format='"%(refname)"' refs/heads 2>/dev/null)"}#refs/heads/})
- __git_command_successful || return
+ branch_names=(${${(f)"$(_call_program branchrefs git for-each-ref --format='"%(refname)"' refs/heads 2>/dev/null)"}#refs/heads/})
+ __git_command_successful || return
- _wanted branch-names expl branch-name compadd $* - $branch_names
+ _wanted branch-names expl branch-name compadd $* - $branch_names
}
__git_command_successful () {
- if (( ${#pipestatus:#0} > 0 )); then
- _message 'not a git repository'
- return 1
- fi
- return 0
+ if (( ${#pipestatus:#0} > 0 )); then
+ _message 'not a git repository'
+ return 1
+ fi
+ return 0
}
zstyle ':completion:*:*:git:*' user-commands flow:'provide high-level repository operations'
From 6ca57e035cc7c199ca7c1d893594270ec570f4d3 Mon Sep 17 00:00:00 2001
From: Thi
Date: Fri, 20 Jul 2018 00:20:45 +0900
Subject: [PATCH 198/644] [plugins/xcode] Fix opening project using a wrong
Xcode version (#6829)
---
plugins/xcode/xcode.plugin.zsh | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/plugins/xcode/xcode.plugin.zsh b/plugins/xcode/xcode.plugin.zsh
index b46e05f2f..b80c3e36d 100644
--- a/plugins/xcode/xcode.plugin.zsh
+++ b/plugins/xcode/xcode.plugin.zsh
@@ -22,8 +22,11 @@ function xc {
fi
return 1
else
- echo "Found ${xcode_proj[1]}"
- open "${xcode_proj[1]}"
+ local active_path
+ active_path=$(xcode-select -p)
+ active_path=${active_path%%/Contents/Developer*}
+ echo "Found ${xcode_proj[1]}. Opening with ${active_path}"
+ open -a "$active_path" "${xcode_proj[1]}"
fi
}
From a1448e9f8a62164caae47a2f48f9c9766c1eaa60 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Thu, 19 Jul 2018 23:02:25 +0200
Subject: [PATCH 199/644] example: move example theme to custom folder
---
custom/themes/example.zsh-theme | 3 +++
themes/example.zsh-theme | 5 -----
2 files changed, 3 insertions(+), 5 deletions(-)
delete mode 100644 themes/example.zsh-theme
diff --git a/custom/themes/example.zsh-theme b/custom/themes/example.zsh-theme
index 6f9c9db8c..ef8f1c630 100644
--- a/custom/themes/example.zsh-theme
+++ b/custom/themes/example.zsh-theme
@@ -1 +1,4 @@
# Put your custom themes in this folder.
+# Example:
+
+PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%~ %{$reset_color%}%% "
diff --git a/themes/example.zsh-theme b/themes/example.zsh-theme
deleted file mode 100644
index dbd9dc9c9..000000000
--- a/themes/example.zsh-theme
+++ /dev/null
@@ -1,5 +0,0 @@
-# Found on the ZshWiki
-# http://zshwiki.org/home/config/prompt
-#
-
-PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%~ %{$reset_color%}%% "
\ No newline at end of file
From 9544316ef95c2aa1e75101a7dce545b4604b3ca6 Mon Sep 17 00:00:00 2001
From: Lars Schneider
Date: Tue, 24 Jul 2018 22:55:48 +0200
Subject: [PATCH 200/644] add -F and -X to default $LESS environment variable
(#6611)
The option '-F' causes 'less' to automatically quit if the contents fit
the screen and the option '-X' causes 'less' to not clear the screen after
quit. I think both options are generally useful for terminal applications.
They are in particular useful for Git as it runs all output through a
pager. Git will run 'less' with '-FRX' by default if the environment
variable $LESS is not defined [1]. Since oh-my-zsh used to set $LESS to
'-R', Git would not override this setting. Consequently, Git would
display even a single line of output in a pager and the user would need
to explicitly quit that pager (see mailing list discussion [2]).
Therefore, lets change the oh-my-zsh default value for $LESS to '-FRX'.
This would be useful for oh-my-zsh Git users and likely for users of
other applications that use 'less' too.
[1] https://github.com/git/git/blob/36438dc19dd2a305dddebd44bf7a65f1a220075b/Documentation/config.txt#L819-L821
[2] https://public-inbox.org/git/2412A603-4382-4AF5-97D0-D16D5FAAFE28@eluvio.com/
---
lib/misc.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/misc.zsh b/lib/misc.zsh
index 3052b7710..90a8d62f3 100644
--- a/lib/misc.zsh
+++ b/lib/misc.zsh
@@ -20,7 +20,7 @@ setopt long_list_jobs
## pager
env_default PAGER 'less'
-env_default LESS '-R'
+env_default LESS '-FRX'
## super user alias
alias _='sudo'
From a24a0b1a8e464fd4c6ab6c2f95ef5a8f025ff093 Mon Sep 17 00:00:00 2001
From: MarkPochert
Date: Sun, 29 Jul 2018 17:43:15 +0200
Subject: [PATCH 201/644] Update z to latest version (#7021)
---
plugins/z/z.1 | 6 +++-
plugins/z/z.sh | 75 ++++++++++++++++++++++++++++----------------------
2 files changed, 47 insertions(+), 34 deletions(-)
diff --git a/plugins/z/z.1 b/plugins/z/z.1
index bbc1bf5df..d4cac1ac2 100644
--- a/plugins/z/z.1
+++ b/plugins/z/z.1
@@ -22,6 +22,9 @@ OPTIONS
\fB\-c\fR
restrict matches to subdirectories of the current directory
.TP
+\fB\-e\fR
+echo the best match, don't cd
+.TP
\fB\-h\fR
show a brief help message
.TP
@@ -90,7 +93,8 @@ Set \fB$_Z_OWNER\fR to allow usage when in 'sudo -s' mode.
(These settings should go in .bashrc/.zshrc before the line added above.)
.RE
.RS
-Install the provided man page \fBz.1\fR somewhere like \fB/usr/local/man/man1\fR.
+Install the provided man page \fBz.1\fR somewhere in your \f$MANPATH, like
+\fB/usr/local/man/man1\fR.
.RE
.SS
Aging:
diff --git a/plugins/z/z.sh b/plugins/z/z.sh
index d0eeb97ef..4fc75dc6a 100644
--- a/plugins/z/z.sh
+++ b/plugins/z/z.sh
@@ -1,4 +1,4 @@
-# Copyright (c) 2009 rupa deadwyler under the WTFPL license
+# Copyright (c) 2009 rupa deadwyler. Licensed under the WTFPL license, Version 2
# maintains a jump-list of the directories you actually use
#
@@ -21,6 +21,7 @@
# * z -r foo # cd to highest ranked dir matching foo
# * z -t foo # cd to most recently accessed dir matching foo
# * z -l foo # list matches instead of cd
+# * z -e foo # echo the best match, don't cd
# * z -c foo # restrict matches to subdirs of $PWD
[ -d "${_Z_DATA:-$HOME/.z}" ] && {
@@ -31,9 +32,21 @@ _z() {
local datafile="${_Z_DATA:-$HOME/.z}"
+ # if symlink, dereference
+ [ -h "$datafile" ] && datafile=$(readlink "$datafile")
+
# bail if we don't own ~/.z and $_Z_OWNER not set
[ -z "$_Z_OWNER" -a -f "$datafile" -a ! -O "$datafile" ] && return
+ _z_dirs () {
+ local line
+ while read line; do
+ # only count directories
+ [ -d "${line%%\|*}" ] && echo "$line"
+ done < "$datafile"
+ return 0
+ }
+
# add entries
if [ "$1" = "--add" ]; then
shift
@@ -49,10 +62,7 @@ _z() {
# maintain the data file
local tempfile="$datafile.$RANDOM"
- while read line; do
- # only count directories
- [ -d "${line%%\|*}" ] && echo $line
- done < "$datafile" | awk -v path="$*" -v now="$(date +%s)" -F"|" '
+ _z_dirs | awk -v path="$*" -v now="$(date +%s)" -F"|" '
BEGIN {
rank[path] = 1
time[path] = now
@@ -75,7 +85,7 @@ _z() {
} else for( x in rank ) print x "|" rank[x] "|" time[x]
}
' 2>/dev/null >| "$tempfile"
- # do our best to avoid clobbering the datafile in a race condition
+ # do our best to avoid clobbering the datafile in a race condition.
if [ $? -ne 0 -a -f "$datafile" ]; then
env rm -f "$tempfile"
else
@@ -85,17 +95,15 @@ _z() {
# tab completion
elif [ "$1" = "--complete" -a -s "$datafile" ]; then
- while read line; do
- [ -d "${line%%\|*}" ] && echo $line
- done < "$datafile" | awk -v q="$2" -F"|" '
+ _z_dirs | awk -v q="$2" -F"|" '
BEGIN {
- if( q == tolower(q) ) imatch = 1
q = substr(q, 3)
- gsub(" ", ".*", q)
+ if( q == tolower(q) ) imatch = 1
+ gsub(/ /, ".*", q)
}
{
if( imatch ) {
- if( tolower($1) ~ tolower(q) ) print $1
+ if( tolower($1) ~ q ) print $1
} else if( $1 ~ q ) print $1
}
' 2>/dev/null
@@ -106,11 +114,12 @@ _z() {
--) while [ "$1" ]; do shift; local fnd="$fnd${fnd:+ }$1";done;;
-*) local opt=${1:1}; while [ "$opt" ]; do case ${opt:0:1} in
c) local fnd="^$PWD $fnd";;
- h) echo "${_Z_CMD:-z} [-chlrtx] args" >&2; return;;
- x) sed -i -e "\:^${PWD}|.*:d" "$datafile";;
+ e) local echo=1;;
+ h) echo "${_Z_CMD:-z} [-cehlrtx] args" >&2; return;;
l) local list=1;;
r) local typ="rank";;
t) local typ="recent";;
+ x) sed -i -e "\:^${PWD}|.*:d" "$datafile";;
esac; opt=${opt:1}; done;;
*) local fnd="$fnd${fnd:+ }$1";;
esac; local last=$1; [ "$#" -gt 0 ] && shift; done
@@ -119,16 +128,14 @@ _z() {
# if we hit enter on a completion just go there
case "$last" in
# completions will always start with /
- /*) [ -z "$list" -a -d "$last" ] && cd "$last" && return;;
+ /*) [ -z "$list" -a -d "$last" ] && builtin cd "$last" && return;;
esac
# no file yet
[ -f "$datafile" ] || return
local cd
- cd="$(while read line; do
- [ -d "${line%%\|*}" ] && echo $line
- done < "$datafile" | awk -v t="$(date +%s)" -v list="$list" -v typ="$typ" -v q="$fnd" -F"|" '
+ cd="$( < <( _z_dirs ) awk -v t="$(date +%s)" -v list="$list" -v typ="$typ" -v q="$fnd" -F"|" '
function frecent(rank, time) {
# relate frequency and time
dx = t - time
@@ -137,19 +144,21 @@ _z() {
if( dx < 604800 ) return rank / 2
return rank / 4
}
- function output(files, out, common) {
+ function output(matches, best_match, common) {
# list or return the desired directory
if( list ) {
cmd = "sort -n >&2"
- for( x in files ) {
- if( files[x] ) printf "%-10s %s\n", files[x], x | cmd
+ for( x in matches ) {
+ if( matches[x] ) {
+ printf "%-10s %s\n", matches[x], x | cmd
+ }
}
if( common ) {
printf "%-10s %s\n", "common:", common > "/dev/stderr"
}
} else {
- if( common ) out = common
- print out
+ if( common ) best_match = common
+ print best_match
}
}
function common(matches) {
@@ -160,11 +169,9 @@ _z() {
}
}
if( short == "/" ) return
- # use a copy to escape special characters, as we want to return
- # the original. yeah, this escaping is awful.
- clean_short = short
- gsub(/\[\(\)\[\]\|\]/, "\\\\&", clean_short)
- for( x in matches ) if( matches[x] && x !~ clean_short ) return
+ for( x in matches ) if( matches[x] && index(x, short) != 1 ) {
+ return
+ }
return short
}
BEGIN {
@@ -197,8 +204,10 @@ _z() {
}
}
')"
- [ $? -gt 0 ] && return
- [ "$cd" ] && cd "$cd"
+
+ [ $? -eq 0 ] && [ "$cd" ] && {
+ if [ "$echo" ]; then echo "$cd"; else builtin cd "$cd"; fi
+ }
fi
}
@@ -212,11 +221,11 @@ if type compctl >/dev/null 2>&1; then
# populate directory list, avoid clobbering any other precmds.
if [ "$_Z_NO_RESOLVE_SYMLINKS" ]; then
_z_precmd() {
- _z --add "${PWD:a}"
+ (_z --add "${PWD:a}" &)
}
else
_z_precmd() {
- _z --add "${PWD:A}"
+ (_z --add "${PWD:A}" &)
}
fi
[[ -n "${precmd_functions[(r)_z_precmd]}" ]] || {
@@ -237,7 +246,7 @@ elif type complete >/dev/null 2>&1; then
[ "$_Z_NO_PROMPT_COMMAND" ] || {
# populate directory list. avoid clobbering other PROMPT_COMMANDs.
grep "_z --add" <<< "$PROMPT_COMMAND" >/dev/null || {
- PROMPT_COMMAND="$PROMPT_COMMAND"$'\n''_z --add "$(command pwd '$_Z_RESOLVE_SYMLINKS' 2>/dev/null)" 2>/dev/null;'
+ PROMPT_COMMAND="$PROMPT_COMMAND"$'\n''(_z --add "$(command pwd '$_Z_RESOLVE_SYMLINKS' 2>/dev/null)" 2>/dev/null &);'
}
}
fi
From 5fa7824ea59ec12a976f348a83399e66699456ea Mon Sep 17 00:00:00 2001
From: Thanh Ha
Date: Sun, 29 Jul 2018 11:45:35 -0400
Subject: [PATCH 202/644] git-prompt: fix error when multiple tags exist
(#6998)
When a commit has multiple tags associated to it, the git-prompt will
throw the following error:
git_super_status:[:4: integer expression expected: v0.21.x\ntags/v0.21.5,
git_super_status:[:7: integer expression expected: origin/v0.21.x,
git_super_status:[:11: integer expression expected: origin/v0.21.x,
git_super_status:[:14: integer expression expected: v0.21.x
git_super_status:[:23: integer expression expected: v0.21.x
This is due to the prompt expecting the tag field to be a single word
with no spaces in between but if there are multiple tags the python
script returns a string with ', ' space separated list of tags.
This throws off the parser. The solution is to ensure that the python
script returns a space-less string ensuring the git-prompt parser to
properly parse the data.
Signed-off-by: Thanh Ha
---
plugins/git-prompt/gitstatus.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/git-prompt/gitstatus.py b/plugins/git-prompt/gitstatus.py
index 14d875973..a4d07cde6 100644
--- a/plugins/git-prompt/gitstatus.py
+++ b/plugins/git-prompt/gitstatus.py
@@ -22,7 +22,7 @@ def get_tagname_or_hash():
tagname = 'tags/' + output[m.start()+len('tag: '): m.end()-1]
if tagname:
- return tagname
+ return tagname.replace(' ', '')
elif hash_:
return hash_
return None
From 106f826075979ef1a6875cedd2d098e601f2e3f2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Thu, 2 Aug 2018 21:21:20 +0200
Subject: [PATCH 203/644] Revert "add -F and -X to default $LESS environment
variable (#6611)"
This reverts commit 9544316ef95c2aa1e75101a7dce545b4604b3ca6.
This setting broke mouse / touchpad scroll on programs using `less` output
due to it not using the alternate screen buffer.
Fixes #7025
---
lib/misc.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/misc.zsh b/lib/misc.zsh
index 90a8d62f3..3052b7710 100644
--- a/lib/misc.zsh
+++ b/lib/misc.zsh
@@ -20,7 +20,7 @@ setopt long_list_jobs
## pager
env_default PAGER 'less'
-env_default LESS '-FRX'
+env_default LESS '-R'
## super user alias
alias _='sudo'
From f33691fbb60ae38e51b121f06d90b22912cc8569 Mon Sep 17 00:00:00 2001
From: Andrew Janke
Date: Sun, 27 Sep 2015 22:06:58 -0400
Subject: [PATCH 204/644] tmux: detabify source code
Also changes the tmux detection test to do an early exit if tmux is absent,
to reduce the indentation level of the main body of code.
---
plugins/tmux/tmux.plugin.zsh | 163 +++++++++++++++++------------------
1 file changed, 78 insertions(+), 85 deletions(-)
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
index fb514a44c..4c4e62f54 100644
--- a/plugins/tmux/tmux.plugin.zsh
+++ b/plugins/tmux/tmux.plugin.zsh
@@ -10,89 +10,82 @@ alias tksv='tmux kill-server'
alias tkss='tmux kill-session -t'
# Only run if tmux is actually installed
-if which tmux &> /dev/null
- then
- # Configuration variables
- #
- # Automatically start tmux
- [[ -n "$ZSH_TMUX_AUTOSTART" ]] || ZSH_TMUX_AUTOSTART=false
- # Only autostart once. If set to false, tmux will attempt to
- # autostart every time your zsh configs are reloaded.
- [[ -n "$ZSH_TMUX_AUTOSTART_ONCE" ]] || ZSH_TMUX_AUTOSTART_ONCE=true
- # Automatically connect to a previous session if it exists
- [[ -n "$ZSH_TMUX_AUTOCONNECT" ]] || ZSH_TMUX_AUTOCONNECT=true
- # Automatically close the terminal when tmux exits
- [[ -n "$ZSH_TMUX_AUTOQUIT" ]] || ZSH_TMUX_AUTOQUIT=$ZSH_TMUX_AUTOSTART
- # Set term to screen or screen-256color based on current terminal support
- [[ -n "$ZSH_TMUX_FIXTERM" ]] || ZSH_TMUX_FIXTERM=true
- # Set '-CC' option for iTerm2 tmux integration
- [[ -n "$ZSH_TMUX_ITERM2" ]] || ZSH_TMUX_ITERM2=false
- # The TERM to use for non-256 color terminals.
- # Tmux states this should be screen, but you may need to change it on
- # systems without the proper terminfo
- [[ -n "$ZSH_TMUX_FIXTERM_WITHOUT_256COLOR" ]] || ZSH_TMUX_FIXTERM_WITHOUT_256COLOR="screen"
- # The TERM to use for 256 color terminals.
- # Tmux states this should be screen-256color, but you may need to change it on
- # systems without the proper terminfo
- [[ -n "$ZSH_TMUX_FIXTERM_WITH_256COLOR" ]] || ZSH_TMUX_FIXTERM_WITH_256COLOR="screen-256color"
-
-
- # Get the absolute path to the current directory
- local zsh_tmux_plugin_path="$(cd "$(dirname "$0")" && pwd)"
-
- # Determine if the terminal supports 256 colors
- if [[ `tput colors` == "256" ]]
- then
- export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITH_256COLOR
- else
- export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITHOUT_256COLOR
- fi
-
- # Set the correct local config file to use.
- if [[ "$ZSH_TMUX_ITERM2" == "false" ]] && [[ -f $HOME/.tmux.conf || -h $HOME/.tmux.conf ]]
- then
- #use this when they have a ~/.tmux.conf
- export _ZSH_TMUX_FIXED_CONFIG="$zsh_tmux_plugin_path/tmux.extra.conf"
- else
- #use this when they don't have a ~/.tmux.conf
- export _ZSH_TMUX_FIXED_CONFIG="$zsh_tmux_plugin_path/tmux.only.conf"
- fi
-
- # Wrapper function for tmux.
- function _zsh_tmux_plugin_run()
- {
- # We have other arguments, just run them
- if [[ -n "$@" ]]
- then
- \tmux $@
- # Try to connect to an existing session.
- elif [[ "$ZSH_TMUX_AUTOCONNECT" == "true" ]]
- then
- \tmux `[[ "$ZSH_TMUX_ITERM2" == "true" ]] && echo '-CC '` attach || \tmux `[[ "$ZSH_TMUX_ITERM2" == "true" ]] && echo '-CC '` `[[ "$ZSH_TMUX_FIXTERM" == "true" ]] && echo '-f '$_ZSH_TMUX_FIXED_CONFIG` new-session
- [[ "$ZSH_TMUX_AUTOQUIT" == "true" ]] && exit
- # Just run tmux, fixing the TERM variable if requested.
- else
- \tmux `[[ "$ZSH_TMUX_ITERM2" == "true" ]] && echo '-CC '` `[[ "$ZSH_TMUX_FIXTERM" == "true" ]] && echo '-f '$_ZSH_TMUX_FIXED_CONFIG`
- [[ "$ZSH_TMUX_AUTOQUIT" == "true" ]] && exit
- fi
- }
-
- # Use the completions for tmux for our function
- compdef _tmux _zsh_tmux_plugin_run
-
- # Alias tmux to our wrapper function.
- alias tmux=_zsh_tmux_plugin_run
-
- # Autostart if not already in tmux and enabled.
- if [[ ! -n "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" ]]
- then
- # Actually don't autostart if we already did and multiple autostarts are disabled.
- if [[ "$ZSH_TMUX_AUTOSTART_ONCE" == "false" || "$ZSH_TMUX_AUTOSTARTED" != "true" ]]
- then
- export ZSH_TMUX_AUTOSTARTED=true
- _zsh_tmux_plugin_run
- fi
- fi
-else
- print "zsh tmux plugin: tmux not found. Please install tmux before using this plugin."
+if ! which tmux &> /dev/null; then
+ print "zsh tmux plugin: tmux not found. Please install tmux before using this plugin."
+ return 1
+fi
+
+# Configuration variables
+#
+# Automatically start tmux
+[[ -n "$ZSH_TMUX_AUTOSTART" ]] || ZSH_TMUX_AUTOSTART=false
+# Only autostart once. If set to false, tmux will attempt to
+# autostart every time your zsh configs are reloaded.
+[[ -n "$ZSH_TMUX_AUTOSTART_ONCE" ]] || ZSH_TMUX_AUTOSTART_ONCE=true
+# Automatically connect to a previous session if it exists
+[[ -n "$ZSH_TMUX_AUTOCONNECT" ]] || ZSH_TMUX_AUTOCONNECT=true
+# Automatically close the terminal when tmux exits
+[[ -n "$ZSH_TMUX_AUTOQUIT" ]] || ZSH_TMUX_AUTOQUIT=$ZSH_TMUX_AUTOSTART
+# Set term to screen or screen-256color based on current terminal support
+[[ -n "$ZSH_TMUX_FIXTERM" ]] || ZSH_TMUX_FIXTERM=true
+# Set '-CC' option for iTerm2 tmux integration
+[[ -n "$ZSH_TMUX_ITERM2" ]] || ZSH_TMUX_ITERM2=false
+# The TERM to use for non-256 color terminals.
+# Tmux states this should be screen, but you may need to change it on
+# systems without the proper terminfo
+[[ -n "$ZSH_TMUX_FIXTERM_WITHOUT_256COLOR" ]] || ZSH_TMUX_FIXTERM_WITHOUT_256COLOR="screen"
+# The TERM to use for 256 color terminals.
+# Tmux states this should be screen-256color, but you may need to change it on
+# systems without the proper terminfo
+[[ -n "$ZSH_TMUX_FIXTERM_WITH_256COLOR" ]] || ZSH_TMUX_FIXTERM_WITH_256COLOR="screen-256color"
+
+
+# Get the absolute path to the current directory
+local zsh_tmux_plugin_path="$(cd "$(dirname "$0")" && pwd)"
+
+# Determine if the terminal supports 256 colors
+if [[ `tput colors` == "256" ]]; then
+ export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITH_256COLOR
+else
+ export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITHOUT_256COLOR
+fi
+
+# Set the correct local config file to use.
+if [[ "$ZSH_TMUX_ITERM2" == "false" ]] && [[ -f $HOME/.tmux.conf || -h $HOME/.tmux.conf ]]; then
+ #use this when they have a ~/.tmux.conf
+ export _ZSH_TMUX_FIXED_CONFIG="$zsh_tmux_plugin_path/tmux.extra.conf"
+else
+ #use this when they don't have a ~/.tmux.conf
+ export _ZSH_TMUX_FIXED_CONFIG="$zsh_tmux_plugin_path/tmux.only.conf"
+fi
+
+# Wrapper function for tmux.
+function _zsh_tmux_plugin_run() {
+ # We have other arguments, just run them
+ if [[ -n "$@" ]]; then
+ \tmux $@
+ # Try to connect to an existing session.
+ elif [[ "$ZSH_TMUX_AUTOCONNECT" == "true" ]]; then
+ \tmux `[[ "$ZSH_TMUX_ITERM2" == "true" ]] && echo '-CC '` attach || \tmux `[[ "$ZSH_TMUX_ITERM2" == "true" ]] && echo '-CC '` `[[ "$ZSH_TMUX_FIXTERM" == "true" ]] && echo '-f '$_ZSH_TMUX_FIXED_CONFIG` new-session
+ [[ "$ZSH_TMUX_AUTOQUIT" == "true" ]] && exit
+ # Just run tmux, fixing the TERM variable if requested.
+ else
+ \tmux `[[ "$ZSH_TMUX_ITERM2" == "true" ]] && echo '-CC '` `[[ "$ZSH_TMUX_FIXTERM" == "true" ]] && echo '-f '$_ZSH_TMUX_FIXED_CONFIG`
+ [[ "$ZSH_TMUX_AUTOQUIT" == "true" ]] && exit
+ fi
+}
+
+# Use the completions for tmux for our function
+compdef _tmux _zsh_tmux_plugin_run
+
+# Alias tmux to our wrapper function.
+alias tmux=_zsh_tmux_plugin_run
+
+# Autostart if not already in tmux and enabled.
+if [[ ! -n "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" ]]; then
+ # Actually don't autostart if we already did and multiple autostarts are disabled.
+ if [[ "$ZSH_TMUX_AUTOSTART_ONCE" == "false" || "$ZSH_TMUX_AUTOSTARTED" != "true" ]]; then
+ export ZSH_TMUX_AUTOSTARTED=true
+ _zsh_tmux_plugin_run
+ fi
fi
From 19716a8e3df053f26500db126a03a8a471436bc8 Mon Sep 17 00:00:00 2001
From: Andrew Janke
Date: Sun, 27 Sep 2015 22:22:50 -0400
Subject: [PATCH 205/644] tmux: refactor
- Consolidates the switch-adding logic for readability.
- Replaces "[[ ... ]] && ..." with "if [[ ... ]]; then ..." in some
cases to avoid a spurious nonzero exit status from _zsh_tmux_plugin_run.
- Puts error message on stderr instead of stdout
---
plugins/tmux/tmux.plugin.zsh | 31 ++++++++++++++++++-------------
1 file changed, 18 insertions(+), 13 deletions(-)
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
index 4c4e62f54..1b97cae73 100644
--- a/plugins/tmux/tmux.plugin.zsh
+++ b/plugins/tmux/tmux.plugin.zsh
@@ -11,7 +11,7 @@ alias tkss='tmux kill-session -t'
# Only run if tmux is actually installed
if ! which tmux &> /dev/null; then
- print "zsh tmux plugin: tmux not found. Please install tmux before using this plugin."
+ print "zsh tmux plugin: tmux not found. Please install tmux before using this plugin." >&2
return 1
fi
@@ -40,9 +40,6 @@ fi
[[ -n "$ZSH_TMUX_FIXTERM_WITH_256COLOR" ]] || ZSH_TMUX_FIXTERM_WITH_256COLOR="screen-256color"
-# Get the absolute path to the current directory
-local zsh_tmux_plugin_path="$(cd "$(dirname "$0")" && pwd)"
-
# Determine if the terminal supports 256 colors
if [[ `tput colors` == "256" ]]; then
export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITH_256COLOR
@@ -53,25 +50,33 @@ fi
# Set the correct local config file to use.
if [[ "$ZSH_TMUX_ITERM2" == "false" ]] && [[ -f $HOME/.tmux.conf || -h $HOME/.tmux.conf ]]; then
#use this when they have a ~/.tmux.conf
- export _ZSH_TMUX_FIXED_CONFIG="$zsh_tmux_plugin_path/tmux.extra.conf"
+ export _ZSH_TMUX_FIXED_CONFIG="${0:h:a}/tmux.extra.conf"
else
#use this when they don't have a ~/.tmux.conf
- export _ZSH_TMUX_FIXED_CONFIG="$zsh_tmux_plugin_path/tmux.only.conf"
+ export _ZSH_TMUX_FIXED_CONFIG="${0:h:a}/tmux.only.conf"
fi
# Wrapper function for tmux.
function _zsh_tmux_plugin_run() {
- # We have other arguments, just run them
+ local tmux_cmd
+ tmux_cmd=(command tmux)
+ [[ "$ZSH_TMUX_ITERM2" == "true" ]] && tmux_cmd+="-CC"
+ [[ "$ZSH_TMUX_FIXTERM" == "true" ]] && tmux_cmd+=(-f $_ZSH_TMUX_FIXED_CONFIG)
if [[ -n "$@" ]]; then
+ # We have other arguments, just run them
\tmux $@
- # Try to connect to an existing session.
elif [[ "$ZSH_TMUX_AUTOCONNECT" == "true" ]]; then
- \tmux `[[ "$ZSH_TMUX_ITERM2" == "true" ]] && echo '-CC '` attach || \tmux `[[ "$ZSH_TMUX_ITERM2" == "true" ]] && echo '-CC '` `[[ "$ZSH_TMUX_FIXTERM" == "true" ]] && echo '-f '$_ZSH_TMUX_FIXED_CONFIG` new-session
- [[ "$ZSH_TMUX_AUTOQUIT" == "true" ]] && exit
- # Just run tmux, fixing the TERM variable if requested.
+ # Try to connect to an existing session.
+ $tmux_cmd attach || $tmux_cmd new-session
+ if [[ "$ZSH_TMUX_AUTOQUIT" == "true" ]]; then
+ exit
+ fi
else
- \tmux `[[ "$ZSH_TMUX_ITERM2" == "true" ]] && echo '-CC '` `[[ "$ZSH_TMUX_FIXTERM" == "true" ]] && echo '-f '$_ZSH_TMUX_FIXED_CONFIG`
- [[ "$ZSH_TMUX_AUTOQUIT" == "true" ]] && exit
+ # Just run tmux, fixing the TERM variable if requested.
+ $tmux_cmd
+ if [[ "$ZSH_TMUX_AUTOQUIT" == "true" ]]; then
+ exit
+ fi
fi
}
From f584de5930467fd53e8b7d2e51f5227bc405e4b2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Fri, 3 Aug 2018 22:06:26 +0200
Subject: [PATCH 206/644] tmux: refactor and simplify tmux function logic
---
plugins/tmux/tmux.plugin.zsh | 82 +++++++++++++++++-------------------
1 file changed, 38 insertions(+), 44 deletions(-)
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
index 1b97cae73..2d161c377 100644
--- a/plugins/tmux/tmux.plugin.zsh
+++ b/plugins/tmux/tmux.plugin.zsh
@@ -1,6 +1,9 @@
-#
-# Aliases
-#
+if ! (( $+commands[tmux] )); then
+ print "zsh tmux plugin: tmux not found. Please install tmux before using this plugin." >&2
+ return 1
+fi
+
+# ALIASES
alias ta='tmux attach -t'
alias tad='tmux attach -d -t'
@@ -9,85 +12,76 @@ alias tl='tmux list-sessions'
alias tksv='tmux kill-server'
alias tkss='tmux kill-session -t'
-# Only run if tmux is actually installed
-if ! which tmux &> /dev/null; then
- print "zsh tmux plugin: tmux not found. Please install tmux before using this plugin." >&2
- return 1
-fi
-
-# Configuration variables
-#
+# CONFIGURATION VARIABLES
# Automatically start tmux
-[[ -n "$ZSH_TMUX_AUTOSTART" ]] || ZSH_TMUX_AUTOSTART=false
+: ${ZSH_TMUX_AUTOSTART:=false}
# Only autostart once. If set to false, tmux will attempt to
# autostart every time your zsh configs are reloaded.
-[[ -n "$ZSH_TMUX_AUTOSTART_ONCE" ]] || ZSH_TMUX_AUTOSTART_ONCE=true
+: ${ZSH_TMUX_AUTOSTART_ONCE:=true}
# Automatically connect to a previous session if it exists
-[[ -n "$ZSH_TMUX_AUTOCONNECT" ]] || ZSH_TMUX_AUTOCONNECT=true
+: ${ZSH_TMUX_AUTOCONNECT:=true}
# Automatically close the terminal when tmux exits
-[[ -n "$ZSH_TMUX_AUTOQUIT" ]] || ZSH_TMUX_AUTOQUIT=$ZSH_TMUX_AUTOSTART
+: ${ZSH_TMUX_AUTOQUIT:=$ZSH_TMUX_AUTOSTART}
# Set term to screen or screen-256color based on current terminal support
-[[ -n "$ZSH_TMUX_FIXTERM" ]] || ZSH_TMUX_FIXTERM=true
+: ${ZSH_TMUX_FIXTERM:=true}
# Set '-CC' option for iTerm2 tmux integration
-[[ -n "$ZSH_TMUX_ITERM2" ]] || ZSH_TMUX_ITERM2=false
+: ${ZSH_TMUX_ITERM2:=false}
# The TERM to use for non-256 color terminals.
# Tmux states this should be screen, but you may need to change it on
# systems without the proper terminfo
-[[ -n "$ZSH_TMUX_FIXTERM_WITHOUT_256COLOR" ]] || ZSH_TMUX_FIXTERM_WITHOUT_256COLOR="screen"
+: ${ZSH_TMUX_FIXTERM_WITHOUT_256COLOR:=screen}
# The TERM to use for 256 color terminals.
# Tmux states this should be screen-256color, but you may need to change it on
# systems without the proper terminfo
-[[ -n "$ZSH_TMUX_FIXTERM_WITH_256COLOR" ]] || ZSH_TMUX_FIXTERM_WITH_256COLOR="screen-256color"
-
+: ${ZSH_TMUX_FIXTERM_WITH_256COLOR:=screen-256color}
# Determine if the terminal supports 256 colors
-if [[ `tput colors` == "256" ]]; then
+if [[ $(tput colors) == 256 ]]; then
export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITH_256COLOR
else
export ZSH_TMUX_TERM=$ZSH_TMUX_FIXTERM_WITHOUT_256COLOR
fi
# Set the correct local config file to use.
-if [[ "$ZSH_TMUX_ITERM2" == "false" ]] && [[ -f $HOME/.tmux.conf || -h $HOME/.tmux.conf ]]; then
- #use this when they have a ~/.tmux.conf
+if [[ "$ZSH_TMUX_ITERM2" == "false" && -e "$HOME/.tmux.conf" ]]; then
export _ZSH_TMUX_FIXED_CONFIG="${0:h:a}/tmux.extra.conf"
else
- #use this when they don't have a ~/.tmux.conf
export _ZSH_TMUX_FIXED_CONFIG="${0:h:a}/tmux.only.conf"
fi
# Wrapper function for tmux.
function _zsh_tmux_plugin_run() {
- local tmux_cmd
- tmux_cmd=(command tmux)
- [[ "$ZSH_TMUX_ITERM2" == "true" ]] && tmux_cmd+="-CC"
- [[ "$ZSH_TMUX_FIXTERM" == "true" ]] && tmux_cmd+=(-f $_ZSH_TMUX_FIXED_CONFIG)
if [[ -n "$@" ]]; then
- # We have other arguments, just run them
- \tmux $@
- elif [[ "$ZSH_TMUX_AUTOCONNECT" == "true" ]]; then
- # Try to connect to an existing session.
- $tmux_cmd attach || $tmux_cmd new-session
- if [[ "$ZSH_TMUX_AUTOQUIT" == "true" ]]; then
- exit
- fi
- else
- # Just run tmux, fixing the TERM variable if requested.
- $tmux_cmd
- if [[ "$ZSH_TMUX_AUTOQUIT" == "true" ]]; then
- exit
- fi
+ command tmux "$@"
+ return $?
+ fi
+
+ local -a tmux_cmd=(command tmux)
+ [[ "$ZSH_TMUX_ITERM2" == "true" ]] && tmux_cmd+=(-CC)
+
+ # Try to connect to an existing session.
+ if [[ "$ZSH_TMUX_AUTOCONNECT" == "true" ]]; then
+ $tmux_cmd attach
+ fi
+
+ # If failed, just run tmux, fixing the TERM variable if requested.
+ if [[ $? -ne 0 ]]; then
+ [[ "$ZSH_TMUX_FIXTERM" == "true" ]] && tmux_cmd+=(-f "$_ZSH_TMUX_FIXED_CONFIG")
+ $tmux_cmd new-session
+ fi
+
+ if [[ "$ZSH_TMUX_AUTOQUIT" == "true" ]]; then
+ exit
fi
}
# Use the completions for tmux for our function
compdef _tmux _zsh_tmux_plugin_run
-
# Alias tmux to our wrapper function.
alias tmux=_zsh_tmux_plugin_run
# Autostart if not already in tmux and enabled.
-if [[ ! -n "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" ]]; then
+if [[ -z "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" ]]; then
# Actually don't autostart if we already did and multiple autostarts are disabled.
if [[ "$ZSH_TMUX_AUTOSTART_ONCE" == "false" || "$ZSH_TMUX_AUTOSTARTED" != "true" ]]; then
export ZSH_TMUX_AUTOSTARTED=true
From 76d3eedf7fa47886658c79884884f4077ce09107 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Tue, 7 Aug 2018 00:40:18 +0200
Subject: [PATCH 207/644] tmux: fix regression after f584de5
Fixes #7041
---
plugins/tmux/tmux.plugin.zsh | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
index 2d161c377..ff7de746b 100644
--- a/plugins/tmux/tmux.plugin.zsh
+++ b/plugins/tmux/tmux.plugin.zsh
@@ -60,9 +60,7 @@ function _zsh_tmux_plugin_run() {
[[ "$ZSH_TMUX_ITERM2" == "true" ]] && tmux_cmd+=(-CC)
# Try to connect to an existing session.
- if [[ "$ZSH_TMUX_AUTOCONNECT" == "true" ]]; then
- $tmux_cmd attach
- fi
+ [[ "$ZSH_TMUX_AUTOCONNECT" == "true" ]] && $tmux_cmd attach
# If failed, just run tmux, fixing the TERM variable if requested.
if [[ $? -ne 0 ]]; then
From 91b771914bc7c43dd7c7a43b586c5de2c225ceb7 Mon Sep 17 00:00:00 2001
From: kapsh
Date: Wed, 28 Jun 2017 11:03:55 +0300
Subject: [PATCH 208/644] extract: check file extension as lowercase (#6158)
Fixes #6157
---
plugins/extract/extract.plugin.zsh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/extract/extract.plugin.zsh b/plugins/extract/extract.plugin.zsh
index 34f8d8710..d56044805 100644
--- a/plugins/extract/extract.plugin.zsh
+++ b/plugins/extract/extract.plugin.zsh
@@ -29,7 +29,7 @@ extract() {
success=0
extract_dir="${1:t:r}"
- case "$1" in
+ case "${1:l}" in
(*.tar.gz|*.tgz) (( $+commands[pigz] )) && { pigz -dc "$1" | tar xv } || tar zxvf "$1" ;;
(*.tar.bz2|*.tbz|*.tbz2) tar xvjf "$1" ;;
(*.tar.xz|*.txz)
@@ -45,7 +45,7 @@ extract() {
(*.bz2) bunzip2 "$1" ;;
(*.xz) unxz "$1" ;;
(*.lzma) unlzma "$1" ;;
- (*.Z) uncompress "$1" ;;
+ (*.z) uncompress "$1" ;;
(*.zip|*.war|*.jar|*.sublime-package|*.ipsw|*.xpi|*.apk) unzip "$1" -d $extract_dir ;;
(*.rar) unrar x -ad "$1" ;;
(*.7z) 7za x "$1" ;;
From 05713785b0774f78e0aeb4cc4d793fdb529307db Mon Sep 17 00:00:00 2001
From: John Burwell
Date: Tue, 7 Aug 2018 12:10:35 -0400
Subject: [PATCH 209/644] asdf: add Homebrew and completion support (#6749)
* Modifies the search logic for asdf to include Homebrew when it is
installed. The implementation is adapted from the pyenv plugin.
---
plugins/asdf/asdf.plugin.zsh | 19 ++++++++++++-------
1 file changed, 12 insertions(+), 7 deletions(-)
diff --git a/plugins/asdf/asdf.plugin.zsh b/plugins/asdf/asdf.plugin.zsh
index d563cf5f8..75395c718 100644
--- a/plugins/asdf/asdf.plugin.zsh
+++ b/plugins/asdf/asdf.plugin.zsh
@@ -1,12 +1,17 @@
-# Find where asdf should be installed.
+# 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
+# If not found, check for Homebrew package
+if [[ ! -d $ASDF_DIR ]] && (( $+commands[brew] )); then
+ ASDF_DIR="$(brew --prefix asdf)"
fi
-# Load asdf completions, if found.
-if [ -f $ASDF_DIR/completions/asdf.bash ]; then
- . $ASDF_DIR/completions/asdf.bash
+# Load command
+if [[ -f "$ASDF_DIR/asdf.sh" ]]; then
+ . "$ASDF_DIR/asdf.sh"
+
+ # Load completions
+ if [[ -f "$ASDF_DIR/completions/asdf.bash" ]]; then
+ . "$ASDF_DIR/completions/asdf.bash"
+ fi
fi
From e934624b32f8c370306355ab8a78667a5a6240d3 Mon Sep 17 00:00:00 2001
From: Tony Lotts
Date: Wed, 8 Aug 2018 00:14:38 +0800
Subject: [PATCH 210/644] Add function to search Dash.app (#2557)
* Add function to search Dash
* Pass all arguements instead of just the first
* Adding docset completion with help from @kapeli and [arx]
---
plugins/dash/dash.plugin.zsh | 86 ++++++++++++++++++++++++++++++++++++
1 file changed, 86 insertions(+)
create mode 100644 plugins/dash/dash.plugin.zsh
diff --git a/plugins/dash/dash.plugin.zsh b/plugins/dash/dash.plugin.zsh
new file mode 100644
index 000000000..5d0ec9a97
--- /dev/null
+++ b/plugins/dash/dash.plugin.zsh
@@ -0,0 +1,86 @@
+# Usage: dash [keyword:]query
+dash() { open dash://"$*" }
+compdef _dash dash
+
+_dash() {
+ # No sense doing this for anything except the 2nd position and if we haven't
+ # specified which docset to query against
+ if [[ $CURRENT -eq 2 && ! "$words[2]" =~ ":" ]]; then
+ local -a _all_docsets
+ _all_docsets=()
+ # Use defaults to get the array of docsets from preferences
+ # Have to smash it into one big line so that each docset is an element of
+ # our DOCSETS array
+ DOCSETS=("${(@f)$(defaults read com.kapeli.dash docsets | tr -d '\n' | grep -oE '\{.*?\}')}")
+
+ # remove all newlines since defaults prints so pretty like
+ # Now get each docset and output each on their own line
+ for doc in "$DOCSETS[@]"; do
+ # Only output docsets that are actually enabled
+ if [[ "`echo $doc | grep -Eo \"isEnabled = .*?;\" | sed 's/[^01]//g'`" == "0" ]]; then
+ continue
+ fi
+
+ keyword=''
+
+ # Order of preference as explained to me by @kapeli via email
+ KEYWORD_LOCATORS=(keyword suggestedKeyword platform)
+ for locator in "$KEYWORD_LOCATORS[@]"; do
+ # Echo the docset, try to find the appropriate keyword
+ # Strip doublequotes and colon from any keyword so that everything has the
+ # same format when output (we'll add the colon in the completion)
+ keyword=`echo $doc | grep -Eo "$locator = .*?;" | sed -e "s/$locator = \(.*\);/\1/" -e "s/[\":]//g"`
+ if [[ ! -z "$keyword" ]]; then
+ # if we fall back to platform, we should do some checking per @kapeli
+ if [[ "$locator" == "platform" ]]; then
+ # Since these are the only special cases right now, let's not do the
+ # expensive processing unless we have to
+ if [[ "$keyword" == "python" || "$keyword" == "java" || \
+ "$keyword" == "qt" || "$keyword" == "cocs2d" ]]; then
+ docsetName=`echo $doc | grep -Eo "docsetName = .*?;" | sed -e "s/docsetName = \(.*\);/\1/" -e "s/[\":]//g"`
+ if [[ "$keyword" == "python" ]]; then
+ if [[ "$docsetName" == "Python 2" ]]; then
+ keyword="python2"
+ elif [[ "$docsetName" == "Python 3" ]]; then
+ keyword="python3"
+ fi
+ elif [[ "$keyword" == "java" ]]; then
+ if [[ "$docsetName" == "Java SE7" ]]; then
+ keyword="java7"
+ elif [[ "$docsetName" == "Java SE6" ]]; then
+ keyword="java6"
+ elif [[ "$docsetName" == "Java SE8" ]]; then
+ keyword="java8"
+ fi
+ elif [[ "$keyword" == "qt" ]]; then
+ if [[ "$docsetName" == "Qt 5" ]]; then
+ keyword="qt5"
+ elif [[ "$docsetName" == "Qt 4" ]]; then
+ keyword="qt4"
+ elif [[ "$docsetName" == "Qt" ]]; then
+ keyword="qt4"
+ fi
+ elif [[ "$keyword" == "cocos2d" ]]; then
+ if [[ "$docsetName" == "Cocos3D" ]]; then
+ keyword="cocos3d"
+ fi
+ fi
+ fi
+ fi
+
+ # Bail once we have a match
+ break
+ fi
+ done
+
+ # If we have a keyword, add it to the list!
+ if [[ ! -z "$keyword" ]]; then
+ _all_docsets+=($keyword)
+ fi
+ done
+
+ # special thanks to [arx] on #zsh for getting me sorted on this piece
+ compadd -qS: -- "$_all_docsets[@]"
+ return
+ fi
+}
From 19b925e741fa46d2222210469a4dffc34a634ebd Mon Sep 17 00:00:00 2001
From: Janosch Schwalm
Date: Tue, 7 Aug 2018 20:42:02 +0200
Subject: [PATCH 211/644] use https everywhere (#6574)
* use https everywhere
* use https links on the files that are left
Also, removed some broken links and updated redirections.
---
lib/spectrum.zsh | 2 +-
lib/termsupport.zsh | 2 +-
plugins/bbedit/README.md | 6 ++---
plugins/bgnotify/README.md | 2 +-
plugins/bwana/bwana.plugin.zsh | 4 ++--
plugins/catimg/catimg.plugin.zsh | 2 +-
plugins/catimg/catimg.sh | 2 +-
plugins/coffee/_coffee | 4 ++--
.../command-not-found.plugin.zsh | 2 +-
plugins/debian/debian.plugin.zsh | 2 +-
plugins/docker/_docker | 2 +-
plugins/dotenv/README.md | 2 +-
plugins/droplr/README.md | 2 +-
plugins/ember-cli/README.md | 4 ++--
plugins/ember-cli/ember-cli.plugin.zsh | 2 +-
plugins/emoji/README.md | 6 ++---
plugins/emoji/emoji-data.txt | 4 ++--
plugins/emoji/update_emoji.pl | 12 +++++-----
plugins/forklift/README.md | 2 +-
plugins/frontend-search/README.md | 12 +++++-----
.../frontend-search.plugin.zsh | 10 ++++----
plugins/geeknote/README.md | 2 +-
plugins/git-extras/README.md | 2 +-
plugins/git-extras/git-extras.plugin.zsh | 6 ++---
plugins/git-flow-avh/git-flow-avh.plugin.zsh | 4 ++--
plugins/git-hubflow/git-hubflow.plugin.zsh | 2 +-
plugins/git-prompt/git-prompt.plugin.zsh | 2 +-
plugins/github/README.md | 6 ++---
plugins/github/github.plugin.zsh | 4 ++--
plugins/globalias/README.md | 2 +-
plugins/hanami/README.md | 4 ++--
plugins/history-substring-search/README.md | 6 ++---
plugins/httpie/README.md | 4 ++--
plugins/jake-node/jake-node.plugin.zsh | 4 ++--
plugins/kitchen/_kitchen | 4 ++--
plugins/kube-ps1/kube-ps1.plugin.zsh | 2 +-
plugins/lighthouse/lighthouse.plugin.zsh | 2 +-
plugins/lol/lol.plugin.zsh | 4 ++--
plugins/mix-fast/README.md | 4 ++--
plugins/osx/osx.plugin.zsh | 2 +-
plugins/osx/spotify | 2 +-
plugins/pass/_pass | 2 +-
plugins/per-directory-history/README.md | 24 +++++++++----------
.../per-directory-history.zsh | 2 +-
plugins/percol/README.md | 3 ---
plugins/perl/perl.plugin.zsh | 2 +-
plugins/pod/_pod | 2 +-
plugins/pow/pow.plugin.zsh | 2 +-
plugins/rake-fast/README.md | 2 +-
plugins/repo/README.md | 2 +-
plugins/safe-paste/safe-paste.plugin.zsh | 4 ++--
plugins/scala/_scala | 4 ++--
plugins/scd/README.md | 4 ++--
plugins/scw/_scw | 2 +-
plugins/shrink-path/README.md | 6 ++---
plugins/shrink-path/shrink-path.plugin.zsh | 6 ++---
plugins/spring/README.md | 10 ++++----
plugins/sprunge/sprunge.plugin.zsh | 22 ++++++++---------
plugins/ssh-agent/README.md | 2 +-
plugins/sublime/README.md | 2 +-
plugins/svn/README.md | 2 +-
plugins/systemadmin/systemadmin.plugin.zsh | 1 -
plugins/taskwarrior/README.md | 2 +-
plugins/taskwarrior/_task | 2 +-
plugins/textastic/README.md | 4 ++--
plugins/ubuntu/ubuntu.plugin.zsh | 2 +-
plugins/urltools/urltools.plugin.zsh | 2 +-
plugins/vault/README.md | 8 +++----
plugins/wp-cli/README.md | 6 ++---
plugins/wp-cli/wp-cli.plugin.zsh | 2 +-
plugins/xcode/xcode.plugin.zsh | 2 +-
plugins/zsh-navigation-tools/LICENSE | 8 +++----
themes/adben.zsh-theme | 6 ++---
themes/agnoster.zsh-theme | 2 +-
themes/arrow.zsh-theme | 2 +-
themes/avit.zsh-theme | 2 +-
themes/bira.zsh-theme | 2 +-
themes/clean.zsh-theme | 2 +-
themes/duellj.zsh-theme | 2 +-
themes/funky.zsh-theme | 4 ++--
themes/gnzh.zsh-theme | 1 -
themes/half-life.zsh-theme | 4 ++--
themes/itchy.zsh-theme | 2 --
themes/jreese.zsh-theme | 2 --
themes/lambda.zsh-theme | 2 --
themes/lukerandall.zsh-theme | 2 +-
themes/macovsky-ruby.zsh-theme | 2 +-
themes/macovsky.zsh-theme | 2 +-
themes/mh.zsh-theme | 4 ++--
themes/michelebologna.zsh-theme | 10 ++++----
themes/mikeh.zsh-theme | 4 ++--
themes/philips.zsh-theme | 2 +-
themes/pmcgee.zsh-theme | 2 +-
themes/rkj.zsh-theme | 2 +-
themes/sorin.zsh-theme | 8 +++----
themes/sporty_256.zsh-theme | 2 +-
themes/steeef.zsh-theme | 4 ++--
themes/sunaku.zsh-theme | 1 -
themes/tonotdo.zsh-theme | 4 ++--
themes/xiong-chiamiov-plus.zsh-theme | 2 +-
themes/xiong-chiamiov.zsh-theme | 2 +-
tools/theme_chooser.sh | 2 +-
102 files changed, 187 insertions(+), 199 deletions(-)
diff --git a/lib/spectrum.zsh b/lib/spectrum.zsh
index 87092d8ae..312ab2248 100644
--- a/lib/spectrum.zsh
+++ b/lib/spectrum.zsh
@@ -1,7 +1,7 @@
#! /bin/zsh
# A script to make using 256 colors in zsh less painful.
# P.C. Shyamshankar
-# Copied from http://github.com/sykora/etc/blob/master/zsh/functions/spectrum/
+# Copied from https://github.com/sykora/etc/blob/master/zsh/functions/spectrum/
typeset -AHg FX FG BG
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh
index 871ab28df..87d55ee89 100644
--- a/lib/termsupport.zsh
+++ b/lib/termsupport.zsh
@@ -80,7 +80,7 @@ preexec_functions+=(omz_termsupport_preexec)
# Keep Apple Terminal.app's current working directory updated
-# Based on this answer: http://superuser.com/a/315029
+# Based on this answer: https://superuser.com/a/315029
# With extra fixes to handle multibyte chars and non-UTF-8 locales
if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
diff --git a/plugins/bbedit/README.md b/plugins/bbedit/README.md
index ec2b743d6..263c54c47 100644
--- a/plugins/bbedit/README.md
+++ b/plugins/bbedit/README.md
@@ -1,11 +1,11 @@
## bbedit
-Plugin for BBEdit, an HTML and text editor for Mac OS X
+Plugin for BBEdit, an HTML and text editor for Mac OS X
### Requirements
- * [BBEdit](http://www.barebones.com/products/bbedit/)
- * [BBEdit Command-Line Tools](http://www.barebones.com/support/bbedit/cmd-line-tools.html)
+ * [BBEdit](https://www.barebones.com/products/bbedit/)
+ * [BBEdit Command-Line Tools](https://www.barebones.com/support/bbedit/cmd-line-tools.html)
### Usage
diff --git a/plugins/bgnotify/README.md b/plugins/bgnotify/README.md
index fad299159..1d8fac54d 100644
--- a/plugins/bgnotify/README.md
+++ b/plugins/bgnotify/README.md
@@ -13,7 +13,7 @@ Just add bgnotify to your plugins list in your `.zshrc`
- On OS X you'll need [terminal-notifier](https://github.com/alloy/terminal-notifier)
* `brew install terminal-notifier` (or `gem install terminal-notifier`)
- On ubuntu you're already all set!
-- On windows you can use [notifu](http://www.paralint.com/projects/notifu/) or the Cygwin Ports libnotify package
+- On windows you can use [notifu](https://www.paralint.com/projects/notifu/) or the Cygwin Ports libnotify package
## Screenshots
diff --git a/plugins/bwana/bwana.plugin.zsh b/plugins/bwana/bwana.plugin.zsh
index 455da8621..b9a04793f 100644
--- a/plugins/bwana/bwana.plugin.zsh
+++ b/plugins/bwana/bwana.plugin.zsh
@@ -1,5 +1,5 @@
#
-# Requires http://www.bruji.com/bwana/
+# Requires https://www.bruji.com/bwana/
#
if [[ -e /Applications/Bwana.app ]] ||
( system_profiler -detailLevel mini SPApplicationsDataType | grep -q Bwana )
@@ -9,5 +9,5 @@ then
}
else
echo "Bwana lets you read man files in Safari through a man: URI scheme"
- echo "To use it within Zsh, install it from http://www.bruji.com/bwana/"
+ echo "To use it within Zsh, install it from https://www.bruji.com/bwana/"
fi
diff --git a/plugins/catimg/catimg.plugin.zsh b/plugins/catimg/catimg.plugin.zsh
index cb92f5986..5f58ecde3 100644
--- a/plugins/catimg/catimg.plugin.zsh
+++ b/plugins/catimg/catimg.plugin.zsh
@@ -1,6 +1,6 @@
################################################################################
# catimg script by Eduardo San Martin Morote aka Posva #
-# http://posva.net #
+# https://posva.net #
# #
# Ouput the content of an image to the stdout using the 256 colors of the #
# terminal. #
diff --git a/plugins/catimg/catimg.sh b/plugins/catimg/catimg.sh
index cd0f2e333..83ccf6a95 100755
--- a/plugins/catimg/catimg.sh
+++ b/plugins/catimg/catimg.sh
@@ -1,6 +1,6 @@
################################################################################
# catimg script by Eduardo San Martin Morote aka Posva #
-# http://posva.net #
+# https://posva.net #
# #
# Ouput the content of an image to the stdout using the 256 colors of the #
# terminal. #
diff --git a/plugins/coffee/_coffee b/plugins/coffee/_coffee
index 10b6b8164..5e52b30e6 100644
--- a/plugins/coffee/_coffee
+++ b/plugins/coffee/_coffee
@@ -1,6 +1,6 @@
#compdef coffee
# ------------------------------------------------------------------------------
-# Copyright (c) 2011 Github zsh-users - http://github.com/zsh-users
+# Copyright (c) 2011 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -28,7 +28,7 @@
# Description
# -----------
#
-# Completion script for Coffee.js v0.6.11 (http://coffeejs.org)
+# Completion script for Coffee.js v0.6.11 (https://coffeescript.org)
#
# ------------------------------------------------------------------------------
# Authors
diff --git a/plugins/command-not-found/command-not-found.plugin.zsh b/plugins/command-not-found/command-not-found.plugin.zsh
index 0e2f2133f..ba1262de6 100644
--- a/plugins/command-not-found/command-not-found.plugin.zsh
+++ b/plugins/command-not-found/command-not-found.plugin.zsh
@@ -1,5 +1,5 @@
# Uses the command-not-found package zsh support
-# as seen in http://www.porcheron.info/command-not-found-for-zsh/
+# as seen in https://www.porcheron.info/command-not-found-for-zsh/
# this is installed in Ubuntu
[[ -e /etc/zsh_command_not_found ]] && source /etc/zsh_command_not_found
diff --git a/plugins/debian/debian.plugin.zsh b/plugins/debian/debian.plugin.zsh
index 42690e53e..654b692d2 100644
--- a/plugins/debian/debian.plugin.zsh
+++ b/plugins/debian/debian.plugin.zsh
@@ -179,7 +179,7 @@ apt-copy() {
# apt-history remove
# apt-history rollback
# apt-history list
-# Based On: http://linuxcommando.blogspot.com/2008/08/how-to-show-apt-log-history.html
+# Based On: https://linuxcommando.blogspot.com/2008/08/how-to-show-apt-log-history.html
apt-history () {
case "$1" in
install)
diff --git a/plugins/docker/_docker b/plugins/docker/_docker
index 32ad4848a..df4b44961 100644
--- a/plugins/docker/_docker
+++ b/plugins/docker/_docker
@@ -1,6 +1,6 @@
#compdef docker dockerd
#
-# zsh completion for docker (http://docker.com)
+# zsh completion for docker (https://docker.com)
#
# version: 0.3.0
# github: https://github.com/felixr/docker-zsh-completion
diff --git a/plugins/dotenv/README.md b/plugins/dotenv/README.md
index e0e75571f..e880e9d69 100644
--- a/plugins/dotenv/README.md
+++ b/plugins/dotenv/README.md
@@ -2,7 +2,7 @@
Automatically load your project ENV variables from `.env` file when you `cd` into project root directory.
-Storing configuration in the environment is one of the tenets of a [twelve-factor app](http://www.12factor.net). Anything that is likely to change between deployment environments, such as resource handles for databases or credentials for external services, should be extracted from the code into environment variables.
+Storing configuration in the environment is one of the tenets of a [twelve-factor app](https://www.12factor.net). Anything that is likely to change between deployment environments, such as resource handles for databases or credentials for external services, should be extracted from the code into environment variables.
## Installation
diff --git a/plugins/droplr/README.md b/plugins/droplr/README.md
index 25cf61db7..6daa2540d 100644
--- a/plugins/droplr/README.md
+++ b/plugins/droplr/README.md
@@ -16,4 +16,4 @@ Author: [Fabio Fernandes](https://github.com/fabiofl)
- Upload a file: `droplr ./path/to/file/`
-- Shorten a link: `droplr http://example.com`
+- Shorten a link: `droplr https://example.com`
diff --git a/plugins/ember-cli/README.md b/plugins/ember-cli/README.md
index 1f92bba32..2e4ed7068 100644
--- a/plugins/ember-cli/README.md
+++ b/plugins/ember-cli/README.md
@@ -1,8 +1,8 @@
# Ember CLI
-**Maintainers:** [BilalBudhani](http://www.github.com/BilalBudhani), [eubenesa](http://www.github.com/eubenesa)
+**Maintainers:** [BilalBudhani](https://github.com/BilalBudhani), [eubenesa](https://github.com/eubenesa)
-Ember CLI (http://www.ember-cli.com/)
+Ember CLI (https://www.ember-cli.com/)
### List of Aliases
diff --git a/plugins/ember-cli/ember-cli.plugin.zsh b/plugins/ember-cli/ember-cli.plugin.zsh
index a0f346829..3d06fd2f5 100644
--- a/plugins/ember-cli/ember-cli.plugin.zsh
+++ b/plugins/ember-cli/ember-cli.plugin.zsh
@@ -1,5 +1,5 @@
# Ember CLI
-# Visit http://www.ember-cli.com/ to view user guide
+# Visit https://www.ember-cli.com/ to view user guide
alias es='ember serve'
alias ea='ember addon'
diff --git a/plugins/emoji/README.md b/plugins/emoji/README.md
index 889e567e6..8b8860a86 100644
--- a/plugins/emoji/README.md
+++ b/plugins/emoji/README.md
@@ -71,7 +71,7 @@ PROMPT="$surfer > "
## Technical Details
-The emoji names and codes are sourced from Unicode Technical Report \#51, which provides information on emoji support in Unicode. It can be found at http://www.unicode.org/reports/tr51/index.html.
+The emoji names and codes are sourced from Unicode Technical Report \#51, which provides information on emoji support in Unicode. It can be found at https://www.unicode.org/reports/tr51/index.html.
The group definitions are added by this OMZ plugin. They are not based on external definitions. (As far as I can tell. -apjanke)
@@ -108,7 +108,7 @@ The `$emoji_skintone` associative array maps skin tone IDs to the variation sele
echo "$emoji[smiling_face_with_open_mouth]$emoji_skintone[4]"
```
-Note that `$emoji_skintone` is an associative array, and its keys are the *names* of "Fitzpatrick Skin Type" groups, not linear indexes into a normal array. The names are `1_2`, `3`, `4`, `5`, and `6`. (Types 1 and 2 are combined into a single color.) See the [Diversity section in Unicode TR 51](http://www.unicode.org/reports/tr51/index.html#Diversity) for details.
+Note that `$emoji_skintone` is an associative array, and its keys are the *names* of "Fitzpatrick Skin Type" groups, not linear indexes into a normal array. The names are `1_2`, `3`, `4`, `5`, and `6`. (Types 1 and 2 are combined into a single color.) See the [Diversity section in Unicode TR 51](https://www.unicode.org/reports/tr51/index.html#Diversity) for details.
## TODO
@@ -130,6 +130,6 @@ This does *not* mean that it should use Gemoji at run time. None of the `zsh` pl
#### ZWJ combining function
-One of the newer features of Unicode emoji is the ability to use the "Zero-Width Joiner" character to compose multiple emoji characters in to a single "emoji ligature" glyph. For example, this is [how Apple supports "family" emoji with various genders and skin tones](http://www.unicode.org/reports/tr51/index.html#ZWJ_Sequences).
+One of the newer features of Unicode emoji is the ability to use the "Zero-Width Joiner" character to compose multiple emoji characters in to a single "emoji ligature" glyph. For example, this is [how Apple supports "family" emoji with various genders and skin tones](https://www.unicode.org/reports/tr51/index.html#ZWJ_Sequences).
These are a pain to write out (and probably worse to read), and it might be convenient to have a couple functions for concisely composing them, if wider support for them appears.
diff --git a/plugins/emoji/emoji-data.txt b/plugins/emoji/emoji-data.txt
index 7b4c015f7..2d6d64e2b 100644
--- a/plugins/emoji/emoji-data.txt
+++ b/plugins/emoji/emoji-data.txt
@@ -17,7 +17,7 @@
# none: not applicable
# Field 4 — Emoji_Sources:
# one or more values from {z, a, j, w, x}
-# see the key in http://www.unicode.org/draft/reports/tr51/tr51.html#Major_Sources
+# see the key in https://www.unicode.org/draft/reports/tr51/tr51.html#Major_Sources
# NA: not applicable
# Comment — currently contains the version where the character was first encoded,
# followed by:
@@ -1200,7 +1200,7 @@
1F1F2 1F1ED ; emoji ; L2 ; none ; x # V6.0 (🇲🇭) flag for Marshall Islands
1F1F2 1F1F0 ; emoji ; L2 ; none ; x # V6.0 (🇲🇰) flag for Macedonia
1F1F2 1F1F1 ; emoji ; L2 ; none ; x # V6.0 (🇲🇱) flag for Mali
-1F1F2 1F1F2 ; emoji ; L2 ; none ; x # V6.0 (🇲🇲) flag for Myanmar
+1F1F2 1F1F2 ; emoji ; L2 ; none ; x # V6.0 (🇲🇲) flag for Myanmar
1F1F2 1F1F3 ; emoji ; L2 ; none ; x # V6.0 (🇲🇳) flag for Mongolia
1F1F2 1F1F4 ; emoji ; L2 ; none ; x # V6.0 (🇲🇴) flag for Macau
1F1F2 1F1F5 ; emoji ; L2 ; none ; x # V6.0 (🇲🇵) flag for Northern Mariana Islands
diff --git a/plugins/emoji/update_emoji.pl b/plugins/emoji/update_emoji.pl
index 04f3ce8e7..8034052b7 100644
--- a/plugins/emoji/update_emoji.pl
+++ b/plugins/emoji/update_emoji.pl
@@ -5,15 +5,15 @@
# This script generates the emoji.plugin.zsh emoji definitions from the Unicode
# character data for the emoji characters.
#
-# The data file can be found at http://unicode.org/Public/emoji/latest/emoji-data.txt
-# as referenced in Unicode TR51 (http://www.unicode.org/reports/tr51/index.html).
+# The data file can be found at https://unicode.org/Public/emoji/latest/emoji-data.txt
+# as referenced in Unicode TR51 (https://www.unicode.org/reports/tr51/index.html).
#
# This is known to work with the data file from version 1.0. It may not work with later
# versions if the format changes. In particular, this reads line comments to get the
# emoji character name and unicode version.
#
# Country names have punctuation and other non-letter characters removed from their name,
-# to avoid possible complications with having to escape the strings when using them as
+# to avoid possible complications with having to escape the strings when using them as
# array subscripts. The definition file seems to use some combining characters like accents
# that get stripped during this process.
@@ -41,7 +41,7 @@ sub process_emoji_data_file {
#
# This contains the definition for:
# \$emoji - which maps character names to Unicode characters
-# \$emoji_flags - maps country names to Unicode flag characters using region indicators
+# \$emoji_flags - maps country names to Unicode flag characters using region indicators
# Main emoji
typeset -gAH emoji
@@ -63,7 +63,7 @@ typeset -gAH emoji_mod
next if /^\s*#/ or /^\s*$/;
if (/^(\S.*?\S)\s*;\s*(\w+)\s*;\s*(\w+)\s*;\s*(\w+)\s*;\s*(\w.*?)\s*#\s*V(\S+)\s\(.*?\)\s*(\w.*\S)\s*$/) {
- my ($code, $style, $level, $modifier_status, $sources, $version, $keycap_name)
+ my ($code, $style, $level, $modifier_status, $sources, $version, $keycap_name)
= ($1, $2, $3, $4, $5, $6, $7);
#print "code=$code style=$style level=$level modifier_status=$modifier_status sources=$sources version=$version name=$keycap_name\n";
my @code_points = split /\s+/, $code;
@@ -84,7 +84,7 @@ typeset -gAH emoji_mod
if ($flag_country) {
$outfh->print("emoji_flags[$zsh_flag_country]=\$'$zsh_code'\n");
} else {
- $outfh->print("emoji[$omz_name]=\$'$zsh_code'\n");
+ $outfh->print("emoji[$omz_name]=\$'$zsh_code'\n");
}
# Modifiers are included in both the main set and their separate map,
# because they have a standalone representation as a color swatch.
diff --git a/plugins/forklift/README.md b/plugins/forklift/README.md
index 6c5cbab23..6c4ce1e81 100644
--- a/plugins/forklift/README.md
+++ b/plugins/forklift/README.md
@@ -4,7 +4,7 @@ Plugin for ForkLift, an FTP application for OS X.
### Requirements
-* [ForkLift](http://www.binarynights.com/forklift/)
+* [ForkLift](https://binarynights.com/)
### Usage
diff --git a/plugins/frontend-search/README.md b/plugins/frontend-search/README.md
index 4d956e38f..f06e79102 100644
--- a/plugins/frontend-search/README.md
+++ b/plugins/frontend-search/README.md
@@ -35,13 +35,13 @@ Available search contexts are:
| angularjs | `https://google.com/search?as_sitesearch=angularjs.org&as_q=` |
| aurajs | `http://aurajs.com/api/#stq=` |
| bem | `https://google.com/search?as_sitesearch=bem.info&as_q=` |
-| bootsnipp | `http://bootsnipp.com/search?q=` |
-| caniuse | `http://caniuse.com/#search=` |
-| codepen | `http://codepen.io/search?q=` |
+| bootsnipp | `https://bootsnipp.com/search?q=` |
+| caniuse | `https://caniuse.com/#search=` |
+| codepen | `https://codepen.io/search?q=` |
| compassdoc | `http://compass-style.org/search?q=` |
| cssflow | `http://www.cssflow.com/search?q=` |
| dartlang | `https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:` |
-| emberjs | `http://emberjs.com/api/#stp=1&stq=` |
+| emberjs | `https://emberjs.com/api/#stp=1&stq=` |
| fontello | `http://fontello.com/#search=` |
| html5please | `http://html5please.com/#` |
| jquery | `https://api.jquery.com/?s=` |
@@ -51,7 +51,7 @@ Available search contexts are:
| qunit | `https://api.qunitjs.com/?s=` |
| reactjs | `https://google.com/search?as_sitesearch=facebook.github.io/react&as_q=` |
| smacss | `https://google.com/search?as_sitesearch=smacss.com&as_q=` |
-| stackoverflow | `http://stackoverflow.com/search?q=` |
+| stackoverflow | `https://stackoverflow.com/search?q=` |
| unheap | `http://www.unheap.com/?s=` |
If you want to have another context, open an Issue and tell us!
@@ -62,4 +62,4 @@ If you want to have another context, open an Issue and tell us!
**Wilson Mendes (willmendesneto)**
+
+
-+
++
diff --git a/plugins/frontend-search/frontend-search.plugin.zsh b/plugins/frontend-search/frontend-search.plugin.zsh
index 3fd49ab8e..14877fb0d 100644
--- a/plugins/frontend-search/frontend-search.plugin.zsh
+++ b/plugins/frontend-search/frontend-search.plugin.zsh
@@ -29,13 +29,13 @@ function frontend() {
angularjs 'https://google.com/search?as_sitesearch=angularjs.org&as_q='
aurajs 'http://aurajs.com/api/#stq='
bem 'https://google.com/search?as_sitesearch=bem.info&as_q='
- bootsnipp 'http://bootsnipp.com/search?q='
- caniuse 'http://caniuse.com/#search='
- codepen 'http://codepen.io/search?q='
+ bootsnipp 'https://bootsnipp.com/search?q='
+ caniuse 'https://caniuse.com/#search='
+ codepen 'https://codepen.io/search?q='
compassdoc 'http://compass-style.org/search?q='
cssflow 'http://www.cssflow.com/search?q='
dartlang 'https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart:'
- emberjs 'http://emberjs.com/api/#stp=1&stq='
+ emberjs 'https://emberjs.com/api/#stp=1&stq='
fontello 'http://fontello.com/#search='
html5please 'http://html5please.com/#'
jquery 'https://api.jquery.com/?s='
@@ -45,7 +45,7 @@ function frontend() {
qunit 'https://api.qunitjs.com/?s='
reactjs 'https://google.com/search?as_sitesearch=facebook.github.io/react&as_q='
smacss 'https://google.com/search?as_sitesearch=smacss.com&as_q='
- stackoverflow 'http://stackoverflow.com/search?q='
+ stackoverflow 'https://stackoverflow.com/search?q='
unheap 'http://www.unheap.com/?s='
)
diff --git a/plugins/geeknote/README.md b/plugins/geeknote/README.md
index a6b50e27f..3f2353112 100644
--- a/plugins/geeknote/README.md
+++ b/plugins/geeknote/README.md
@@ -1,6 +1,6 @@
## ZSH-Geeknote
-[Geeknote](https://github.com/VitaliyRodnenko/geeknote) plugin for [oh-my-zsh framework](http://github.com/robbyrussell/oh-my-zsh).
+[Geeknote](https://github.com/VitaliyRodnenko/geeknote) plugin for oh-my-zsh.
Plugins provides:
diff --git a/plugins/git-extras/README.md b/plugins/git-extras/README.md
index 8f12e297e..987f0d800 100644
--- a/plugins/git-extras/README.md
+++ b/plugins/git-extras/README.md
@@ -1,6 +1,6 @@
# git-extras
-This plugin provides completion definitions for some of the commands defined by [git-extras](http://github.com/tj/git-extras).
+This plugin provides completion definitions for some of the commands defined by [git-extras](https://github.com/tj/git-extras).
## Setup notes
diff --git a/plugins/git-extras/git-extras.plugin.zsh b/plugins/git-extras/git-extras.plugin.zsh
index 0dcd630e8..afc1679cc 100644
--- a/plugins/git-extras/git-extras.plugin.zsh
+++ b/plugins/git-extras/git-extras.plugin.zsh
@@ -2,7 +2,7 @@
# Description
# -----------
#
-# Completion script for git-extras (http://github.com/tj/git-extras).
+# Completion script for git-extras (https://github.com/tj/git-extras).
#
# This depends on and reuses some of the internals of the _git completion
# function that ships with zsh itself. It will not work with the _git that ships
@@ -19,8 +19,8 @@
# Inspirations
# -----------
#
-# * git-extras (http://github.com/tj/git-extras)
-# * git-flow-completion (http://github.com/bobthecow/git-flow-completion)
+# * git-extras (https://github.com/tj/git-extras)
+# * git-flow-completion (https://github.com/bobthecow/git-flow-completion)
#
# ------------------------------------------------------------------------------
diff --git a/plugins/git-flow-avh/git-flow-avh.plugin.zsh b/plugins/git-flow-avh/git-flow-avh.plugin.zsh
index 1f3fa1e28..db8b5ff89 100755
--- a/plugins/git-flow-avh/git-flow-avh.plugin.zsh
+++ b/plugins/git-flow-avh/git-flow-avh.plugin.zsh
@@ -5,8 +5,8 @@
#
# To achieve git-flow completion nirvana:
#
-# 0. Update your zsh's git-completion module to the newest verion.
-# From here. http://zsh.git.sourceforge.net/git/gitweb.cgi?p=zsh/zsh;a=blob_plain;f=Completion/Unix/Command/_git;hb=HEAD
+# 0. Update your zsh's git-completion module to the newest version.
+# From here: https://github.com/zsh-users/zsh/blob/master/Completion/Unix/Command/_git
#
# 1. Install this file. Either:
#
diff --git a/plugins/git-hubflow/git-hubflow.plugin.zsh b/plugins/git-hubflow/git-hubflow.plugin.zsh
index b0157c7a1..8d968229f 100644
--- a/plugins/git-hubflow/git-hubflow.plugin.zsh
+++ b/plugins/git-hubflow/git-hubflow.plugin.zsh
@@ -6,7 +6,7 @@
# To achieve git-hubflow completion nirvana:
#
# 0. Update your zsh's git-completion module to the newest version.
-# From here. http://zsh.git.sourceforge.net/git/gitweb.cgi?p=zsh/zsh;a=blob_plain;f=Completion/Unix/Command/_git;hb=HEAD
+# From here: https://github.com/zsh-users/zsh/blob/master/Completion/Unix/Command/_git
#
# 1. Install this file. Either:
#
diff --git a/plugins/git-prompt/git-prompt.plugin.zsh b/plugins/git-prompt/git-prompt.plugin.zsh
index 5175bf70f..2776f297f 100644
--- a/plugins/git-prompt/git-prompt.plugin.zsh
+++ b/plugins/git-prompt/git-prompt.plugin.zsh
@@ -1,5 +1,5 @@
# ZSH Git Prompt Plugin from:
-# http://github.com/olivierverdier/zsh-git-prompt
+# https://github.com/olivierverdier/zsh-git-prompt
__GIT_PROMPT_DIR="${0:A:h}"
diff --git a/plugins/github/README.md b/plugins/github/README.md
index fea607876..2b66e390f 100644
--- a/plugins/github/README.md
+++ b/plugins/github/README.md
@@ -11,14 +11,14 @@ This plugin supports working with GitHub from the command line. It provides a fe
* `empty_gh` - Creates a new empty repo (with a `README.md`) and pushes it to GitHub
* `new_gh` - Initializes an existing directory as a repo and pushes it to GitHub
* `exist_gh` - Takes an existing repo and pushes it to GitHub
-* `git.io` - Shortens a URL using [git.io](http://git.io)
+* `git.io` - Shortens a URL using [git.io](https://git.io)
## Installation
-[Hub](http://github.com/github/hub) needs to be installed if you want to use it. On OS X with Homebrew, this can be done with `brew install hub`. The `hub` completion definition needs to be added to your `$FPATH` before initializing OMZ.
+[Hub](https://github.com/github/hub) needs to be installed if you want to use it. On OS X with Homebrew, this can be done with `brew install hub`. The `hub` completion definition needs to be added to your `$FPATH` before initializing OMZ.
-The [`github` Ruby gem](http://github.com/defunkt/github-gem) needs to be installed if you want to use it.
+The [`github` Ruby gem](https://github.com/defunkt/github-gem) needs to be installed if you want to use it.
### Configuration
diff --git a/plugins/github/github.plugin.zsh b/plugins/github/github.plugin.zsh
index 077f07bd4..fd19fb524 100644
--- a/plugins/github/github.plugin.zsh
+++ b/plugins/github/github.plugin.zsh
@@ -1,4 +1,4 @@
-# Set up hub wrapper for git, if it is available; http://github.com/github/hub
+# Set up hub wrapper for git, if it is available; https://github.com/github/hub
if (( $+commands[hub] )); then
alias git=hub
fi
@@ -63,7 +63,7 @@ exist_gh() { # [DIRECTORY]
# git.io "GitHub URL"
#
# Shorten GitHub url, example:
-# https://github.com/nvogel/dotzsh > http://git.io/8nU25w
+# https://github.com/nvogel/dotzsh > https://git.io/8nU25w
# source: https://github.com/nvogel/dotzsh
# documentation: https://github.com/blog/985-git-io-github-url-shortener
#
diff --git a/plugins/globalias/README.md b/plugins/globalias/README.md
index ba9888ccb..0b064105d 100644
--- a/plugins/globalias/README.md
+++ b/plugins/globalias/README.md
@@ -2,7 +2,7 @@
Expands all glob expressions, subcommands and aliases (including global).
-Idea from: http://blog.patshead.com/2012/11/automatically-expaning-zsh-global-aliases---simplified.html.
+Idea from: https://blog.patshead.com/2012/11/automatically-expaning-zsh-global-aliases---simplified.html.
## Usage
diff --git a/plugins/hanami/README.md b/plugins/hanami/README.md
index ef3451faf..3ac8defbb 100644
--- a/plugins/hanami/README.md
+++ b/plugins/hanami/README.md
@@ -1,12 +1,12 @@
# Hanami Plugin #
-This plugin adds convenient ways to work with [Hanami](http://hanamirb.org/) via console.
+This plugin adds convenient ways to work with [Hanami](https://hanamirb.org/) via console.
It's inspired by Rails plugin, so if you've used it, you'll feel like home.
## Usage ##
For example, type `hc` into your console when you're within Hanami project directory to run
the application console. Have a look at available shortcuts below. You can read more about
-these commands [on the official website](http://hanamirb.org/guides/command-line/applications/).
+these commands [on the official website](https://hanamirb.org/guides/command-line/applications/).
## Aliases ##
diff --git a/plugins/history-substring-search/README.md b/plugins/history-substring-search/README.md
index 0c02e91b1..7fb0fa0b6 100644
--- a/plugins/history-substring-search/README.md
+++ b/plugins/history-substring-search/README.md
@@ -6,9 +6,9 @@ feature, where you can type in any part of any previously entered command
and press the UP and DOWN arrow keys to cycle through the matching commands.
You can also use K and J in VI mode or ^P and ^N in EMACS mode for the same.
-[1]: http://fishshell.com
-[2]: http://www.zsh.org/mla/users/2009/msg00818.html
-[3]: http://sourceforge.net/projects/fizsh/
+[1]: https://fishshell.com
+[2]: https://www.zsh.org/mla/users/2009/msg00818.html
+[3]: https://sourceforge.net/projects/fizsh/
[4]: https://github.com/robbyrussell/oh-my-zsh/pull/215
[5]: https://github.com/zsh-users/zsh-history-substring-search
[6]: https://github.com/zsh-users/zsh-syntax-highlighting
diff --git a/plugins/httpie/README.md b/plugins/httpie/README.md
index 1d4ec48bd..56aa6a8ca 100644
--- a/plugins/httpie/README.md
+++ b/plugins/httpie/README.md
@@ -1,6 +1,6 @@
## HTTPie
**Maintainer:** [lululau](https://github.com/lululau)
-This plugin adds completion for HTTPie, which is a command line HTTP client, a user-friendly cURL replacement.
+This plugin adds completion for HTTPie, which is a command line HTTP client, a user-friendly cURL replacement.
-[HTTPie Homepage](http://httpie.org)
+[HTTPie Homepage](https://httpie.org)
diff --git a/plugins/jake-node/jake-node.plugin.zsh b/plugins/jake-node/jake-node.plugin.zsh
index a9eef4029..3b692f899 100644
--- a/plugins/jake-node/jake-node.plugin.zsh
+++ b/plugins/jake-node/jake-node.plugin.zsh
@@ -3,7 +3,7 @@
# Warning : Jakefile should have the right case : Jakefile or jakefile
# Tested on : MacOSX 10.7 (Lion), Ubuntu 11.10
# Author : Alexandre Lacheze (@al3xstrat)
-# Inspiration : http://weblog.rubyonrails.org/2006/3/9/fast-rake-task-completion-for-zsh
+# Inspiration : https://weblog.rubyonrails.org/2006/3/9/fast-rake-task-completion-for-zsh
function _jake () {
if [ -f Jakefile ]||[ -f jakefile ]; then
@@ -11,4 +11,4 @@ function _jake () {
fi
}
-compdef _jake jake
\ No newline at end of file
+compdef _jake jake
diff --git a/plugins/kitchen/_kitchen b/plugins/kitchen/_kitchen
index dee5c5809..29a3125e4 100644
--- a/plugins/kitchen/_kitchen
+++ b/plugins/kitchen/_kitchen
@@ -1,6 +1,6 @@
#compdef kitchen
# ------------------------------------------------------------------------------
-# Copyright (c) 2014 Github zsh-users - http://github.com/zsh-users
+# Copyright (c) 2014 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -28,7 +28,7 @@
# Description
# -----------
#
-# Completion script for Test Kitchen (http://kitchen.ci/).
+# Completion script for Test Kitchen (https://kitchen.ci/).
#
# ------------------------------------------------------------------------------
# Authors
diff --git a/plugins/kube-ps1/kube-ps1.plugin.zsh b/plugins/kube-ps1/kube-ps1.plugin.zsh
index fadef80d7..df7277a26 100644
--- a/plugins/kube-ps1/kube-ps1.plugin.zsh
+++ b/plugins/kube-ps1/kube-ps1.plugin.zsh
@@ -10,7 +10,7 @@
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
-# http://www.apache.org/licenses/LICENSE-2.0
+# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
diff --git a/plugins/lighthouse/lighthouse.plugin.zsh b/plugins/lighthouse/lighthouse.plugin.zsh
index 48cddbccc..4a47b6010 100644
--- a/plugins/lighthouse/lighthouse.plugin.zsh
+++ b/plugins/lighthouse/lighthouse.plugin.zsh
@@ -1,7 +1,7 @@
# To use: add a .lighthouse file into your directory with the URL to the
# individual project. For example:
# https://rails.lighthouseapp.com/projects/8994
-# Example usage: http://screencast.com/t/ZDgwNDUwNT
+# Example usage: https://screencast.com/t/ZDgwNDUwNT
open_lighthouse_ticket () {
if [ ! -f .lighthouse-url ]; then
echo "There is no .lighthouse-url file in the current directory..."
diff --git a/plugins/lol/lol.plugin.zsh b/plugins/lol/lol.plugin.zsh
index e9a62a863..585f96e4f 100644
--- a/plugins/lol/lol.plugin.zsh
+++ b/plugins/lol/lol.plugin.zsh
@@ -1,5 +1,5 @@
# LOL!!1
-# Source: http://aur.archlinux.org/packages/lolbash/lolbash/lolbash.sh
+# Source: https://aur.archlinux.org/packages/lolbash/lolbash/lolbash.sh
alias wtf='dmesg'
alias onoz='cat /var/log/errors.log'
@@ -45,7 +45,7 @@ alias bringz='git pull'
alias chicken='git add'
alias oanward='git commit -m'
alias ooanward='git commit -am'
-alias yolo='git commit -m "$(curl -s whatthecommit.com/index.txt)"'
+alias yolo='git commit -m "$(curl -s https://whatthecommit.com/index.txt)"'
alias letcat='git checkout'
alias violenz='git rebase'
diff --git a/plugins/mix-fast/README.md b/plugins/mix-fast/README.md
index 9a5eccc3f..644f12409 100644
--- a/plugins/mix-fast/README.md
+++ b/plugins/mix-fast/README.md
@@ -8,7 +8,7 @@ to update cache you should remove .mix_tasks file
Inspired by and based on rake-fast zsh plugin.
-This is entirely based on [this pull request by Ullrich Schäfer](https://github.com/robb/.dotfiles/pull/10/), which is inspired by [this Ruby on Rails trick from 2006](http://weblog.rubyonrails.org/2006/3/9/fast-mix-task-completion-for-zsh/).
+This is entirely based on [this pull request by Ullrich Schäfer](https://github.com/robb/.dotfiles/pull/10/), which is inspired by [this Ruby on Rails trick from 2006](https://weblog.rubyonrails.org/2006/3/9/fast-rake-task-completion-for-zsh/).
## Installation
@@ -25,4 +25,4 @@ You might consider adding `.mix_tasks` to your [global .gitignore](https://help.
`mix`, then press tab
-Currently maintained by [styx](https://github.com/styx/)
\ No newline at end of file
+Currently maintained by [styx](https://github.com/styx/)
diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
index b7d6aca72..d99cf0b1e 100644
--- a/plugins/osx/osx.plugin.zsh
+++ b/plugins/osx/osx.plugin.zsh
@@ -241,7 +241,7 @@ if [[ ! -z "$playlist" ]]; then
case "$state" in
on|off)
- # Inspired by: http://stackoverflow.com/a/14675583
+ # Inspired by: https://stackoverflow.com/a/14675583
osascript 1>/dev/null 2>&1 <<-EOF
tell application "System Events" to perform action "AXPress" of (menu item "${state}" of menu "Shuffle" of menu item "Shuffle" of menu "Controls" of menu bar item "Controls" of menu bar 1 of application process "iTunes" )
EOF
diff --git a/plugins/osx/spotify b/plugins/osx/spotify
index 69f6c5419..2ab98d3a0 100644
--- a/plugins/osx/spotify
+++ b/plugins/osx/spotify
@@ -408,7 +408,7 @@ while [ $# -gt 0 ]; do
uri=`osascript -e 'tell application "Spotify" to spotify url of current track'`;
remove='spotify:track:'
url=${uri#$remove}
- url="http://open.spotify.com/track/$url"
+ url="https://open.spotify.com/track/$url"
if [ "$2" = "" ]; then
cecho "Spotify URL: $url"
diff --git a/plugins/pass/_pass b/plugins/pass/_pass
index 7a9b1f955..715229e76 100644
--- a/plugins/pass/_pass
+++ b/plugins/pass/_pass
@@ -8,7 +8,7 @@
# All Rights Reserved.
#
# This file is licensed under the GPLv2+.
-# Please visit http://git.zx2c4.com/password-store/tree/COPYING for more information.
+# Please visit https://git.zx2c4.com/password-store/tree/COPYING for more information.
#
# Oh my zsh plugin maintainer: Santiago Borrazás
diff --git a/plugins/per-directory-history/README.md b/plugins/per-directory-history/README.md
index 196f74e6c..ea445d329 100644
--- a/plugins/per-directory-history/README.md
+++ b/plugins/per-directory-history/README.md
@@ -4,13 +4,13 @@
Per directory history for zsh, as well as global history, and the
ability to toggle between them with ^G.
-This is a implementation of per directory history for zsh, some
-implementations of which exist in bash[1][],[2][]. It also implements
-a per-directory-history-toggle-history function to change from using the
-directory history to using the global history. In both cases the history is
-always saved to both the global history and the directory history, so the
-toggle state will not effect the saved histories. Being able to switch
-between global and directory histories on the fly is a novel feature as far
+This is a implementation of per directory history for zsh, some
+implementations of which exist in bash[1][],[2][]. It also implements
+a per-directory-history-toggle-history function to change from using the
+directory history to using the global history. In both cases the history is
+always saved to both the global history and the directory history, so the
+toggle state will not effect the saved histories. Being able to switch
+between global and directory histories on the fly is a novel feature as far
as I am aware.
This is a standalone repository for the script, however it is also included in
@@ -34,7 +34,7 @@ Usage
Configuration
-------------------------------------------------------------------------------
-* HISTORY_BASE a global variable that defines the base directory in which the
+* HISTORY_BASE a global variable that defines the base directory in which the
directory histories are stored
* per-directory-history-toggle-history is the function to toggle the history
@@ -42,14 +42,14 @@ Configuration
History
-------------------------------------------------------------------------------
-The idea/inspiration for a per directory history is from [Stewart MacArthur][1]
-and [Dieter][2], the implementation idea is from [Bart Schaefer][3]. The
+The idea/inspiration for a per directory history is from [Stewart MacArthur][1]
+and [Dieter][2], the implementation idea is from [Bart Schaefer][3]. The
implementation is by [Jim Hester][5] in September 2012.
[1]: http://www.compbiome.com/2010/07/bash-per-directory-bash-history.html
[2]: http://dieter.plaetinck.be/per_directory_bash
-[3]: http://www.zsh.org/mla/users/1997/msg00226.html
+[3]: https://www.zsh.org/mla/users/1997/msg00226.html
[4]: https://github.com/robbyrussell/oh-my-zsh
[5]: http://jimhester.com
-[6]: http://github.com/jimhester/per-directory-history
+[6]: https://github.com/jimhester/per-directory-history
diff --git a/plugins/per-directory-history/per-directory-history.zsh b/plugins/per-directory-history/per-directory-history.zsh
index 1242dc420..53ad963e7 100644
--- a/plugins/per-directory-history/per-directory-history.zsh
+++ b/plugins/per-directory-history/per-directory-history.zsh
@@ -26,7 +26,7 @@
#
# [1]: http://www.compbiome.com/2010/07/bash-per-directory-bash-history.html
# [2]: http://dieter.plaetinck.be/per_directory_bash
-# [3]: http://www.zsh.org/mla/users/1997/msg00226.html
+# [3]: https://www.zsh.org/mla/users/1997/msg00226.html
#
################################################################################
#
diff --git a/plugins/percol/README.md b/plugins/percol/README.md
index 97cca6876..b262e414e 100644
--- a/plugins/percol/README.md
+++ b/plugins/percol/README.md
@@ -2,9 +2,6 @@
Provides some useful function to make [percol](https://github.com/mooz/percol) work with zsh history and [jump plugin](https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/jump/jump.plugin.zsh)
-### Preview
-![Preview](http://t1.qpic.cn/mblogpic/eb1c8f9d2b9f62d19fa8/2000.jpg)
-
### Requirements
```shell
diff --git a/plugins/perl/perl.plugin.zsh b/plugins/perl/perl.plugin.zsh
index 1fbf7c122..678e88d97 100644
--- a/plugins/perl/perl.plugin.zsh
+++ b/plugins/perl/perl.plugin.zsh
@@ -21,7 +21,7 @@ alias pd='perldoc'
alias ple='perl -wlne'
# show the latest stable release of Perl
-alias latest-perl='curl -s http://www.perl.org/get.html | perl -wlne '\''if (/perl\-([\d\.]+)\.tar\.gz/) { print $1; exit;}'\'
+alias latest-perl='curl -s https://www.perl.org/get.html | perl -wlne '\''if (/perl\-([\d\.]+)\.tar\.gz/) { print $1; exit;}'\'
diff --git a/plugins/pod/_pod b/plugins/pod/_pod
index 508a47102..80d23daad 100644
--- a/plugins/pod/_pod
+++ b/plugins/pod/_pod
@@ -7,7 +7,7 @@
# -----------------------------------------------------------------------------
# FILE: _pod
# DESCRIPTION: Cocoapods (0.33.1) autocomplete plugin for Oh-My-Zsh
-# http://cocoapods.org
+# https://cocoapods.org
# Generated with `pod --completion-script
# AUTHOR: Alexandre Joly (alexandre.joly@mekanics.ch)
# GITHUB: https://github.com/mekanics
diff --git a/plugins/pow/pow.plugin.zsh b/plugins/pow/pow.plugin.zsh
index ded3336a7..0b8ccd15b 100644
--- a/plugins/pow/pow.plugin.zsh
+++ b/plugins/pow/pow.plugin.zsh
@@ -73,7 +73,7 @@ powed(){
}
# Restart pow process
-# taken from http://www.matthewratzloff.com/blog/2011/12/23/restarting-pow-when-dns-stops-responding
+# taken from https://www.matthewratzloff.com
repow(){
lsof | grep 20560 | awk '{print $2}' | xargs kill -9
launchctl unload ~/Library/LaunchAgents/cx.pow.powd.plist
diff --git a/plugins/rake-fast/README.md b/plugins/rake-fast/README.md
index 1417befa1..23cbd80fc 100644
--- a/plugins/rake-fast/README.md
+++ b/plugins/rake-fast/README.md
@@ -8,7 +8,7 @@ checks the file modification time to see if it needs to regenerate the cache
file.
This is entirely based on [this pull request by Ullrich Schäfer](https://github.com/robb/.dotfiles/pull/10/),
-which is inspired by [this Ruby on Rails trick from 2006](http://weblog.rubyonrails.org/2006/3/9/fast-rake-task-completion-for-zsh/).
+which is inspired by [this Ruby on Rails trick from 2006](https://weblog.rubyonrails.org/2006/3/9/fast-rake-task-completion-for-zsh/).
Think about that. 2006.
diff --git a/plugins/repo/README.md b/plugins/repo/README.md
index 0b77e6d48..4d9366adf 100644
--- a/plugins/repo/README.md
+++ b/plugins/repo/README.md
@@ -2,6 +2,6 @@
**Maintainer:** [Stibbons](https://github.com/Stibbons)
This plugin mainly add support automatic completion for the repo command line tool:
-http://code.google.com/p/git-repo/
+https://code.google.com/p/git-repo/
* `r` aliases `repo`
diff --git a/plugins/safe-paste/safe-paste.plugin.zsh b/plugins/safe-paste/safe-paste.plugin.zsh
index 17c212c19..75f1791d7 100644
--- a/plugins/safe-paste/safe-paste.plugin.zsh
+++ b/plugins/safe-paste/safe-paste.plugin.zsh
@@ -1,7 +1,7 @@
-# Code from Mikael Magnusson: http://www.zsh.org/mla/users/2011/msg00367.html
+# Code from Mikael Magnusson: https://www.zsh.org/mla/users/2011/msg00367.html
#
# Requires xterm, urxvt, iTerm2 or any other terminal that supports bracketed
-# paste mode as documented: http://www.xfree86.org/current/ctlseqs.html
+# paste mode as documented: https://www.xfree86.org/current/ctlseqs.html
# create a new keymap to use while pasting
bindkey -N paste
diff --git a/plugins/scala/_scala b/plugins/scala/_scala
index 80434680c..f7511a647 100644
--- a/plugins/scala/_scala
+++ b/plugins/scala/_scala
@@ -1,6 +1,6 @@
#compdef scala scalac
# ------------------------------------------------------------------------------
-# Copyright (c) 2012 Github zsh-users - http://github.com/zsh-users
+# Copyright (c) 2012 Github zsh-users - https://github.com/zsh-users
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -28,7 +28,7 @@
# Description
# -----------
#
-# Completion script for scala and scalac (http://www.scala-lang.org/).
+# Completion script for scala and scalac (https://www.scala-lang.org/).
#
# ------------------------------------------------------------------------------
# Authors
diff --git a/plugins/scd/README.md b/plugins/scd/README.md
index 86ab67203..8c156da1f 100644
--- a/plugins/scd/README.md
+++ b/plugins/scd/README.md
@@ -14,8 +14,8 @@ directory aliases, which appear as named directories in zsh session.
## INSTALLATION NOTES
Besides oh-my-zsh, `scd` can be used with *bash*, *dash* or *tcsh*
-shells and is also available as [Vim](http://www.vim.org/) plugin and
-[IPython](http://ipython.org/) extension. For installation details, see
+shells and is also available as [Vim](https://www.vim.org/) plugin and
+[IPython](https://ipython.org/) extension. For installation details, see
https://github.com/pavoljuhas/smart-change-directory.
## SYNOPSIS
diff --git a/plugins/scw/_scw b/plugins/scw/_scw
index f9fdf916e..0eb125c65 100644
--- a/plugins/scw/_scw
+++ b/plugins/scw/_scw
@@ -1,6 +1,6 @@
#compdef scw
#
-# zsh completion for scw (http://scaleway.com)
+# zsh completion for scw (https://www.scaleway.com)
#
# Inspired by https://github.com/felixr/docker-zsh-completion
diff --git a/plugins/shrink-path/README.md b/plugins/shrink-path/README.md
index 51fa8a051..b990aea91 100644
--- a/plugins/shrink-path/README.md
+++ b/plugins/shrink-path/README.md
@@ -57,10 +57,10 @@ supported.
Copyright (C) 2008 by Daniel Friesel
-License: WTFPL
+License: WTFPL
-Ref: http://www.zsh.org/mla/workers/2009/msg00415.html
- http://www.zsh.org/mla/workers/2009/msg00419.html
+Ref: https://www.zsh.org/mla/workers/2009/msg00415.html
+ https://www.zsh.org/mla/workers/2009/msg00419.html
## Misc
diff --git a/plugins/shrink-path/shrink-path.plugin.zsh b/plugins/shrink-path/shrink-path.plugin.zsh
index 29e6f0deb..86102e651 100644
--- a/plugins/shrink-path/shrink-path.plugin.zsh
+++ b/plugins/shrink-path/shrink-path.plugin.zsh
@@ -24,10 +24,10 @@
# Keywords: prompt directory truncate shrink collapse fish
#
# Copyright (C) 2008 by Daniel Friesel
-# License: WTFPL
+# License: WTFPL
#
-# Ref: http://www.zsh.org/mla/workers/2009/msg00415.html
-# http://www.zsh.org/mla/workers/2009/msg00419.html
+# Ref: https://www.zsh.org/mla/workers/2009/msg00415.html
+# https://www.zsh.org/mla/workers/2009/msg00419.html
shrink_path () {
setopt localoptions
diff --git a/plugins/spring/README.md b/plugins/spring/README.md
index 62bfd8013..816181326 100644
--- a/plugins/spring/README.md
+++ b/plugins/spring/README.md
@@ -10,16 +10,16 @@ oh-my-zsh Spring Boot plugin
$ cd ~/.oh-my-zsh/plugins
$ git clone git@github.com:linux-china/oh-my-zsh-spring-boot-plugin.git spring
-Adjust your .zshrc file and add spring to plugins=(...)
-
-## Tips
+Adjust your .zshrc file and add spring to plugins=(...)
+
+## Tips
* Install Spring Cloud plugin: spring install org.springframework.cloud:spring-cloud-cli:1.0.2.RELEASE
## Reference
-* Spring Boot: http://projects.spring.io/spring-boot/
-* Spring Boot CLI: http://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#cli
+* Spring Boot: https://spring.io/projects/spring-boot
+* Spring Boot CLI: https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#cli
Maintainer : linux_china ([@linux_china](https://twitter.com/linux_china))
diff --git a/plugins/sprunge/sprunge.plugin.zsh b/plugins/sprunge/sprunge.plugin.zsh
index fcc9004f8..e1c89b729 100644
--- a/plugins/sprunge/sprunge.plugin.zsh
+++ b/plugins/sprunge/sprunge.plugin.zsh
@@ -1,40 +1,40 @@
# Contributed and SLIGHTLY modded by Matt Parnell/ilikenwf
# Created by the blogger at the URL below...I don't know where to find his/her name
-# Original found at http://www.shellperson.net/sprunge-pastebin-script/
-
+# Original found at https://www.shellperson.net/sprunge-pastebin-script/
+
usage() {
description | fmt -s >&2
}
-
+
description() {
cat << HERE
-
+
DESCRIPTION
Upload data and fetch URL from the pastebin http://sprunge.us
-
+
USAGE
$0 filename.txt
$0 text string
$0 < filename.txt
piped_data | $0
-
+
NOTES
--------------------------------------------------------------------------
* INPUT METHODS *
$0 can accept piped data, STDIN redirection [
+ Copyright (C) 2007 Free Software Foundation, Inc.
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
@@ -671,7 +671,7 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
- along with this program. If not, see .
+ along with this program. If not, see .
Also add information on how to contact you by electronic and paper mail.
@@ -690,11 +690,11 @@ might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
-.
+.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
-.
+.
diff --git a/themes/adben.zsh-theme b/themes/adben.zsh-theme
index e4774cf0e..b9ac77d00 100644
--- a/themes/adben.zsh-theme
+++ b/themes/adben.zsh-theme
@@ -6,7 +6,7 @@
# # a) displaying a pseudo-random message from a database of quotations
# # (https://en.wikipedia.org/wiki/Fortune_%28Unix%29)
# # b) displaying randomly command line tips from The command line fu
-# # (http://www.commandlinefu.com) community: in order to make use of this functionality
+# # (https://www.commandlinefu.com) community: in order to make use of this functionality
# # you will need Internet connection.
# # This theme provides as well information for the current user's context, like;
# # branch and status for the current version control system (git and svn currently
@@ -23,11 +23,11 @@
# # optionally:
# # -Oh-myzsh vcs plug-ins git and svn.
# # -Solarized theme (https://github.com/altercation/solarized/)
-# # -OS X: iTerm 2 (http://www.iterm2.com/)
+# # -OS X: iTerm 2 (https://iterm2.com/)
# # -font Source code pro (https://github.com/adobe/source-code-pro)
# #
# # This theme's look and feel is based on the Aaron Toponce's zsh theme, more info:
-# # http://pthree.org/2008/11/23/727/
+# # https://pthree.org/2008/11/23/727/
# # enjoy!
########## COLOR ###########
for COLOR in CYAN WHITE YELLOW MAGENTA BLACK BLUE RED DEFAULT GREEN GREY; do
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
index b0a794f4d..d91f98735 100644
--- a/themes/agnoster.zsh-theme
+++ b/themes/agnoster.zsh-theme
@@ -13,7 +13,7 @@
#
# In addition, I recommend the
# [Solarized theme](https://github.com/altercation/solarized/) and, if you're
-# using it on Mac OS X, [iTerm 2](http://www.iterm2.com/) over Terminal.app -
+# using it on Mac OS X, [iTerm 2](https://iterm2.com/) over Terminal.app -
# it has significantly better color fidelity.
#
# # Goals
diff --git a/themes/arrow.zsh-theme b/themes/arrow.zsh-theme
index d62dcdcb9..a3e77d65d 100644
--- a/themes/arrow.zsh-theme
+++ b/themes/arrow.zsh-theme
@@ -8,7 +8,7 @@ ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_DIRTY="*"
ZSH_THEME_GIT_PROMPT_CLEAN=""
-# See http://geoff.greer.fm/lscolors/
+# See https://geoff.greer.fm/lscolors/
export LSCOLORS="exfxcxdxbxbxbxbxbxbxbx"
export LS_COLORS="di=34;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=31;40:cd=31;40:su=31;40:sg=31;40:tw=31;40:ow=31;40:"
diff --git a/themes/avit.zsh-theme b/themes/avit.zsh-theme
index c43fcc9fe..cf439f757 100644
--- a/themes/avit.zsh-theme
+++ b/themes/avit.zsh-theme
@@ -102,7 +102,7 @@ ZSH_THEME_GIT_TIME_SHORT_COMMIT_MEDIUM="%{$fg[yellow]%}"
ZSH_THEME_GIT_TIME_SINCE_COMMIT_LONG="%{$fg[red]%}"
ZSH_THEME_GIT_TIME_SINCE_COMMIT_NEUTRAL="%{$fg[white]%}"
-# LS colors, made with http://geoff.greer.fm/lscolors/
+# LS colors, made with https://geoff.greer.fm/lscolors/
export LSCOLORS="exfxcxdxbxegedabagacad"
export LS_COLORS='di=34;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:'
export GREP_COLOR='1;33'
diff --git a/themes/bira.zsh-theme b/themes/bira.zsh-theme
index 29bda0be8..675483996 100644
--- a/themes/bira.zsh-theme
+++ b/themes/bira.zsh-theme
@@ -1,4 +1,4 @@
-# ZSH Theme - Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
+# ZSH Theme - Preview: https://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
diff --git a/themes/clean.zsh-theme b/themes/clean.zsh-theme
index 7ee29cb8c..5c96e4726 100644
--- a/themes/clean.zsh-theme
+++ b/themes/clean.zsh-theme
@@ -9,6 +9,6 @@ ZSH_THEME_GIT_PROMPT_SUFFIX="%b%{$fg_bold[blue]%})%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}✗"
-# LS colors, made with http://geoff.greer.fm/lscolors/
+# LS colors, made with https://geoff.greer.fm/lscolors/
export LSCOLORS="Gxfxcxdxbxegedabagacad"
export LS_COLORS='no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:'
diff --git a/themes/duellj.zsh-theme b/themes/duellj.zsh-theme
index 3849c35be..f70b39bc3 100644
--- a/themes/duellj.zsh-theme
+++ b/themes/duellj.zsh-theme
@@ -1,6 +1,6 @@
# user, host, full path, and time/date
# on two lines for easier vgrepping
-# entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
+# entry in a nice long thread on the Arch Linux forums: https://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
PROMPT=$'%{\e[0;34m%}%B┌─[%b%{\e[0m%}%{\e[1;32m%}%n%{\e[1;34m%}@%{\e[0m%}%{\e[0;36m%}%m%{\e[0;34m%}%B]%b%{\e[0m%} - %b%{\e[0;34m%}%B[%b%{\e[1;37m%}%~%{\e[0;34m%}%B]%b%{\e[0m%} - %{\e[0;34m%}%B[%b%{\e[0;33m%}%!%{\e[0;34m%}%B]%b%{\e[0m%}
%{\e[0;34m%}%B└─%B[%{\e[1;35m%}$%{\e[0;34m%}%B]%{\e[0m%}%b '
RPROMPT='[%*]'
diff --git a/themes/funky.zsh-theme b/themes/funky.zsh-theme
index 2451296d9..574538f88 100644
--- a/themes/funky.zsh-theme
+++ b/themes/funky.zsh-theme
@@ -1,5 +1,5 @@
# Taken from Tassilo's Blog
-# http://tsdh.wordpress.com/2007/12/06/my-funky-zsh-prompt/
+# https://tsdh.wordpress.com/2007/12/06/my-funky-zsh-prompt/
local blue_op="%{$fg[blue]%}[%{$reset_color%}"
local blue_cp="%{$fg[blue]%}]%{$reset_color%}"
@@ -11,4 +11,4 @@ local smiley="%(?,%{$fg[green]%}:%)%{$reset_color%},%{$fg[red]%}:(%{$reset_color
PROMPT="╭─${path_p}─${user_host}─${ret_status}─${hist_no}
╰─${blue_op}${smiley}${blue_cp} %# "
local cur_cmd="${blue_op}%_${blue_cp}"
-PROMPT2="${cur_cmd}> "
\ No newline at end of file
+PROMPT2="${cur_cmd}> "
diff --git a/themes/gnzh.zsh-theme b/themes/gnzh.zsh-theme
index 04b0450a8..c763ef3c6 100644
--- a/themes/gnzh.zsh-theme
+++ b/themes/gnzh.zsh-theme
@@ -1,4 +1,3 @@
-# ZSH Theme - Preview: http://dl.dropbox.com/u/4109351/pics/gnzh-zsh-theme.png
# Based on bira theme
setopt prompt_subst
diff --git a/themes/half-life.zsh-theme b/themes/half-life.zsh-theme
index 8b458cde9..c79027ed6 100644
--- a/themes/half-life.zsh-theme
+++ b/themes/half-life.zsh-theme
@@ -1,11 +1,11 @@
# prompt style and colors based on Steve Losh's Prose theme:
-# http://github.com/sjl/oh-my-zsh/blob/master/themes/prose.zsh-theme
+# https://github.com/sjl/oh-my-zsh/blob/master/themes/prose.zsh-theme
#
# vcs_info modifications from Bart Trojanowski's zsh prompt:
# http://www.jukie.net/bart/blog/pimping-out-zsh-prompt
#
# git untracked files modification from Brian Carper:
-# http://briancarper.net/blog/570/git-info-in-your-zsh-prompt
+# https://briancarper.net/blog/570/git-info-in-your-zsh-prompt
function virtualenv_info {
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
diff --git a/themes/itchy.zsh-theme b/themes/itchy.zsh-theme
index c23889edf..e1f2d56e2 100644
--- a/themes/itchy.zsh-theme
+++ b/themes/itchy.zsh-theme
@@ -1,5 +1,3 @@
-# Inspired by http://peepcode.com/blog/2012/my-command-line-prompt
-
local smiley="%(?,%{$fg[green]%}☺%{$reset_color%},%{$fg[red]%}☹%{$reset_color%})"
local user="%{$fg[cyan]%}%n%{$reset_color%}"
diff --git a/themes/jreese.zsh-theme b/themes/jreese.zsh-theme
index 0fa6b4ecd..de42a1010 100644
--- a/themes/jreese.zsh-theme
+++ b/themes/jreese.zsh-theme
@@ -1,5 +1,3 @@
-# ZSH Theme - Preview: http://dl.dropbox.com/u/1552408/Screenshots/2010-04-08-oh-my-zsh.png
-
if [ $UID -eq 0 ]; then NCOLOR="red"; else NCOLOR="green"; fi
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
diff --git a/themes/lambda.zsh-theme b/themes/lambda.zsh-theme
index 63292d331..6e67773ea 100644
--- a/themes/lambda.zsh-theme
+++ b/themes/lambda.zsh-theme
@@ -1,5 +1,3 @@
-# ZSH Theme - Preview: http://cl.ly/350F0F0k1M2y3A2i3p1S
-
PROMPT='λ %~/ $(git_prompt_info)%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg[green]%}"
diff --git a/themes/lukerandall.zsh-theme b/themes/lukerandall.zsh-theme
index f4045bd8e..cdecd284f 100644
--- a/themes/lukerandall.zsh-theme
+++ b/themes/lukerandall.zsh-theme
@@ -1,4 +1,4 @@
-# ZSH Theme - Preview: http://cl.ly/f701d00760f8059e06dc
+# ZSH Theme - Preview: https://cl.ly/f701d00760f8059e06dc
# Thanks to gallifrey, upon whose theme this is based
local return_code="%(?..%{$fg_bold[red]%}%? ↵%{$reset_color%})"
diff --git a/themes/macovsky-ruby.zsh-theme b/themes/macovsky-ruby.zsh-theme
index 69d80d588..abda6232c 100644
--- a/themes/macovsky-ruby.zsh-theme
+++ b/themes/macovsky-ruby.zsh-theme
@@ -1,4 +1,4 @@
-# ZSH Theme - Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
+# ZSH Theme - Preview: https://i.gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
if [ -e ~/.rvm/bin/rvm-prompt ]; then
diff --git a/themes/macovsky.zsh-theme b/themes/macovsky.zsh-theme
index 2e6dce42d..d3f7d16b4 100644
--- a/themes/macovsky.zsh-theme
+++ b/themes/macovsky.zsh-theme
@@ -1,4 +1,4 @@
-# ZSH Theme - Preview: http://gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
+# ZSH Theme - Preview: https://i.gyazo.com/8becc8a7ed5ab54a0262a470555c3eed.png
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
if [ -e ~/.rvm/bin/rvm-prompt ]; then
diff --git a/themes/mh.zsh-theme b/themes/mh.zsh-theme
index 34a3765b1..2b2cc9b68 100644
--- a/themes/mh.zsh-theme
+++ b/themes/mh.zsh-theme
@@ -1,5 +1,5 @@
# mh theme
-# preview: http://cl.ly/1y2x0W0E3t2C0F29043z
+# preview: https://cl.ly/1y2x0W0E3t2C0F29043z
# features:
# path is autoshortened to ~30 characters
@@ -19,6 +19,6 @@ ZSH_THEME_GIT_PROMPT_SUFFIX="%b%{$fg_bold[gray]%})%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}✱"
-# LS colors, made with http://geoff.greer.fm/lscolors/
+# LS colors, made with https://geoff.greer.fm/lscolors/
export LSCOLORS="Gxfxcxdxbxegedabagacad"
export LS_COLORS='no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:'
diff --git a/themes/michelebologna.zsh-theme b/themes/michelebologna.zsh-theme
index 110e3f203..7ff6a7ffe 100644
--- a/themes/michelebologna.zsh-theme
+++ b/themes/michelebologna.zsh-theme
@@ -1,16 +1,16 @@
# Michele Bologna's theme
-# http://michelebologna.net
+# https://www.michelebologna.net
#
# This a theme for oh-my-zsh. Features a colored prompt with:
-# * username@host: [jobs] [git] workdir %
-# * hostname color is based on hostname characters. When using as root, the
+# * username@host: [jobs] [git] workdir %
+# * hostname color is based on hostname characters. When using as root, the
# prompt shows only the hostname in red color.
# * [jobs], if applicable, counts the number of suspended jobs tty
# * [git], if applicable, represents the status of your git repo (more on that
# later)
# * '%' prompt will be green if last command return value is 0, yellow otherwise.
-#
-# git prompt is inspired by official git contrib prompt:
+#
+# git prompt is inspired by official git contrib prompt:
# https://github.com/git/git/tree/master/contrib/completion/git-prompt.sh
# and it adds:
# * the current branch
diff --git a/themes/mikeh.zsh-theme b/themes/mikeh.zsh-theme
index a95383ba5..f231b91bb 100644
--- a/themes/mikeh.zsh-theme
+++ b/themes/mikeh.zsh-theme
@@ -15,7 +15,7 @@ mikeh_precmd() {
# user, host, full path, and time/date
# on two lines for easier vgrepping
-# entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
+# entry in a nice long thread on the Arch Linux forums: https://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
PROMPT=$'%{\e[0;34m%}%B..[%b%{\e[0m%}%{\e[1;32m%}%n%{\e[1;30m%}@%{\e[0m%}%{\e[0;36m%}%m%{\e[0;34m%}%B]%b%{\e[0m%} - %b%{\e[0;34m%}%B[%b%{\e[1;37m%}%~%{\e[0;34m%}%B]%b%{\e[0m%} - %{\e[0;34m%}%B[%b%{\e[0;33m%}'%D{"%a %b %d, %I:%M"}%b$'%{\e[0;34m%}%B]%b%{\e[0m%}
%{\e[0;34m%}%B..%B[%{\e[1;35m%}$%{\e[0;34m%}%B] <($vcs_info_msg_0_)>%{\e[0m%}%b '
-PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
\ No newline at end of file
+PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
diff --git a/themes/philips.zsh-theme b/themes/philips.zsh-theme
index f6e5b324e..fec734bad 100644
--- a/themes/philips.zsh-theme
+++ b/themes/philips.zsh-theme
@@ -9,6 +9,6 @@ ZSH_THEME_GIT_PROMPT_SUFFIX="%b%{$fg_bold[blue]%})%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_DIRTY="*"
-# LS colors, made with http://geoff.greer.fm/lscolors/
+# LS colors, made with https://geoff.greer.fm/lscolors/
export LSCOLORS="Gxfxcxdxbxegedabagacad"
export LS_COLORS='no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:*.patch=00;34:*.o=00;32:*.so=01;35:*.ko=01;31:*.la=00;33'
diff --git a/themes/pmcgee.zsh-theme b/themes/pmcgee.zsh-theme
index e4e45c71a..58a9b8bef 100644
--- a/themes/pmcgee.zsh-theme
+++ b/themes/pmcgee.zsh-theme
@@ -11,6 +11,6 @@ ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_CLEAN=""
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[red]%}*"
-# LS colors, made with http://geoff.greer.fm/lscolors/
+# LS colors, made with https://geoff.greer.fm/lscolors/
export LSCOLORS="Gxfxcxdxbxegedabagacad"
export LS_COLORS='no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:'
diff --git a/themes/rkj.zsh-theme b/themes/rkj.zsh-theme
index fe06161c8..d7c9314e3 100644
--- a/themes/rkj.zsh-theme
+++ b/themes/rkj.zsh-theme
@@ -1,6 +1,6 @@
# user, host, full path, and time/date
# on two lines for easier vgrepping
-# entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
+# entry in a nice long thread on the Arch Linux forums: https://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
function retcode() {}
diff --git a/themes/sorin.zsh-theme b/themes/sorin.zsh-theme
index ac6a49840..e478d2672 100644
--- a/themes/sorin.zsh-theme
+++ b/themes/sorin.zsh-theme
@@ -1,10 +1,10 @@
# sorin.zsh-theme
-# screenshot: http://i.imgur.com/aipDQ.png
+# screenshot: https://i.imgur.com/aipDQ.png
if [[ "$TERM" != "dumb" ]] && [[ "$DISABLE_LS_COLORS" != "true" ]]; then
MODE_INDICATOR="%{$fg_bold[red]%}❮%{$reset_color%}%{$fg[red]%}❮❮%{$reset_color%}"
local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%}"
-
+
PROMPT='%{$fg[cyan]%}%c$(git_prompt_info) %(!.%{$fg_bold[red]%}#.%{$fg_bold[green]%}❯)%{$reset_color%} '
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[blue]%}git%{$reset_color%}:%{$fg[red]%}"
@@ -20,10 +20,10 @@ if [[ "$TERM" != "dumb" ]] && [[ "$DISABLE_LS_COLORS" != "true" ]]; then
ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} ➜"
ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} ═"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ✭"
-else
+else
MODE_INDICATOR="❮❮❮"
local return_status="%(?::⏎)"
-
+
PROMPT='%c$(git_prompt_info) %(!.#.❯) '
ZSH_THEME_GIT_PROMPT_PREFIX=" git:"
diff --git a/themes/sporty_256.zsh-theme b/themes/sporty_256.zsh-theme
index db0fc4277..e008a8664 100644
--- a/themes/sporty_256.zsh-theme
+++ b/themes/sporty_256.zsh-theme
@@ -1,6 +1,6 @@
# zsh theme requires 256 color enabled terminal
# i.e TERM=xterm-256color
-# Preview - http://www.flickr.com/photos/adelcampo/4556482563/sizes/o/
+# Preview - https://www.flickr.com/photos/adelcampo/4556482563/sizes/o/
# based on robbyrussell's shell but louder!
PROMPT='%{$fg_bold[blue]%}$(git_prompt_info) %F{208}%c%f
diff --git a/themes/steeef.zsh-theme b/themes/steeef.zsh-theme
index 622c90465..3532d3bc7 100644
--- a/themes/steeef.zsh-theme
+++ b/themes/steeef.zsh-theme
@@ -1,11 +1,11 @@
# prompt style and colors based on Steve Losh's Prose theme:
-# http://github.com/sjl/oh-my-zsh/blob/master/themes/prose.zsh-theme
+# https://github.com/sjl/oh-my-zsh/blob/master/themes/prose.zsh-theme
#
# vcs_info modifications from Bart Trojanowski's zsh prompt:
# http://www.jukie.net/bart/blog/pimping-out-zsh-prompt
#
# git untracked files modification from Brian Carper:
-# http://briancarper.net/blog/570/git-info-in-your-zsh-prompt
+# https://briancarper.net/blog/570/git-info-in-your-zsh-prompt
export VIRTUAL_ENV_DISABLE_PROMPT=1
diff --git a/themes/sunaku.zsh-theme b/themes/sunaku.zsh-theme
index 440fa90b4..77f3acc7b 100644
--- a/themes/sunaku.zsh-theme
+++ b/themes/sunaku.zsh-theme
@@ -1,5 +1,4 @@
# Git-centric variation of the "fishy" theme.
-# See screenshot at http://ompldr.org/vOHcwZg
ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%}+"
ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[magenta]%}!"
diff --git a/themes/tonotdo.zsh-theme b/themes/tonotdo.zsh-theme
index a6407034c..426e2bf35 100644
--- a/themes/tonotdo.zsh-theme
+++ b/themes/tonotdo.zsh-theme
@@ -7,6 +7,6 @@ ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg_bold[blue]%})"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg_bold[yellow]%}✗%{$fg_bold[blue]%})"
-# LS colors, made with http://geoff.greer.fm/lscolors/
+# LS colors, made with https://geoff.greer.fm/lscolors/
export LSCOLORS="Gxfxcxdxbxegedabagacad"
-export LS_COLORS='no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:'
\ No newline at end of file
+export LS_COLORS='no=00:fi=00:di=01;34:ln=00;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=41;33;01:ex=00;32:*.cmd=00;32:*.exe=01;32:*.com=01;32:*.bat=01;32:*.btm=01;32:*.dll=01;32:*.tar=00;31:*.tbz=00;31:*.tgz=00;31:*.rpm=00;31:*.deb=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.lzma=00;31:*.zip=00;31:*.zoo=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.tb2=00;31:*.tz2=00;31:*.tbz2=00;31:*.avi=01;35:*.bmp=01;35:*.fli=01;35:*.gif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mng=01;35:*.mov=01;35:*.mpg=01;35:*.pcx=01;35:*.pbm=01;35:*.pgm=01;35:*.png=01;35:*.ppm=01;35:*.tga=01;35:*.tif=01;35:*.xbm=01;35:*.xpm=01;35:*.dl=01;35:*.gl=01;35:*.wmv=01;35:*.aiff=00;32:*.au=00;32:*.mid=00;32:*.mp3=00;32:*.ogg=00;32:*.voc=00;32:*.wav=00;32:'
diff --git a/themes/xiong-chiamiov-plus.zsh-theme b/themes/xiong-chiamiov-plus.zsh-theme
index 5fb4fe6f4..aa6ef7421 100644
--- a/themes/xiong-chiamiov-plus.zsh-theme
+++ b/themes/xiong-chiamiov-plus.zsh-theme
@@ -1,6 +1,6 @@
# user, host, full path, and time/date
# on two lines for easier vgrepping
-# entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
+# entry in a nice long thread on the Arch Linux forums: https://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
PROMPT=$'%{\e[0;34m%}%B┌─[%b%{\e[0m%}%{\e[1;32m%}%n%{\e[1;30m%}@%{\e[0m%}%{\e[0;36m%}%m%{\e[0;34m%}%B]%b%{\e[0m%} - %b%{\e[0;34m%}%B[%b%{\e[1;37m%}%~%{\e[0;34m%}%B]%b%{\e[0m%} - %{\e[0;34m%}%B[%b%{\e[0;33m%}'%D{"%a %b %d, %H:%M"}%b$'%{\e[0;34m%}%B]%b%{\e[0m%}
%{\e[0;34m%}%B└─%B[%{\e[1;35m%}$%{\e[0;34m%}%B] <$(git_prompt_info)>%{\e[0m%}%b '
PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
diff --git a/themes/xiong-chiamiov.zsh-theme b/themes/xiong-chiamiov.zsh-theme
index 0ed335fb5..b67d9947c 100644
--- a/themes/xiong-chiamiov.zsh-theme
+++ b/themes/xiong-chiamiov.zsh-theme
@@ -1,6 +1,6 @@
# user, host, full path, and time/date
# on two lines for easier vgrepping
-# entry in a nice long thread on the Arch Linux forums: http://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
+# entry in a nice long thread on the Arch Linux forums: https://bbs.archlinux.org/viewtopic.php?pid=521888#p521888
PROMPT=$'%{\e[0;34m%}%B┌─[%b%{\e[0m%}%{\e[1;32m%}%n%{\e[1;30m%}@%{\e[0m%}%{\e[0;36m%}%m%{\e[0;34m%}%B]%b%{\e[0m%} - %b%{\e[0;34m%}%B[%b%{\e[1;37m%}%~%{\e[0;34m%}%B]%b%{\e[0m%} - %{\e[0;34m%}%B[%b%{\e[0;33m%}'%D{"%a %b %d, %H:%M"}%b$'%{\e[0;34m%}%B]%b%{\e[0m%}
%{\e[0;34m%}%B└─%B[%{\e[1;35m%}$%{\e[0;34m%}%B]>%{\e[0m%}%b '
PS2=$' \e[0;34m%}%B>%{\e[0m%}%b '
diff --git a/tools/theme_chooser.sh b/tools/theme_chooser.sh
index 2c2a379ba..82ae5857c 100755
--- a/tools/theme_chooser.sh
+++ b/tools/theme_chooser.sh
@@ -5,7 +5,7 @@
# the extent permitted by applicable law. You can redistribute it
# and/or modify it under the terms of the Do What The Fuck You Want
# To Public License, Version 2, as published by Sam Hocevar. See
-# http://sam.zoy.org/wtfpl/COPYING for more details.
+# http://www.wtfpl.net/txt/copying/ for more details.
THEMES_DIR="$ZSH/themes"
FAVLIST="${HOME}/.zsh_favlist"
From 2991f237aeacb0a1918cdd6d4b98fe4b21980038 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Tue, 7 Aug 2018 21:04:09 +0200
Subject: [PATCH 212/644] bundler: allow aliases in `bundle exec`
This means that if you have, for example, `alias rs='rails server'`, you can
run `be rs` and have it expanded to `bundle exec rails server`.
Fixes #5818
---
plugins/bundler/bundler.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
index b0b286af5..589f2cfce 100644
--- a/plugins/bundler/bundler.plugin.zsh
+++ b/plugins/bundler/bundler.plugin.zsh
@@ -1,4 +1,4 @@
-alias be="bundle exec"
+alias be="bundle exec "
alias bl="bundle list"
alias bp="bundle package"
alias bo="bundle open"
From 850975eb78908e8272e42685da8b5ced3a428c97 Mon Sep 17 00:00:00 2001
From: Johan Kaving
Date: Tue, 7 Aug 2018 21:39:38 +0200
Subject: [PATCH 213/644] Add support for ForkLift 3 (#6490)
This adds support for ForkLift 3, which uses a different
application id and also uses a popover instead of a sheet for
entering the directory to go to.
This also improves the handling of different versions of ForkLift,
by first choosing any currently running instance, and if none is
running starting the newest available version.
Fixes #6565.
---
plugins/forklift/forklift.plugin.zsh | 100 ++++++++++++++++++---------
1 file changed, 69 insertions(+), 31 deletions(-)
diff --git a/plugins/forklift/forklift.plugin.zsh b/plugins/forklift/forklift.plugin.zsh
index 692ca5790..274c4a822 100644
--- a/plugins/forklift/forklift.plugin.zsh
+++ b/plugins/forklift/forklift.plugin.zsh
@@ -1,6 +1,6 @@
# Open folder in ForkLift.app or ForkLift2.app from console
# Author: Adam Strzelecki nanoant.com, modified by Bodo Tasche bitboxer.de
-# Updated to support ForkLift2 by Johan Kaving
+# Updated to support ForkLift 2 and ForkLift 3 by Johan Kaving
#
# Usage:
# fl []
@@ -24,46 +24,84 @@ function fl {
fi
osascript 2>&1 1>/dev/null <
Date: Tue, 7 Aug 2018 12:41:53 -0700
Subject: [PATCH 214/644] use official heroku autocomplete (#6919)
---
plugins/heroku/_heroku | 199 -------------------------------
plugins/heroku/heroku.plugin.zsh | 9 ++
2 files changed, 9 insertions(+), 199 deletions(-)
delete mode 100644 plugins/heroku/_heroku
create mode 100644 plugins/heroku/heroku.plugin.zsh
diff --git a/plugins/heroku/_heroku b/plugins/heroku/_heroku
deleted file mode 100644
index 4122de237..000000000
--- a/plugins/heroku/_heroku
+++ /dev/null
@@ -1,199 +0,0 @@
-#compdef heroku
-
-# Heroku Autocomplete plugin for Oh-My-Zsh
-# Requires: The Heroku client gem (https://github.com/heroku/heroku)
-# Author: Ali B. (http://awhitebox.com)
-
-local -a _1st_arguments
-_1st_arguments=(
- "account\:confirm_billing":"Confirm that your account can be billed at the end of the month"
- "addons":"list installed addons"
- "addons\:list":"list all available addons"
- "addons\:add":"install an addon"
- "addons\:upgrade":"upgrade an existing addon"
- "addons\:downgrade":"downgrade an existing addon"
- "addons\:remove":"uninstall an addon"
- "addons\:open":"open an addon's dashboard in your browser"
- "apps":"list your apps"
- "apps\:info":"show detailed app information"
- "apps\:create":"create a new app"
- "apps\:rename":"rename the app"
- "apps\:open":"open the app in a web browser"
- "apps\:destroy":"permanently destroy an app"
- "auth\:login":"log in with your heroku credentials"
- "auth\:logout":"clear local authentication credentials"
- "config":"display the config vars for an app"
- "config\:pull":"pull heroku config vars down to the local environment"
- "config\:push":"push local config vars to heroku"
- "config\:set":"set one or more config vars"
- "config\:unset":"unset one or more config vars"
- "domains":"list custom domains for an app"
- "domains\:add":"add a custom domain to an app"
- "domains\:remove":"remove a custom domain from an app"
- "domains\:clear":"remove all custom domains from an app"
- "features":"list available app features"
- "features\:disable":"disables a feature"
- "features\:enable":"enables an feature"
- "features\:info":"displays additional information about feature"
- "help":"list available commands or display help for a specific command"
- "keys":"display keys for the current user"
- "keys\:add":"add a key for the current user"
- "keys\:remove":"remove a key from the current user"
- "keys\:clear":"remove all authentication keys from the current user"
- "logs":"display recent log output"
- "logs\:cron":"DEPRECATED: display cron logs from legacy logging"
- "logs\:drains":"manage syslog drains"
- "maintenance\:on":"put the app into maintenance mode"
- "maintenance\:off":"take the app out of maintenance mode"
- "pipelines":"list pipelines you have access to"
- "pipelines\:add":"add this app to a pipeline"
- "pipelines\:create":"create a new pipeline"
- "pipelines\:destroy":"destroy a pipeline"
- "pipelines\:diff":"compares the latest release of this app to its downstream app(s)"
- "pipelines\:info":"show list of apps in a pipeline"
- "pipelines\:list":"list pipelines you have access to"
- "pipelines\:open":"open a pipeline in dashboard"
- "pipelines\:promote":"promote the latest release of this app to its downstream app(s)"
- "pipelines\:remove":"remove this app from its pipeline"
- "pipelines\:rename":"rename a pipeline"
- "pipelines\:update":"update this app's stage in a pipeline"
- "pg\:credentials":"display the DATABASE credentials"
- "pg\:diagnose":"run diagnostics report on DATABASE"
- "pg\:info":"display database information"
- "pg\:kill":"kill a query"
- "pg\:killall":"terminates ALL connections"
- "pg\:maintenance":"manage maintenance for DATABASE"
- "pg\:promote":"sets DATABASE as your DATABASE_URL"
- "pg\:ps":"view active queries with execution time"
- "pg\:psql":"open a psql shell to the database"
- "pg\:pull":"pull from REMOTE_SOURCE_DATABASE to LOCAL_TARGET_DATABASE"
- "pg\:push":"push from LOCAL_SOURCE_DATABASE to REMOTE_TARGET_DATABASE"
- "pg\:reset":"delete all data in DATABASE"
- "pg\:unfollow":"stop a replica from following and make it a read/write database"
- "pg\:upgrade":"unfollow a database and upgrade it to the latest PostgreSQL version"
- "pg\:wait":"monitor database creation, exit when complete"
- "pg\:backups":"Interact with built-in backups"
- "pgbackups":"list captured backups"
- "pgbackups\:url":"get a temporary URL for a backup"
- "pgbackups\:capture":"capture a backup from a database id"
- "pgbackups\:restore":"restore a backup to a database"
- "pgbackups\:destroy":"destroys a backup"
- "plugins":"list installed plugins"
- "plugins\:install":"install a plugin"
- "plugins\:uninstall":"uninstall a plugin"
- "ps\:dynos":"scale to QTY web processes"
- "ps\:workers":"scale to QTY background processes"
- "ps":"list processes for an app"
- "ps\:restart":"restart an app process"
- "ps\:scale":"scale processes by the given amount"
- "releases":"list releases"
- "releases\:info":"view detailed information for a release"
- "rollback":"roll back to an older release"
- "run":"run an attached process"
- "run\:rake":"remotely execute a rake command"
- "run\:console":"open a remote console session"
- "sharing":"list collaborators on an app"
- "sharing\:add":"add a collaborator to an app"
- "sharing\:remove":"remove a collaborator from an app"
- "sharing\:transfer":"transfer an app to a new owner"
- "ssl":"list certificates for an app"
- "ssl\:add":"add an ssl certificate to an app"
- "ssl\:remove":"remove an ssl certificate from an app"
- "ssl\:clear":"remove all ssl certificates from an app"
- "stack":"show the list of available stacks"
- "stack\:migrate":"prepare migration of this app to a new stack"
- "version":"show heroku client version"
-)
-
-_arguments '*:: :->command'
-
-if (( CURRENT == 1 )); then
- _describe -t commands "heroku command" _1st_arguments
- return
-fi
-
-local -a _command_args
-case "$words[1]" in
- apps:info)
- _command_args=(
- '(-r|--raw)'{-r,--raw}'[output info as raw key/value pairs]' \
- )
- ;;
- apps:create)
- _command_args=(
- '(-a|--addons)'{-a,--addons}'[a list of addons to install]' \
- '(-r|--remote)'{-r,--remote}'[the git remote to create, default "heroku"]' \
- '(-s|--stack)'{-s,--stack}'[the stack on which to create the app]' \
- )
- ;;
- config)
- _command_args=(
- '(-s|--shell)'{-s,--shell}'[output config vars in shell format]' \
- )
- ;;
- keys)
- _command_args=(
- '(-l|--long)'{-l,--long}'[display extended information for each key]' \
- )
- ;;
- logs)
- _command_args=(
- '(-n|--num)'{-n,--num}'[the number of lines to display]' \
- '(-p|--ps)'{-p,--ps}'[only display logs from the given process]' \
- '(-s|--source)'{-s,--source}'[only display logs from the given source]' \
- '(-t|--tail)'{-t,--tail}'[continually stream logs]' \
- )
- ;;
- pipelines)
- _command_args=(
- '(--json)'--json'[output in json format]' \
- )
- ;;
- pipelines:add)
- _command_args=(
- '(-s|--stage)'{-s,--stage}'[stage of first app in pipeline]' \
- )
- ;;
- pipelines:create)
- _command_args=(
- '(-s|--stage)'{-s,--stage}'[stage of first app in pipeline]' \
- )
- ;;
- pipelines:info)
- _command_args=(
- '(--json)'--json'[output in json format]' \
- )
- ;;
- pipelines:list)
- _command_args=(
- '(--json)'--json'[output in json format]' \
- )
- ;;
- pipelines:promote)
- _command_args=(
- '(-t|--to)'{-t,--to}'[comma separated list of apps to promote to]' \
- )
- ;;
- pipelines:update)
- _command_args=(
- '(-s|--stage)'{-s,--stage}'[stage of first app in pipeline]' \
- )
- ;;
- pgbackups:capture)
- _command_args=(
- '(-e|--expire)'{-e,--expire}'[if no slots are available to capture, delete the oldest backup to make room]' \
- )
- ;;
- stack)
- _command_args=(
- '(-a|--all)'{-a,--all}'[include deprecated stacks]' \
- )
- ;;
- esac
-
-_arguments \
- $_command_args \
- '(--app)--app[the app name]' \
- '(--remote)--remote[the remote name]' \
- '(--help)--help[help about the current command]' \
- && return 0
diff --git a/plugins/heroku/heroku.plugin.zsh b/plugins/heroku/heroku.plugin.zsh
new file mode 100644
index 000000000..9a99b4211
--- /dev/null
+++ b/plugins/heroku/heroku.plugin.zsh
@@ -0,0 +1,9 @@
+HEROKU_AC_CACHE_DIR="$HOME/.cache"
+if [ "$(uname -s)" = "Darwin" ]; then
+ HEROKU_AC_CACHE_DIR="$HOME/Library/Caches"
+fi
+if [ ! -z "$XDG_CACHE_HOME" ]; then
+ HEROKU_AC_CACHE_DIR="$XDG_CACHE_DIR"
+fi
+HEROKU_AC_ZSH_SETUP_PATH=$HEROKU_AC_CACHE_DIR/heroku/autocomplete/zsh_setup
+[ -f $HEROKU_AC_ZSH_SETUP_PATH ] && source $HEROKU_AC_ZSH_SETUP_PATH
From 8961a3794cc2f5bc31b592367e82aa1766f24bbd Mon Sep 17 00:00:00 2001
From: Joseph Richey
Date: Tue, 7 Aug 2018 13:54:45 -0700
Subject: [PATCH 215/644] plugins/go: Simplify/fix recursive golang format
(#7027)
Per the [`go` command specification](https://golang.org/cmd/go/#hdr-Package_lists),
the `...` wildcard matches the empty string. This makes commands like
`go . ./...` unnecessary: they should use `go ./...`.
This also fixes a bug with the `gofa` shortcut, where it would emit an
error if called from a directory containing no go source files (but
having subdirectories that _did_ contain go files).
---
plugins/golang/golang.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/golang/golang.plugin.zsh b/plugins/golang/golang.plugin.zsh
index d5c78ce6c..64c80e864 100644
--- a/plugins/golang/golang.plugin.zsh
+++ b/plugins/golang/golang.plugin.zsh
@@ -184,7 +184,7 @@ alias gob='go build'
alias goc='go clean'
alias god='go doc'
alias gof='go fmt'
-alias gofa='go fmt . ./...'
+alias gofa='go fmt ./...'
alias gog='go get'
alias goi='go install'
alias gol='go list'
From 9ecde7f73211607353954b6fd76fef56d7e663b3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Tue, 7 Aug 2018 23:54:07 +0200
Subject: [PATCH 216/644] dotenv: call function on startup
Fixes #7017
---
plugins/dotenv/dotenv.plugin.zsh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/dotenv/dotenv.plugin.zsh b/plugins/dotenv/dotenv.plugin.zsh
index fa47c4c68..a0c2d0051 100644
--- a/plugins/dotenv/dotenv.plugin.zsh
+++ b/plugins/dotenv/dotenv.plugin.zsh
@@ -1,5 +1,3 @@
-#!/bin/zsh
-
source_env() {
if [[ -f .env ]]; then
if [[ -o a ]]; then
@@ -14,3 +12,5 @@ source_env() {
autoload -U add-zsh-hook
add-zsh-hook chpwd source_env
+
+source_env
From c781d708da064b42af19e20113d042b65e886d94 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Wed, 8 Aug 2018 00:05:34 +0200
Subject: [PATCH 217/644] dotenv: test and warn of incorrect.env syntax
Fixes #6337
---
plugins/dotenv/dotenv.plugin.zsh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/plugins/dotenv/dotenv.plugin.zsh b/plugins/dotenv/dotenv.plugin.zsh
index a0c2d0051..b701b5596 100644
--- a/plugins/dotenv/dotenv.plugin.zsh
+++ b/plugins/dotenv/dotenv.plugin.zsh
@@ -1,5 +1,8 @@
source_env() {
if [[ -f .env ]]; then
+ # test .env syntax
+ zsh -fn .env || echo 'dotenv: error when sourcing `.env` file' >&2
+
if [[ -o a ]]; then
source .env
else
From 91d55dce11cc975309cd7dc8955c51f82de8548c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Wed, 8 Aug 2018 13:36:27 +0200
Subject: [PATCH 218/644] bundler: update README with latest changes
---
plugins/bundler/README.md | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/plugins/bundler/README.md b/plugins/bundler/README.md
index 04d551447..dc2f17008 100644
--- a/plugins/bundler/README.md
+++ b/plugins/bundler/README.md
@@ -2,7 +2,8 @@
- adds completion for basic bundler commands
- adds short aliases for common bundler commands
- - `be` aliased to `bundle exec`
+ - `be` aliased to `bundle exec`.
+ It also supports aliases (if `rs` is `rails server`, `be rs` will bundle-exec `rails server`).
- `bl` aliased to `bundle list`
- `bp` aliased to `bundle package`
- `bo` aliased to `bundle open`
@@ -13,7 +14,8 @@
- looks for a binstub under `./bin/` and executes it (if present)
- calls `bundle exec ` otherwise
-For a full list of *common gems* being wrapped by default please look at the `bundler.plugin.zsh` file.
+Common gems wrapped by default (by name of the executable):
+`annotate`, `cap`, `capify`, `cucumber`, `foodcritic`, `guard`, `hanami`, `irb`, `jekyll`, `kitchen`, `knife`, `middleman`, `nanoc`, `pry`, `puma`, `rackup`, `rainbows`, `rake`, `rspec`, `shotgun`, `sidekiq`, `spec`, `spork`, `spring`, `strainer`, `tailor`, `taps`, `thin`, `thor`, `unicorn` and `unicorn_rails`.
## Configuration
From 44473d785e435373350bc6b3253eec104c05b404 Mon Sep 17 00:00:00 2001
From: Michal Halenka
Date: Wed, 8 Aug 2018 14:12:55 +0200
Subject: [PATCH 219/644] Add doctl autocompletion (#6501)
---
plugins/doctl/doctl.plugin.zsh | 9 +++++++++
1 file changed, 9 insertions(+)
create mode 100644 plugins/doctl/doctl.plugin.zsh
diff --git a/plugins/doctl/doctl.plugin.zsh b/plugins/doctl/doctl.plugin.zsh
new file mode 100644
index 000000000..d23ed085c
--- /dev/null
+++ b/plugins/doctl/doctl.plugin.zsh
@@ -0,0 +1,9 @@
+# Autocompletion for doctl, the command line tool for DigitalOcean service
+#
+# doctl project: https://github.com/digitalocean/doctl
+#
+# Author: https://github.com/HalisCz
+
+if [ $commands[doctl] ]; then
+ source <(doctl completion zsh)
+fi
From 60db5cdb582134db2778d25d7cb7a40c0249e8d9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Thu, 9 Aug 2018 17:19:40 +0200
Subject: [PATCH 220/644] tmux: fix invalid syntax on old zsh versions
First reported on https://github.com/robbyrussell/oh-my-zsh/commit/f584de5930467fd53e8b7d2e51f5227bc405e4b2#r29984052
---
plugins/tmux/tmux.plugin.zsh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
index ff7de746b..4a7986389 100644
--- a/plugins/tmux/tmux.plugin.zsh
+++ b/plugins/tmux/tmux.plugin.zsh
@@ -56,7 +56,8 @@ function _zsh_tmux_plugin_run() {
return $?
fi
- local -a tmux_cmd=(command tmux)
+ local -a tmux_cmd
+ tmux_cmd=(command tmux)
[[ "$ZSH_TMUX_ITERM2" == "true" ]] && tmux_cmd+=(-CC)
# Try to connect to an existing session.
From 3a31074d34c825028a7fbbd1a2ea55a5793a3d01 Mon Sep 17 00:00:00 2001
From: Tom Milligan
Date: Thu, 9 Aug 2018 16:37:47 +0100
Subject: [PATCH 221/644] Update docker plugin from upstream docker/cli (#7018)
Update `docker` plugin from [docker/cli master](https://github.com/tommilligan/cli/blob/master/contrib/completion/zsh/_docker)
- bugfix for `docker update` autocompletion: https://github.com/docker/cli/pull/1232
- added `scope` subcommand: https://github.com/docker/cli/pull/1227/files
---
plugins/docker/_docker | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/plugins/docker/_docker b/plugins/docker/_docker
index df4b44961..31b83c777 100644
--- a/plugins/docker/_docker
+++ b/plugins/docker/_docker
@@ -431,7 +431,7 @@ __docker_complete_events_filter() {
integer ret=1
declare -a opts
- opts=('container' 'daemon' 'event' 'image' 'label' 'network' 'type' 'volume')
+ opts=('container' 'daemon' 'event' 'image' 'label' 'network' 'scope' 'type' 'volume')
if compset -P '*='; then
case "${${words[-1]%=*}#*=}" in
@@ -461,6 +461,11 @@ __docker_complete_events_filter() {
(network)
__docker_complete_networks && ret=0
;;
+ (scope)
+ local -a scope_opts
+ scope_opts=('local' 'swarm')
+ _describe -t scope-filter-opts "scope filter options" scope_opts && ret=0
+ ;;
(type)
local -a type_opts
type_opts=('container' 'daemon' 'image' 'network' 'volume')
@@ -923,7 +928,7 @@ __docker_container_subcommand() {
local state
_arguments $(__docker_arguments) \
$opts_help \
- opts_create_run_update \
+ $opts_create_run_update \
"($help -)*: :->values" && ret=0
case $state in
(values)
From 5fbf9120935af9b5e81b72f942be09891c6e508f Mon Sep 17 00:00:00 2001
From: Alexander Kapshuna
Date: Thu, 9 Aug 2018 19:16:15 +0300
Subject: [PATCH 222/644] extract: whl files support (#7045)
---
plugins/extract/_extract | 2 +-
plugins/extract/extract.plugin.zsh | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/extract/_extract b/plugins/extract/_extract
index 172425d2c..3baefa339 100644
--- a/plugins/extract/_extract
+++ b/plugins/extract/_extract
@@ -3,5 +3,5 @@
_arguments \
'(-r --remove)'{-r,--remove}'[Remove archive.]' \
- "*::archive file:_files -g '(#i)*.(7z|Z|apk|bz2|deb|gz|ipsw|jar|lzma|rar|sublime-package|tar|tar.bz2|tar.gz|tar.xz|tar.zma|tbz|tbz2|tgz|tlz|txz|war|xpi|xz|zip)(-.)'" \
+ "*::archive file:_files -g '(#i)*.(7z|Z|apk|bz2|deb|gz|ipsw|jar|lzma|rar|sublime-package|tar|tar.bz2|tar.gz|tar.xz|tar.zma|tbz|tbz2|tgz|tlz|txz|war|whl|xpi|xz|zip)(-.)'" \
&& return 0
diff --git a/plugins/extract/extract.plugin.zsh b/plugins/extract/extract.plugin.zsh
index d56044805..4c72ce870 100644
--- a/plugins/extract/extract.plugin.zsh
+++ b/plugins/extract/extract.plugin.zsh
@@ -46,7 +46,7 @@ extract() {
(*.xz) unxz "$1" ;;
(*.lzma) unlzma "$1" ;;
(*.z) uncompress "$1" ;;
- (*.zip|*.war|*.jar|*.sublime-package|*.ipsw|*.xpi|*.apk) unzip "$1" -d $extract_dir ;;
+ (*.zip|*.war|*.jar|*.sublime-package|*.ipsw|*.xpi|*.apk|*.whl) unzip "$1" -d $extract_dir ;;
(*.rar) unrar x -ad "$1" ;;
(*.7z) 7za x "$1" ;;
(*.deb)
From 9624ce992ec3482041c3086bc88f0485eb8d9bd3 Mon Sep 17 00:00:00 2001
From: Thi
Date: Fri, 10 Aug 2018 02:10:32 +0900
Subject: [PATCH 223/644] Add shell completion for Swift Package Manager
(#7046)
This was generated by the Swift compiler 4.1.2 using the following
command:
swift package completion-tool generate-zsh-script
---
plugins/swiftpm/_swift | 362 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 362 insertions(+)
create mode 100644 plugins/swiftpm/_swift
diff --git a/plugins/swiftpm/_swift b/plugins/swiftpm/_swift
new file mode 100644
index 000000000..901b5d9e2
--- /dev/null
+++ b/plugins/swiftpm/_swift
@@ -0,0 +1,362 @@
+#compdef swift
+local context state state_descr line
+typeset -A opt_args
+
+_swift() {
+ _arguments -C \
+ '(- :)--help[prints the synopsis and a list of the most commonly used commands]: :->arg' \
+ '(-): :->command' \
+ '(-)*:: :->arg' && return
+
+ case $state in
+ (command)
+ local tools
+ tools=(
+ 'build:build sources into binary products'
+ 'run:build and run an executable product'
+ 'package:perform operations on Swift packages'
+ 'test:build and run tests'
+ )
+ _alternative \
+ 'tools:common:{_describe "tool" tools }' \
+ 'compiler: :_swift_compiler' && _ret=0
+ ;;
+ (arg)
+ case ${words[1]} in
+ (build)
+ _swift_build
+ ;;
+ (run)
+ _swift_run
+ ;;
+ (package)
+ _swift_package
+ ;;
+ (test)
+ _swift_test
+ ;;
+ (*)
+ _swift_compiler
+ ;;
+ esac
+ ;;
+ esac
+}
+
+_swift_dependency() {
+ local dependencies
+ dependencies=( $(swift package completion-tool list-dependencies) )
+ _describe '' dependencies
+}
+
+_swift_executable() {
+ local executables
+ executables=( $(swift package completion-tool list-executables) )
+ _describe '' executables
+}
+
+# Generates completions for swift build
+#
+# In the final compdef file, set the following file header:
+#
+# #compdef _swift_build
+# local context state state_descr line
+# typeset -A opt_args
+_swift_build() {
+ arguments=(
+ "-Xcc[Pass flag through to all C compiler invocations]:Pass flag through to all C compiler invocations: "
+ "-Xswiftc[Pass flag through to all Swift compiler invocations]:Pass flag through to all Swift compiler invocations: "
+ "-Xlinker[Pass flag through to all linker invocations]:Pass flag through to all linker invocations: "
+ "-Xcxx[Pass flag through to all C++ compiler invocations]:Pass flag through to all C++ compiler invocations: "
+ "(--configuration -c)"{--configuration,-c}"[Build with configuration (debug|release) ]: :{_values '' 'debug[build with DEBUG configuration]' 'release[build with RELEASE configuration]'}"
+ "--build-path[Specify build/cache directory ]:Specify build/cache directory :_files"
+ "(--chdir -C)"{--chdir,-C}"[]: :_files"
+ "--package-path[Change working directory before any other operation]:Change working directory before any other operation:_files"
+ "--disable-prefetching[]"
+ "--disable-sandbox[Disable using the sandbox when executing subprocesses]"
+ "--version[]"
+ "--destination[]: :_files"
+ "(--verbose -v)"{--verbose,-v}"[Increase verbosity of informational output]"
+ "--no-static-swift-stdlib[Do not link Swift stdlib statically]"
+ "--static-swift-stdlib[Link Swift stdlib statically]"
+ "--enable-build-manifest-caching[Enable llbuild manifest caching [Experimental]]"
+ "--build-tests[Build both source and test targets]"
+ "--product[Build the specified product]:Build the specified product: "
+ "--target[Build the specified target]:Build the specified target: "
+ "--show-bin-path[Print the binary output path]"
+ )
+ _arguments $arguments && return
+}
+
+# Generates completions for swift run
+#
+# In the final compdef file, set the following file header:
+#
+# #compdef _swift_run
+# local context state state_descr line
+# typeset -A opt_args
+_swift_run() {
+ arguments=(
+ ":The executable to run:_swift_executable"
+ "-Xcc[Pass flag through to all C compiler invocations]:Pass flag through to all C compiler invocations: "
+ "-Xswiftc[Pass flag through to all Swift compiler invocations]:Pass flag through to all Swift compiler invocations: "
+ "-Xlinker[Pass flag through to all linker invocations]:Pass flag through to all linker invocations: "
+ "-Xcxx[Pass flag through to all C++ compiler invocations]:Pass flag through to all C++ compiler invocations: "
+ "(--configuration -c)"{--configuration,-c}"[Build with configuration (debug|release) ]: :{_values '' 'debug[build with DEBUG configuration]' 'release[build with RELEASE configuration]'}"
+ "--build-path[Specify build/cache directory ]:Specify build/cache directory :_files"
+ "(--chdir -C)"{--chdir,-C}"[]: :_files"
+ "--package-path[Change working directory before any other operation]:Change working directory before any other operation:_files"
+ "--disable-prefetching[]"
+ "--disable-sandbox[Disable using the sandbox when executing subprocesses]"
+ "--version[]"
+ "--destination[]: :_files"
+ "(--verbose -v)"{--verbose,-v}"[Increase verbosity of informational output]"
+ "--no-static-swift-stdlib[Do not link Swift stdlib statically]"
+ "--static-swift-stdlib[Link Swift stdlib statically]"
+ "--enable-build-manifest-caching[Enable llbuild manifest caching [Experimental]]"
+ "--skip-build[Skip building the executable product]"
+ )
+ _arguments $arguments && return
+}
+
+# Generates completions for swift package
+#
+# In the final compdef file, set the following file header:
+#
+# #compdef _swift_package
+# local context state state_descr line
+# typeset -A opt_args
+_swift_package() {
+ arguments=(
+ "-Xcc[Pass flag through to all C compiler invocations]:Pass flag through to all C compiler invocations: "
+ "-Xswiftc[Pass flag through to all Swift compiler invocations]:Pass flag through to all Swift compiler invocations: "
+ "-Xlinker[Pass flag through to all linker invocations]:Pass flag through to all linker invocations: "
+ "-Xcxx[Pass flag through to all C++ compiler invocations]:Pass flag through to all C++ compiler invocations: "
+ "(--configuration -c)"{--configuration,-c}"[Build with configuration (debug|release) ]: :{_values '' 'debug[build with DEBUG configuration]' 'release[build with RELEASE configuration]'}"
+ "--build-path[Specify build/cache directory ]:Specify build/cache directory :_files"
+ "(--chdir -C)"{--chdir,-C}"[]: :_files"
+ "--package-path[Change working directory before any other operation]:Change working directory before any other operation:_files"
+ "--disable-prefetching[]"
+ "--disable-sandbox[Disable using the sandbox when executing subprocesses]"
+ "--version[]"
+ "--destination[]: :_files"
+ "(--verbose -v)"{--verbose,-v}"[Increase verbosity of informational output]"
+ "--no-static-swift-stdlib[Do not link Swift stdlib statically]"
+ "--static-swift-stdlib[Link Swift stdlib statically]"
+ "--enable-build-manifest-caching[Enable llbuild manifest caching [Experimental]]"
+ '(-): :->command'
+ '(-)*:: :->arg'
+ )
+ _arguments $arguments && return
+ case $state in
+ (command)
+ local modes
+ modes=(
+ 'update:Update package dependencies'
+ 'show-dependencies:Print the resolved dependency graph'
+ 'resolve:Resolve package dependencies'
+ 'fetch:'
+ 'completion-tool:Completion tool (for shell completions)'
+ 'edit:Put a package in editable mode'
+ 'tools-version:Manipulate tools version of the current package'
+ 'describe:Describe the current package'
+ 'clean:Delete build artifacts'
+ 'reset:Reset the complete cache/build directory'
+ 'unedit:Remove a package from editable mode'
+ 'generate-xcodeproj:Generates an Xcode project'
+ 'init:Initialize a new package'
+ 'dump-package:Print parsed Package.swift as JSON'
+ )
+ _describe "mode" modes
+ ;;
+ (arg)
+ case ${words[1]} in
+ (update)
+ _swift_package_update
+ ;;
+ (show-dependencies)
+ _swift_package_show-dependencies
+ ;;
+ (resolve)
+ _swift_package_resolve
+ ;;
+ (fetch)
+ _swift_package_fetch
+ ;;
+ (completion-tool)
+ _swift_package_completion-tool
+ ;;
+ (edit)
+ _swift_package_edit
+ ;;
+ (tools-version)
+ _swift_package_tools-version
+ ;;
+ (describe)
+ _swift_package_describe
+ ;;
+ (clean)
+ _swift_package_clean
+ ;;
+ (reset)
+ _swift_package_reset
+ ;;
+ (unedit)
+ _swift_package_unedit
+ ;;
+ (generate-xcodeproj)
+ _swift_package_generate-xcodeproj
+ ;;
+ (init)
+ _swift_package_init
+ ;;
+ (dump-package)
+ _swift_package_dump-package
+ ;;
+ esac
+ ;;
+ esac
+}
+
+_swift_package_update() {
+ arguments=(
+ )
+ _arguments $arguments && return
+}
+
+_swift_package_show-dependencies() {
+ arguments=(
+ "--format[text|dot|json|flatlist]: :{_values '' 'text[list dependencies using text format]' 'dot[list dependencies using dot format]' 'json[list dependencies using JSON format]'}"
+ )
+ _arguments $arguments && return
+}
+
+_swift_package_resolve() {
+ arguments=(
+ ":The name of the package to resolve:_swift_dependency"
+ "--version[The version to resolve at]:The version to resolve at: "
+ "--branch[The branch to resolve at]:The branch to resolve at: "
+ "--revision[The revision to resolve at]:The revision to resolve at: "
+ )
+ _arguments $arguments && return
+}
+
+_swift_package_fetch() {
+ arguments=(
+ )
+ _arguments $arguments && return
+}
+
+_swift_package_completion-tool() {
+ arguments=(
+ ": :{_values '' 'generate-bash-script[generate Bash completion script]' 'generate-zsh-script[generate Bash completion script]' 'list-dependencies[list all dependencies' names]' 'list-executables[list all executables' names]'}"
+ )
+ _arguments $arguments && return
+}
+
+_swift_package_edit() {
+ arguments=(
+ ":The name of the package to edit:_swift_dependency"
+ "--revision[The revision to edit]:The revision to edit: "
+ "--branch[The branch to create]:The branch to create: "
+ "--path[Create or use the checkout at this path]:Create or use the checkout at this path:_files"
+ )
+ _arguments $arguments && return
+}
+
+_swift_package_tools-version() {
+ arguments=(
+ "--set[Set tools version of package to the given value]:Set tools version of package to the given value: "
+ "--set-current[Set tools version of package to the current tools version in use]"
+ )
+ _arguments $arguments && return
+}
+
+_swift_package_describe() {
+ arguments=(
+ "--type[json|text]: :{_values '' 'text[describe using text format]' 'json[describe using JSON format]'}"
+ )
+ _arguments $arguments && return
+}
+
+_swift_package_clean() {
+ arguments=(
+ )
+ _arguments $arguments && return
+}
+
+_swift_package_reset() {
+ arguments=(
+ )
+ _arguments $arguments && return
+}
+
+_swift_package_unedit() {
+ arguments=(
+ ":The name of the package to unedit:_swift_dependency"
+ "--force[Unedit the package even if it has uncommited and unpushed changes.]"
+ )
+ _arguments $arguments && return
+}
+
+_swift_package_generate-xcodeproj() {
+ arguments=(
+ "--xcconfig-overrides[Path to xcconfig file]:Path to xcconfig file:_files"
+ "--enable-code-coverage[Enable code coverage in the generated project]"
+ "--output[Path where the Xcode project should be generated]:Path where the Xcode project should be generated:_files"
+ )
+ _arguments $arguments && return
+}
+
+_swift_package_init() {
+ arguments=(
+ "--type[empty|library|executable|system-module]: :{_values '' 'empty[generates an empty project]' 'library[generates project for a dynamic library]' 'executable[generates a project for a cli executable]' 'system-module[generates a project for a system module]'}"
+ )
+ _arguments $arguments && return
+}
+
+_swift_package_dump-package() {
+ arguments=(
+ )
+ _arguments $arguments && return
+}
+
+# Generates completions for swift test
+#
+# In the final compdef file, set the following file header:
+#
+# #compdef _swift_test
+# local context state state_descr line
+# typeset -A opt_args
+_swift_test() {
+ arguments=(
+ "-Xcc[Pass flag through to all C compiler invocations]:Pass flag through to all C compiler invocations: "
+ "-Xswiftc[Pass flag through to all Swift compiler invocations]:Pass flag through to all Swift compiler invocations: "
+ "-Xlinker[Pass flag through to all linker invocations]:Pass flag through to all linker invocations: "
+ "-Xcxx[Pass flag through to all C++ compiler invocations]:Pass flag through to all C++ compiler invocations: "
+ "(--configuration -c)"{--configuration,-c}"[Build with configuration (debug|release) ]: :{_values '' 'debug[build with DEBUG configuration]' 'release[build with RELEASE configuration]'}"
+ "--build-path[Specify build/cache directory ]:Specify build/cache directory :_files"
+ "(--chdir -C)"{--chdir,-C}"[]: :_files"
+ "--package-path[Change working directory before any other operation]:Change working directory before any other operation:_files"
+ "--disable-prefetching[]"
+ "--disable-sandbox[Disable using the sandbox when executing subprocesses]"
+ "--version[]"
+ "--destination[]: :_files"
+ "(--verbose -v)"{--verbose,-v}"[Increase verbosity of informational output]"
+ "--no-static-swift-stdlib[Do not link Swift stdlib statically]"
+ "--static-swift-stdlib[Link Swift stdlib statically]"
+ "--enable-build-manifest-caching[Enable llbuild manifest caching [Experimental]]"
+ "--skip-build[Skip building the test target]"
+ "(--list-tests -l)"{--list-tests,-l}"[Lists test methods in specifier format]"
+ "--generate-linuxmain[Generate LinuxMain.swift entries for the package]"
+ "--parallel[Run the tests in parallel.]"
+ "(--specifier -s)"{--specifier,-s}"[]: : "
+ "--filter[Run test cases matching regular expression, Format: . or ./]:Run test cases matching regular expression, Format: . or ./: "
+ )
+ _arguments $arguments && return
+}
+
+_swift_compiler() {
+}
+
+_swift
From 052a6dbd16045d37b07c4bad550077d5ccc82228 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Thu, 9 Aug 2018 19:24:03 +0200
Subject: [PATCH 224/644] docker-machine: add official completion
Fixes #6962
---
plugins/docker-machine/_docker-machine | 359 +++++++++++++++++++++++++
1 file changed, 359 insertions(+)
create mode 100644 plugins/docker-machine/_docker-machine
diff --git a/plugins/docker-machine/_docker-machine b/plugins/docker-machine/_docker-machine
new file mode 100644
index 000000000..7c19ba8e7
--- /dev/null
+++ b/plugins/docker-machine/_docker-machine
@@ -0,0 +1,359 @@
+#compdef docker-machine
+# Description
+# -----------
+# zsh completion for docker-machine
+# https://github.com/leonhartX/docker-machine-zsh-completion
+# -------------------------------------------------------------------------
+# Version
+# -------
+# 0.1.1
+# -------------------------------------------------------------------------
+# Authors
+# -------
+# * Ke Xu
+# -------------------------------------------------------------------------
+# Inspiration
+# -----------
+# * @sdurrheimer docker-compose-zsh-completion https://github.com/sdurrheimer/docker-compose-zsh-completion
+# * @ilkka _docker-machine
+
+
+__docker-machine_get_hosts() {
+ [[ $PREFIX = -* ]] && return 1
+ local state
+ declare -a hosts
+ state=$1; shift
+ if [[ $state != all ]]; then
+ hosts=(${(f)"$(_call_program commands docker-machine ls -q --filter state=$state)"})
+ else
+ hosts=(${(f)"$(_call_program commands docker-machine ls -q)"})
+ fi
+ _describe 'host' hosts "$@" && ret=0
+ return ret
+}
+
+__docker-machine_hosts_with_state() {
+ declare -a hosts
+ hosts=(${(f)"$(_call_program commands docker-machine ls -f '{{.Name}}\:{{.DriverName}}\({{.State}}\)\ {{.URL}}')"})
+ _describe 'host' hosts
+}
+
+__docker-machine_hosts_all() {
+ __docker-machine_get_hosts all "$@"
+}
+
+__docker-machine_hosts_running() {
+ __docker-machine_get_hosts Running "$@"
+}
+
+__docker-machine_get_swarm() {
+ declare -a swarms
+ swarms=(${(f)"$(_call_program commands docker-machine ls -f {{.Swarm}} | awk '{print $1}')"})
+ _describe 'swarm' swarms
+}
+
+__docker-machine_hosts_and_files() {
+ _alternative "hosts:host:__docker-machine_hosts_all -qS ':'" 'files:files:_path_files'
+}
+
+__docker-machine_filters() {
+ [[ $PREFIX = -* ]] && return 1
+ integer ret=1
+
+ if compset -P '*='; then
+ case "${${words[-1]%=*}#*=}" in
+ (driver)
+ _describe -t driver-filter-opts "driver filter" opts_driver && ret=0
+ ;;
+ (swarm)
+ __docker-machine_get_swarm && ret=0
+ ;;
+ (state)
+ opts_state=('Running' 'Paused' 'Saved' 'Stopped' 'Stopping' 'Starting' 'Error')
+ _describe -t state-filter-opts "state filter" opts_state && ret=0
+ ;;
+ (name)
+ __docker-machine_hosts_all && ret=0
+ ;;
+ (label)
+ _message 'label' && ret=0
+ ;;
+ *)
+ _message 'value' && ret=0
+ ;;
+ esac
+ else
+ opts=('driver' 'swarm' 'state' 'name' 'label')
+ _describe -t filter-opts "filter" opts -qS "=" && ret=0
+ fi
+ return ret
+}
+
+__get_swarm_discovery() {
+ declare -a masters serivces
+ local service
+ services=()
+ masters=($(docker-machine ls -f {{.Swarm}} |grep '(master)' |awk '{print $1}'))
+ for master in $masters; do
+ service=${${${(f)"$(_call_program commands docker-machine inspect -f '{{.HostOptions.SwarmOptions.Discovery}}:{{.Name}}' $master)"}/:/\\:}}
+ services=($services $service)
+ done
+ _describe -t services "swarm service" services && ret=0
+ return ret
+}
+
+__get_create_argument() {
+ typeset -g docker_machine_driver
+ if [[ CURRENT -le 2 ]]; then
+ docker_machine_driver="none"
+ elif [[ CURRENT > 2 && $words[CURRENT-2] = '-d' || $words[CURRENT-2] = '--driver' ]]; then
+ docker_machine_driver=$words[CURRENT-1]
+ elif [[ $words[CURRENT-1] =~ '^(-d|--driver)=' ]]; then
+ docker_machine_driver=${${words[CURRENT-1]}/*=/}
+ fi
+ local driver_opt_cmd
+ local -a opts_provider opts_common opts_read_argument
+ opts_read_argument=(
+ ": :->argument"
+ )
+ opts_common=(
+ $opts_help \
+ '(--driver -d)'{--driver=,-d=}'[Driver to create machine with]:dirver:->driver-option' \
+ '--engine-install-url=[Custom URL to use for engine installation]:url' \
+ '*--engine-opt=[Specify arbitrary flags to include with the created engine in the form flag=value]:flag' \
+ '*--engine-insecure-registry=[Specify insecure registries to allow with the created engine]:registry' \
+ '*--engine-registry-mirror=[Specify registry mirrors to use]:mirror' \
+ '*--engine-label=[Specify labels for the created engine]:label' \
+ '--engine-storage-driver=[Specify a storage driver to use with the engine]:storage-driver:->storage-driver-option' \
+ '*--engine-env=[Specify environment variables to set in the engine]:environment' \
+ '--swarm[Configure Machine with Swarm]' \
+ '--swarm-image=[Specify Docker image to use for Swarm]:image' \
+ '--swarm-master[Configure Machine to be a Swarm master]' \
+ '--swarm-discovery=[Discovery service to use with Swarm]:service:->swarm-service' \
+ '--swarm-strategy=[Define a default scheduling strategy for Swarm]:strategy:(spread binpack random)' \
+ '*--swarm-opt=[Define arbitrary flags for swarm]:flag' \
+ '*--swarm-join-opt=[Define arbitrary flags for Swarm join]:flag' \
+ '--swarm-host=[ip/socket to listen on for Swarm master]:host' \
+ '--swarm-addr=[addr to advertise for Swarm (default: detect and use the machine IP)]:address' \
+ '--swarm-experimental[Enable Swarm experimental features]' \
+ '*--tls-san=[Support extra SANs for TLS certs]:option'
+ )
+ driver_opt_cmd="docker-machine create -d $docker_machine_driver | grep $docker_machine_driver | sed -e 's/\(--.*\)\ *\[\1[^]]*\]/*\1/g' -e 's/\(\[[^]]*\)/\\\\\\1\\\\/g' -e 's/\".*\"\(.*\)/\1/g' | awk '{printf \"%s[\", \$1; for(i=2;i<=NF;i++) {printf \"%s \", \$i}; print \"]\"}'"
+ if [[ $docker_machine_driver != "none" ]]; then
+ opts_provider=(${(f)"$(_call_program commands $driver_opt_cmd)"})
+ _arguments \
+ $opts_provider \
+ $opts_read_argument \
+ $opts_common && ret=0
+ else
+ _arguments $opts_common && ret=0
+ fi
+ case $state in
+ (driver-option)
+ _describe -t driver-option "driver" opts_driver && ret=0
+ ;;
+ (storage-driver-option)
+ _describe -t storage-driver-option "storage driver" opts_storage_driver && ret=0
+ ;;
+ (swarm-service)
+ __get_swarm_discovery && ret=0
+ ;;
+ (argument)
+ ret=0
+ ;;
+ esac
+ return ret
+}
+
+
+__docker-machine_subcommand() {
+ local -a opts_help
+ opts_help=("(- :)--help[Print usage]")
+ local -a opts_only_host opts_driver opts_storage_driver opts_stragery
+ opts_only_host=(
+ "$opts_help"
+ "*:host:__docker-machine_hosts_all"
+ )
+ opts_driver=('amazonec2' 'azure' 'digitalocean' 'exoscale' 'generic' 'google' 'hyperv' 'none' 'openstack' 'rackspace' 'softlayer' 'virtualbox' 'vmwarefusion' 'vmwarevcloudair' 'vmwarevsphere')
+ opts_storage_driver=('overlay' 'aufs' 'btrfs' 'devicemapper' 'vfs' 'zfs')
+ integer ret=1
+
+ case "$words[1]" in
+ (active)
+ _arguments \
+ $opts_help \
+ '(--timeout -t)'{--timeout=,-t=}'[Timeout in seconds, default to 10s]:seconds' && ret=0
+ ;;
+ (config)
+ _arguments \
+ $opts_help \
+ '--swarm[Display the Swarm config instead of the Docker daemon]' \
+ "*:host:__docker-machine_hosts_all" && ret=0
+ ;;
+ (create)
+ __get_create_argument
+ ;;
+ (env)
+ _arguments \
+ $opts_help \
+ '--swarm[Display the Swarm config instead of the Docker daemon]' \
+ '--shell=[Force environment to be configured for a specified shell: \[fish, cmd, powershell\], default is auto-detect]:shell' \
+ '(--unset -u)'{--unset,-u}'[Unset variables instead of setting them]' \
+ '--no-proxy[Add machine IP to NO_PROXY environment variable]' \
+ '*:host:__docker-machine_hosts_running' && ret=0
+ ;;
+ (help)
+ _arguments ':subcommand:__docker-machine_commands' && ret=0
+ ;;
+ (inspect)
+ _arguments \
+ $opts_help \
+ '(--format -f)'{--format=,-f=}'[Format the output using the given go template]:template' \
+ '*:host:__docker-machine_hosts_all' && ret=0
+ ;;
+ (ip)
+ _arguments \
+ $opts_help \
+ '*:host:__docker-machine_hosts_running' && ret=0
+ ;;
+ (kill)
+ _arguments \
+ $opts_help \
+ '*:host:__docker-machine_hosts_with_state' && ret=0
+ ;;
+ (ls)
+ _arguments \
+ $opts_help \
+ '(--quiet -q)'{--quiet,-q}'[Enable quiet mode]' \
+ '*--filter=[Filter output based on conditions provided]:filter:->filter-options' \
+ '(--timeout -t)'{--timeout=,-t=}'[Timeout in seconds, default to 10s]:seconds' \
+ '(--format -f)'{--format=,-f=}'[Pretty-print machines using a Go template]:template' && ret=0
+ case $state in
+ (filter-options)
+ __docker-machine_filters && ret=0
+ ;;
+ esac
+ ;;
+ (provision)
+ _arguments $opts_only_host && ret=0
+ ;;
+ (regenerate-certs)
+ _arguments \
+ $opts_help \
+ '(--force -f)'{--force,-f}'[Force rebuild and do not prompt]' \
+ '*:host:__docker-machine_hosts_all' && ret=0
+ ;;
+ (restart)
+ _arguments \
+ $opts_help \
+ '*:host:__docker-machine_hosts_with_state' && ret=0
+ ;;
+ (rm)
+ _arguments \
+ $opts_help \
+ '(--force -f)'{--force,-f}'[Remove local configuration even if machine cannot be removed, also implies an automatic yes (`-y`)]' \
+ '-y[Assumes automatic yes to proceed with remove, without prompting further user confirmation]' \
+ '*:host:__docker-machine_hosts_with_state' && ret=0
+ ;;
+ (scp)
+ _arguments \
+ $opts_help \
+ '(--recursive -r)'{--recursive,-r}'[Copy files recursively (required to copy directories))]' \
+ '*:files:__docker-machine_hosts_and_files' && ret=0
+ ;;
+ (ssh)
+ _arguments \
+ $opts_help \
+ '*:host:__docker-machine_hosts_running' && ret=0
+ ;;
+ (start)
+ _arguments \
+ $opts_help \
+ '*:host:__docker-machine_hosts_with_state' && ret=0
+ ;;
+ (status)
+ _arguments $opts_only_host && ret=0
+ ;;
+ (stop)
+ _arguments \
+ $opts_help \
+ '*:host:__docker-machine_hosts_with_state' && ret=0
+ ;;
+ (upgrade)
+ _arguments $opts_only_host && ret=0
+ ;;
+ (url)
+ _arguments \
+ $opts_help \
+ '*:host:__docker-machine_hosts_running' && ret=0
+ ;;
+ esac
+
+ return ret
+}
+
+
+__docker-machine_commands() {
+ local cache_policy
+
+ zstyle -s ":completion:${curcontext}:" cache-policy cache_policy
+ if [[ -z "$cache_policy" ]]; then
+ zstyle ":completion:${curcontext}:" cache-policy __docker-machine_caching_policy
+ fi
+
+ if ( [[ ${+_docker_machine_subcommands} -eq 0 ]] || _cache_invalid docker_machine_subcommands) \
+ && ! _retrieve_cache docker_machine_subcommands;
+ then
+ local -a lines
+ lines=(${(f)"$(_call_program commands docker-machine 2>&1)"})
+ _docker_machine_subcommands=(${${${lines[$((${lines[(i)Commands:]} + 1)),${lines[(I) *]}]}## #}/$'\t'##/:})
+ (( $#_docker_machine_subcommands > 0 )) && _store_cache docker_machine_subcommands _docker_machine_subcommands
+ fi
+ _describe -t docker-machine-commands "docker-machine command" _docker_machine_subcommands
+}
+
+__docker-machine_caching_policy() {
+ oldp=( "$1"(Nmh+1) )
+ (( $#oldp ))
+}
+
+_docker-machine() {
+ if [[ $service != docker-machine ]]; then
+ _call_function - _$service
+ return
+ fi
+
+ local curcontext="$curcontext" state line
+ integer ret=1
+ typeset -A opt_args
+
+ _arguments -C \
+ "(- :)"{-h,--help}"[Show help]" \
+ "(-D --debug)"{-D,--debug}"[Enable debug mode]" \
+ '(-s --stroage-path)'{-s,--storage-path}'[Configures storage path]:file:_files' \
+ '--tls-ca-cert[CA to verify remotes against]:file:_files' \
+ '--tls-ca-key[Private key to generate certificates]:file:_files' \
+ '--tls-client-cert[Client cert to use for TLS]:file:_files' \
+ '--tls-client-key[Private key used in client TLS auth]:file:_files' \
+ '--github-api-token[Token to use for requests to the Github API]' \
+ '--native-ssh[Use the native (Go-based) SSH implementation.]' \
+ '--bugsnag-api-token[BugSnag API token for crash reporting]' \
+ '(- :)'{-v,--version}'[Print the version]' \
+ "(-): :->command" \
+ "(-)*:: :->option-or-argument" && ret=0
+
+ case $state in
+ (command)
+ __docker-machine_commands && ret=0
+ ;;
+ (option-or-argument)
+ curcontext=${curcontext%:*:*}:docker-machine-$words[1]:
+ __docker-machine_subcommand && ret=0
+ ret=0
+ ;;
+ esac
+
+ return ret
+}
+
+_docker-machine "$@"
From 2c1ff85bb2389a2ebdbf0150fd9287855cf348a8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Thu, 9 Aug 2018 19:49:02 +0200
Subject: [PATCH 225/644] core: fix alias_value function
Fixes #5835
---
lib/functions.zsh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/lib/functions.zsh b/lib/functions.zsh
index 1066fed57..4ef8920f6 100644
--- a/lib/functions.zsh
+++ b/lib/functions.zsh
@@ -51,8 +51,7 @@ function open_command() {
# 1 if it does not exist
#
function alias_value() {
- alias "$1" | sed "s/^$1='\(.*\)'$/\1/"
- test $(alias "$1")
+ (( $+aliases[$1] )) && echo $aliases[$1]
}
#
From f2f078a1bbbce1631a99150029541544e621b6be Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Thu, 9 Aug 2018 20:17:43 +0200
Subject: [PATCH 226/644] pass: update completion (2018-08-03)
---
plugins/pass/_pass | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/plugins/pass/_pass b/plugins/pass/_pass
index 715229e76..5f3b8f541 100644
--- a/plugins/pass/_pass
+++ b/plugins/pass/_pass
@@ -6,11 +6,17 @@
# Brian Mattern
# Jason A. Donenfeld .
# All Rights Reserved.
-#
# This file is licensed under the GPLv2+.
# Please visit https://git.zx2c4.com/password-store/tree/COPYING for more information.
+
+
+# If you use multiple repositories, you can configure completion like this:
#
-# Oh my zsh plugin maintainer: Santiago Borrazás
+# compdef _pass workpass
+# zstyle ':completion::complete:workpass::' prefix "$HOME/work/pass"
+# workpass() {
+# PASSWORD_STORE_DIR=$HOME/work/pass pass $@
+# }
_pass () {
@@ -117,8 +123,9 @@ _pass_cmd_show () {
}
_pass_complete_entries_helper () {
local IFS=$'\n'
- local prefix="${PASSWORD_STORE_DIR:-$HOME/.password-store}"
- _values -C 'passwords' ${$(find -L "$prefix" \( -name .git -o -name .gpg-id \) -prune -o $@ -print 2>/dev/null | sed -e "s#${prefix}/\{0,1\}##" -e 's#\.gpg##' | sort):-""}
+ local prefix
+ zstyle -s ":completion:${curcontext}:" prefix prefix || prefix="${PASSWORD_STORE_DIR:-$HOME/.password-store}"
+ _values -C 'passwords' ${$(find -L "$prefix" \( -name .git -o -name .gpg-id \) -prune -o $@ -print 2>/dev/null | sed -e "s#${prefix}/\{0,1\}##" -e 's#\.gpg##' -e 's#\\#\\\\#' | sort):-""}
}
_pass_complete_entries_with_subdirs () {
From 1691cf8a99e437a6f7860334105207640cd46978 Mon Sep 17 00:00:00 2001
From: Tushar Tiwari
Date: Mon, 13 Aug 2018 15:11:25 -0400
Subject: [PATCH 227/644] Add alias for git add --verbose (#3167)
Add alias `gav='git add -v'`
fixes #6793
---
plugins/git/git.plugin.zsh | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index 04ff22164..d093dcc83 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -44,6 +44,7 @@ alias ga='git add'
alias gaa='git add --all'
alias gapa='git add --patch'
alias gau='git add --update'
+alias gav='git add --verbose'
alias gap='git apply'
alias gb='git branch'
From af1709cfdc57bce75f641f5ea8171ae97d6f246c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Mon, 13 Aug 2018 22:07:07 +0200
Subject: [PATCH 228/644] kubectl: use kubectl to define aliases
This prevents conflicts with other utilities named k (see #6408).
---
plugins/kubectl/kubectl.plugin.zsh | 64 +++++++++++++++---------------
1 file changed, 32 insertions(+), 32 deletions(-)
diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh
index f91475b6c..a4a6b1b88 100644
--- a/plugins/kubectl/kubectl.plugin.zsh
+++ b/plugins/kubectl/kubectl.plugin.zsh
@@ -14,53 +14,53 @@ fi
alias k=kubectl
# Apply a YML file
-alias kaf='k apply -f'
+alias kaf='kubectl apply -f'
# Drop into an interactive terminal on a container
-alias keti='k exec -ti'
+alias keti='kubectl exec -ti'
# Manage configuration quickly to switch contexts between local, dev ad staging.
-alias kcuc='k config use-context'
-alias kcsc='k config set-context'
-alias kcdc='k config delete-context'
-alias kccc='k config current-context'
+alias kcuc='kubectl config use-context'
+alias kcsc='kubectl config set-context'
+alias kcdc='kubectl config delete-context'
+alias kccc='kubectl config current-context'
# Pod management.
-alias kgp='k get pods'
-alias kep='k edit pods'
-alias kdp='k describe pods'
-alias kdelp='k delete pods'
+alias kgp='kubectl get pods'
+alias kep='kubectl edit pods'
+alias kdp='kubectl describe pods'
+alias kdelp='kubectl delete pods'
# Service management.
-alias kgs='k get svc'
-alias kes='k edit svc'
-alias kds='k describe svc'
-alias kdels='k delete svc'
+alias kgs='kubectl get svc'
+alias kes='kubectl edit svc'
+alias kds='kubectl describe svc'
+alias kdels='kubectl delete svc'
# Ingress management
-alias kgi='k get ingress'
-alias kei='k edit ingress'
-alias kdi='k describe ingress'
-alias kdeli='k delete ingress'
+alias kgi='kubectl get ingress'
+alias kei='kubectl edit ingress'
+alias kdi='kubectl describe ingress'
+alias kdeli='kubectl delete ingress'
# Secret management
-alias kgsec='k get secret'
-alias kdsec='k describe secret'
-alias kdelsec='k delete secret'
+alias kgsec='kubectl get secret'
+alias kdsec='kubectl describe secret'
+alias kdelsec='kubectl delete secret'
# Deployment management.
-alias kgd='k get deployment'
-alias ked='k edit deployment'
-alias kdd='k describe deployment'
-alias kdeld='k delete deployment'
-alias ksd='k scale deployment'
-alias krsd='k rollout status deployment'
+alias kgd='kubectl get deployment'
+alias ked='kubectl edit deployment'
+alias kdd='kubectl describe deployment'
+alias kdeld='kubectl delete deployment'
+alias ksd='kubectl scale deployment'
+alias krsd='kubectl rollout status deployment'
# Rollout management.
-alias kgrs='k get rs'
-alias krh='k rollout history'
-alias kru='k rollout undo'
+alias kgrs='kubectl get rs'
+alias krh='kubectl rollout history'
+alias kru='kubectl rollout undo'
# Logs
-alias kl='k logs'
-alias klf='k logs -f'
+alias kl='kubectl logs'
+alias klf='kubectl logs -f'
From 035d78120cb41297068967d3205a23bee22b9543 Mon Sep 17 00:00:00 2001
From: Peter Bittner
Date: Wed, 15 Aug 2018 19:44:06 +0200
Subject: [PATCH 229/644] Add Git alias for `git diff --staged` (#7064)
---
plugins/git/git.plugin.zsh | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index d093dcc83..93b835b77 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -89,6 +89,7 @@ alias gd='git diff'
alias gdca='git diff --cached'
alias gdcw='git diff --cached --word-diff'
alias gdct='git describe --tags `git rev-list --tags --max-count=1`'
+alias gds='git diff --staged'
alias gdt='git diff-tree --no-commit-id --name-only -r'
alias gdw='git diff --word-diff'
From a52a5fb1f4a5ca4bacc67e117872cfc4eb1d6417 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dennis=20H=C3=A4gler?=
Date: Thu, 16 Aug 2018 17:52:45 +0200
Subject: [PATCH 230/644] Remove the white space
The white space is causing an error and bundler cannot find any commands!
---
plugins/bundler/bundler.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
index 589f2cfce..b0b286af5 100644
--- a/plugins/bundler/bundler.plugin.zsh
+++ b/plugins/bundler/bundler.plugin.zsh
@@ -1,4 +1,4 @@
-alias be="bundle exec "
+alias be="bundle exec"
alias bl="bundle list"
alias bp="bundle package"
alias bo="bundle open"
From ff6b4c835be54a9529a88849b83284aee61a7126 Mon Sep 17 00:00:00 2001
From: 15cm
Date: Wed, 26 Apr 2017 15:56:50 +0800
Subject: [PATCH 231/644] tmux: do not auto-load tmux inside of Emacs/Vim
When Emacs and Vim are launched from outside of an interactive shell,
$TMUX and $STY are not set; check for Emacs and Vim environment
variables instead.
---
plugins/tmux/tmux.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/tmux/tmux.plugin.zsh b/plugins/tmux/tmux.plugin.zsh
index 4a7986389..7ddf42099 100644
--- a/plugins/tmux/tmux.plugin.zsh
+++ b/plugins/tmux/tmux.plugin.zsh
@@ -80,7 +80,7 @@ compdef _tmux _zsh_tmux_plugin_run
alias tmux=_zsh_tmux_plugin_run
# Autostart if not already in tmux and enabled.
-if [[ -z "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" ]]; then
+if [[ -z "$TMUX" && "$ZSH_TMUX_AUTOSTART" == "true" && -z "$INSIDE_EMACS" && -z "$EMACS" && -z "$VIM" ]]; then
# Actually don't autostart if we already did and multiple autostarts are disabled.
if [[ "$ZSH_TMUX_AUTOSTART_ONCE" == "false" || "$ZSH_TMUX_AUTOSTARTED" != "true" ]]; then
export ZSH_TMUX_AUTOSTARTED=true
From e8b9958926c6e41fc681983bf4ec7d96e21e27db Mon Sep 17 00:00:00 2001
From: John Burwell
Date: Sun, 3 Apr 2016 01:08:06 -0400
Subject: [PATCH 232/644] Add jenv plugin
Initializes jenv and provides the jenv_prompt_info funtion to add
Java version information to prompts. This function is stubbed in
prompt_info_functions script to allow it to be safely called
regardless of whether or not the jenv plugin is loaded.
It also splits detection of the plugin/versions directory and bin directory
to suppport the way Homebrew splits the jenv bin and data directories
---
lib/prompt_info_functions.zsh | 2 +-
plugins/jenv/README.md | 3 +++
plugins/jenv/jenv.plugin.zsh | 33 +++++++++++++++++++++++++++++++++
3 files changed, 37 insertions(+), 1 deletion(-)
create mode 100644 plugins/jenv/README.md
create mode 100644 plugins/jenv/jenv.plugin.zsh
diff --git a/lib/prompt_info_functions.zsh b/lib/prompt_info_functions.zsh
index 335c02a3d..1d5c23e41 100644
--- a/lib/prompt_info_functions.zsh
+++ b/lib/prompt_info_functions.zsh
@@ -12,7 +12,7 @@
# Real implementations will be used when the respective plugins are loaded
function chruby_prompt_info hg_prompt_info pyenv_prompt_info \
rbenv_prompt_info svn_prompt_info vi_mode_prompt_info \
- virtualenv_prompt_info {
+ virtualenv_prompt_info jenv_prompt_info {
return 1
}
diff --git a/plugins/jenv/README.md b/plugins/jenv/README.md
new file mode 100644
index 000000000..2f27d6786
--- /dev/null
+++ b/plugins/jenv/README.md
@@ -0,0 +1,3 @@
+# jenv oh-my-zsh plugin
+
+[jenv](http://www.jenv.be/) is a Java version manager similiar to [rbenv](http://rbenv.org/) and [pyenv]|(https://github.com/yyuu/pyenv). This plugin initializes jenv and adds provides the jenv_prompt_info function to add Java version information to prompts.
diff --git a/plugins/jenv/jenv.plugin.zsh b/plugins/jenv/jenv.plugin.zsh
new file mode 100644
index 000000000..f131aa2f9
--- /dev/null
+++ b/plugins/jenv/jenv.plugin.zsh
@@ -0,0 +1,33 @@
+_homebrew-installed() {
+ type brew &> /dev/null
+}
+
+_jenv-from-homebrew-installed() {
+ brew --prefix jenv &> /dev/null
+}
+
+jenvdirs=("$HOME/.jenv" "/usr/local/jenv" "/opt/jenv")
+if _homebrew-installed && _jenv-from-homebrew-installed ; then
+ jenvdirs+=($(brew --prefix jenv) "${jenvdirs[@]}")
+fi
+
+FOUND_JENV=0
+for jenvdir in "${jenvdirs[@]}" ; do
+ if [ -d $jenvdir/bin -a $FOUND_JENV -eq 0 ] ; then
+ FOUND_JENV=1
+ export PATH="${jenvdir}/bin:$PATH"
+ eval "$(jenv init - zsh)"
+
+ function jenv_prompt_info() {
+ echo "$(jenv version-name)"
+ }
+ fi
+ if [ -d $jenvdir/versions -a $FOUND_JENV -eq 0 ] ; then
+ export JENV_ROOT=$jenvdir
+ fi
+done
+unset jenvdir
+
+if [ $FOUND_JENV -eq 0 ] ; then
+ function jenv_prompt_info() { echo "system: $(java -version 2>&1 | cut -f 2 -d ' ')" }
+fi
From 3a822bb5fdc30e5b623f409af5c894fe9ad90d15 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sun, 19 Aug 2018 19:32:48 +0200
Subject: [PATCH 233/644] jenv: refactor and optimize logic
---
plugins/jenv/jenv.plugin.zsh | 45 +++++++++++++++++-------------------
1 file changed, 21 insertions(+), 24 deletions(-)
diff --git a/plugins/jenv/jenv.plugin.zsh b/plugins/jenv/jenv.plugin.zsh
index f131aa2f9..6c52635bb 100644
--- a/plugins/jenv/jenv.plugin.zsh
+++ b/plugins/jenv/jenv.plugin.zsh
@@ -1,33 +1,30 @@
-_homebrew-installed() {
- type brew &> /dev/null
-}
-
-_jenv-from-homebrew-installed() {
- brew --prefix jenv &> /dev/null
-}
-
jenvdirs=("$HOME/.jenv" "/usr/local/jenv" "/opt/jenv")
-if _homebrew-installed && _jenv-from-homebrew-installed ; then
- jenvdirs+=($(brew --prefix jenv) "${jenvdirs[@]}")
-fi
FOUND_JENV=0
-for jenvdir in "${jenvdirs[@]}" ; do
- if [ -d $jenvdir/bin -a $FOUND_JENV -eq 0 ] ; then
+for jenvdir in $jenvdirs; do
+ if [[ -d "${jenvdir}/bin" ]]; then
FOUND_JENV=1
- export PATH="${jenvdir}/bin:$PATH"
- eval "$(jenv init - zsh)"
-
- function jenv_prompt_info() {
- echo "$(jenv version-name)"
- }
- fi
- if [ -d $jenvdir/versions -a $FOUND_JENV -eq 0 ] ; then
- export JENV_ROOT=$jenvdir
+ break
fi
done
-unset jenvdir
-if [ $FOUND_JENV -eq 0 ] ; then
+if [[ $FOUND_JENV -eq 0 ]]; then
+ if (( $+commands[brew] )) && jenvdir="$(brew --prefix jenv)"; then
+ FOUND_JENV=1
+ fi
+fi
+
+if [[ $FOUND_JENV -eq 1 ]]; then
+ export PATH="${jenvdir}/bin:$PATH"
+ eval "$(jenv init - zsh)"
+
+ function jenv_prompt_info() { jenv version-name 2>/dev/null }
+
+ if [[ -d "${jenvdir}/versions" ]]; then
+ export JENV_ROOT=$jenvdir
+ fi
+else
function jenv_prompt_info() { echo "system: $(java -version 2>&1 | cut -f 2 -d ' ')" }
fi
+
+unset jenvdir FOUND_JENV
From 873dc9cfb8ddc3c9bb398e9dbb27ebea7f6cab81 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sun, 19 Aug 2018 19:41:49 +0200
Subject: [PATCH 234/644] jenv: update README
---
plugins/jenv/README.md | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/plugins/jenv/README.md b/plugins/jenv/README.md
index 2f27d6786..8899d21ae 100644
--- a/plugins/jenv/README.md
+++ b/plugins/jenv/README.md
@@ -1,3 +1,13 @@
-# jenv oh-my-zsh plugin
+# jenv plugin
-[jenv](http://www.jenv.be/) is a Java version manager similiar to [rbenv](http://rbenv.org/) and [pyenv]|(https://github.com/yyuu/pyenv). This plugin initializes jenv and adds provides the jenv_prompt_info function to add Java version information to prompts.
+[jenv](https://www.jenv.be/) is a Java version manager similiar to [rbenv](https://github.com/rbenv/rbenv)
+and [pyenv]|(https://github.com/yyuu/pyenv).
+
+This plugin initializes jenv and adds provides the jenv_prompt_info function to add Java
+version information to prompts.
+
+To use, add `jenv` to your plugins array in your zshrc file:
+
+```zsh
+plugins=(... jenv)
+```
From 3edd424af2316628c7ab8d86b9b2e0207f48fd6f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sun, 19 Aug 2018 19:43:35 +0200
Subject: [PATCH 235/644] jenv: small fix
---
plugins/jenv/jenv.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/jenv/jenv.plugin.zsh b/plugins/jenv/jenv.plugin.zsh
index 6c52635bb..cead0077b 100644
--- a/plugins/jenv/jenv.plugin.zsh
+++ b/plugins/jenv/jenv.plugin.zsh
@@ -27,4 +27,4 @@ else
function jenv_prompt_info() { echo "system: $(java -version 2>&1 | cut -f 2 -d ' ')" }
fi
-unset jenvdir FOUND_JENV
+unset jenvdir jenvdirs FOUND_JENV
From be65adc6c364e842307c7b4e8da30f0162b629f0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sun, 19 Aug 2018 21:36:21 +0200
Subject: [PATCH 236/644] git-extras: update completion (2018-05-24 0f76863)
---
plugins/git-extras/git-extras.plugin.zsh | 225 +++++++++++++++++++----
1 file changed, 194 insertions(+), 31 deletions(-)
diff --git a/plugins/git-extras/git-extras.plugin.zsh b/plugins/git-extras/git-extras.plugin.zsh
index afc1679cc..ef6c35988 100644
--- a/plugins/git-extras/git-extras.plugin.zsh
+++ b/plugins/git-extras/git-extras.plugin.zsh
@@ -47,6 +47,14 @@ __gitex_commits() {
_describe -t commits commit commits && ret=0
}
+__gitex_remote_names() {
+ local expl
+ declare -a remote_names
+ remote_names=(${(f)"$(_call_program remotes git remote 2>/dev/null)"})
+ __git_command_successful || return
+ _wanted remote-names expl remote-name compadd $* - $remote_names
+}
+
__gitex_tag_names() {
local expl
declare -a tag_names
@@ -69,7 +77,11 @@ __gitex_specific_branch_names() {
declare -a branch_names
branch_names=(${${(f)"$(_call_program branchrefs git for-each-ref --format='"%(refname)"' refs/heads/"$1" 2>/dev/null)"}#refs/heads/$1/})
__git_command_successful || return
- _wanted branch-names expl branch-name compadd $* - $branch_names
+ _wanted branch-names expl branch-name compadd - $branch_names
+}
+
+__gitex_chore_branch_names() {
+ __gitex_specific_branch_names 'chore'
}
__gitex_feature_branch_names() {
@@ -102,6 +114,11 @@ __gitex_author_names() {
}
# subcommands
+_git-authors() {
+ _arguments -C \
+ '(--list -l)'{--list,-l}'[show authors]' \
+ '--no-email[without email]' \
+}
_git-bug() {
local curcontext=$curcontext state line ret=1
@@ -126,8 +143,16 @@ _git-bug() {
_arguments -C \
':branch-name:__gitex_bug_branch_names'
;;
+ -r|--remote )
+ _arguments -C \
+ ':remote-name:__gitex_remote_names'
+ ;;
esac
+ return 0
esac
+
+ _arguments \
+ '(--remote -r)'{--remote,-r}'[setup remote tracking branch]'
}
@@ -136,6 +161,40 @@ _git-changelog() {
'(-l --list)'{-l,--list}'[list commits]' \
}
+_git-chore() {
+ local curcontext=$curcontext state line ret=1
+ declare -A opt_args
+
+ _arguments -C \
+ ': :->command' \
+ '*:: :->option-or-argument' && ret=0
+
+ case $state in
+ (command)
+ declare -a commands
+ commands=(
+ 'finish:merge and delete the chore branch'
+ )
+ _describe -t commands command commands && ret=0
+ ;;
+ (option-or-argument)
+ curcontext=${curcontext%:*}-$line[1]:
+ case $line[1] in
+ (finish)
+ _arguments -C \
+ ':branch-name:__gitex_chore_branch_names'
+ ;;
+ -r|--remote )
+ _arguments -C \
+ ':remote-name:__gitex_remote_names'
+ ;;
+ esac
+ return 0
+ esac
+
+ _arguments \
+ '(--remote -r)'{--remote,-r}'[setup remote tracking branch]'
+}
_git-contrib() {
@@ -149,6 +208,27 @@ _git-count() {
'--all[detailed commit count]'
}
+_git-create-branch() {
+ local curcontext=$curcontext state line
+ _arguments -C \
+ ': :->command' \
+ '*:: :->option-or-argument'
+
+ case "$state" in
+ (command)
+ _arguments \
+ '(--remote -r)'{--remote,-r}'[setup remote tracking branch]'
+ ;;
+ (option-or-argument)
+ curcontext=${curcontext%:*}-$line[1]:
+ case $line[1] in
+ -r|--remote )
+ _arguments -C \
+ ':remote-name:__gitex_remote_names'
+ ;;
+ esac
+ esac
+}
_git-delete-branch() {
_arguments \
@@ -220,10 +300,17 @@ _git-feature() {
_arguments -C \
':branch-name:__gitex_feature_branch_names'
;;
+ -r|--remote )
+ _arguments -C \
+ ':remote-name:__gitex_remote_names'
+ ;;
esac
+ return 0
esac
-}
+ _arguments \
+ '(--remote -r)'{--remote,-r}'[setup remote tracking branch]'
+}
_git-graft() {
_arguments \
@@ -231,14 +318,39 @@ _git-graft() {
':dest-branch-name:__gitex_branch_names'
}
+_git-guilt() {
+ _arguments -C \
+ '(--email -e)'{--email,-e}'[display author emails instead of names]' \
+ '(--ignore-whitespace -w)'{--ignore-whitespace,-w}'[ignore whitespace only changes]' \
+ '(--debug -d)'{--debug,-d}'[output debug information]' \
+ '-h[output usage information]'
+}
_git-ignore() {
_arguments -C \
'(--local -l)'{--local,-l}'[show local gitignore]' \
- '(--global -g)'{--global,-g}'[show global gitignore]'
+ '(--global -g)'{--global,-g}'[show global gitignore]' \
+ '(--private -p)'{--private,-p}'[show repo gitignore]'
}
+_git-ignore() {
+ _arguments -C \
+ '(--append -a)'{--append,-a}'[append .gitignore]' \
+ '(--replace -r)'{--replace,-r}'[replace .gitignore]' \
+ '(--list-in-table -l)'{--list-in-table,-l}'[print available types in table format]' \
+ '(--list-alphabetically -L)'{--list-alphabetically,-L}'[print available types in alphabetical order]' \
+ '(--search -s)'{--search,-s}'[search word in available types]'
+}
+
+
+_git-merge-into() {
+ _arguments '--ff-only[merge only fast-forward]'
+ _arguments \
+ ':src:__gitex_branch_names' \
+ ':dest:__gitex_branch_names'
+}
+
_git-missing() {
_arguments \
':first-branch-name:__gitex_branch_names' \
@@ -269,8 +381,16 @@ _git-refactor() {
_arguments -C \
':branch-name:__gitex_refactor_branch_names'
;;
+ -r|--remote )
+ _arguments -C \
+ ':remote-name:__gitex_remote_names'
+ ;;
esac
+ return 0
esac
+
+ _arguments \
+ '(--remote -r)'{--remote,-r}'[setup remote tracking branch]'
}
@@ -279,6 +399,23 @@ _git-squash() {
':branch-name:__gitex_branch_names'
}
+_git-stamp() {
+ _arguments -C \
+ '(--replace -r)'{--replace,-r}'[replace stamps with same id]'
+}
+
+_git-standup() {
+ _arguments -C \
+ '-a[Specify the author of commits. Use "all" to specify all authors.]' \
+ '-d[Show history since N days ago]' \
+ '-D[Specify the date format displayed in commit history]' \
+ '-f[Fetch commits before showing history]' \
+ '-g[Display GPG signed info]' \
+ '-h[Display help message]' \
+ '-L[Enable the inclusion of symbolic links]' \
+ '-m[The depth of recursive directory search]'
+}
+
_git-summary() {
_arguments '--line[summarize with lines rather than commits]'
__gitex_commits
@@ -291,45 +428,71 @@ _git-undo(){
'(--hard -h)'{--hard,-h}'[wipes your commit(s)]'
}
-zstyle ':completion:*:*:git:*' user-commands \
+zstyle -g existing_user_commands ':completion:*:*:git:*' user-commands
+
+zstyle ':completion:*:*:git:*' user-commands $existing_user_commands \
alias:'define, search and show aliases' \
- archive-file:'export the current HEAD of the git repository to a archive' \
+ archive-file:'export the current head of the git repository to an archive' \
+ authors:'generate authors report' \
back:'undo and stage latest commits' \
- bug:'create a bug branch' \
- changelog:'populate changelog file with commits since the previous tag' \
- commits-since:'list commits since a given date' \
- contrib:'display author contributions' \
- count:'count commits' \
- create-branch:'create local and remote branch' \
- delete-branch:'delete local and remote branch' \
- delete-merged-branches:'delete merged branches'\
- delete-submodule:'delete submodule' \
- delete-tag:'delete local and remote tag' \
- effort:'display effort statistics' \
- extras:'git-extras' \
- feature:'create a feature branch' \
+ bug:'create bug branch' \
+ bulk:'run bulk commands' \
+ changelog:'generate a changelog report' \
+ chore:'create chore branch' \
+ clear-soft:'soft clean up a repository' \
+ clear:'rigorously clean up a repository' \
+ commits-since:'show commit logs since some date' \
+ contrib:'show user contributions' \
+ count:'show commit count' \
+ create-branch:'create branches' \
+ delete-branch:'delete branches' \
+ delete-merged-branches:'delete merged branches' \
+ delete-submodule:'delete submodules' \
+ delete-tag:'delete tags' \
+ delta:'lists changed files' \
+ effort:'show effort statistics on file(s)' \
+ extras:'awesome git utilities' \
+ feature:'create/merge feature branch' \
+ force-clone:'overwrite local repositories with clone' \
fork:'fork a repo on github' \
- fresh-branch:'create empty local branch' \
- gh-pages:'create the GitHub Pages branch' \
- graft:'merge commits from source branch to destination branch' \
- ignore:'add patterns to .gitignore' \
- info:'show info about the repository' \
- local-commits:'list unpushed commits on the local branch' \
+ fresh-branch:'create fresh branches' \
+ gh-pages:'create the github pages branch' \
+ graft:'merge and destroy a given branch' \
+ guilt:'calculate change between two revisions' \
+ ignore-io:'get sample gitignore file' \
+ ignore:'add .gitignore patterns' \
+ info:'returns information on current repository' \
+ local-commits:'list local commits' \
lock:'lock a file excluded from version control' \
locked:'ls files that have been locked' \
+ merge-into:'merge one branch into another' \
+ merge-repo:'merge two repo histories' \
missing:'show commits missing from another branch' \
+ mr:'checks out a merge request locally' \
+ obliterate:'rewrite past commits to remove some files' \
pr:'checks out a pull request locally' \
+ psykorebase:'rebase a branch with a merge commit' \
+ pull-request:'create pull request to GitHub project' \
+ reauthor:'replace the author and/or committer identities in commits and tags' \
rebase-patch:'rebases a patch' \
- refactor:'create a refactor branch' \
+ refactor:'create refactor branch' \
release:'commit, tag and push changes to the repository' \
+ rename-branch:'rename a branch' \
rename-tag:'rename a tag' \
- repl:'read-eval-print-loop' \
+ repl:'git read-eval-print-loop' \
reset-file:'reset one file' \
root:'show path of root' \
- setup:'setup a git repository' \
+ scp:'copy files to ssh compatible `git-remote`' \
+ sed:'replace patterns in git-controlled files' \
+ setup:'set up a git repository' \
+ show-merged-branches:'show merged branches' \
show-tree:'show branch tree of commit history' \
- squash:'merge commits from source branch into the current one as a single commit' \
- summary:'repository summary' \
- touch:'one step creation of new files' \
- undo:'remove the latest commit' \
+ show-unmerged-branches:'show unmerged branches' \
+ squash:'import changes from a branch' \
+ stamp:'stamp the last commit message' \
+ standup:'recall the commit history' \
+ summary:'show repository summary' \
+ sync:'sync local branch with remote branch' \
+ touch:'touch and add file to the index' \
+ undo:'remove latest commits' \
unlock:'unlock a file excluded from version control'
From b743ce92249726fe444911213bf2ed55099158d3 Mon Sep 17 00:00:00 2001
From: Sumit Sahrawat
Date: Mon, 20 Aug 2018 01:09:58 +0530
Subject: [PATCH 237/644] Add scu-* aliases for 'systemctl --user' commands
(#6661)
---
plugins/systemd/systemd.plugin.zsh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/plugins/systemd/systemd.plugin.zsh b/plugins/systemd/systemd.plugin.zsh
index 5a35ecbc7..7cd27d450 100644
--- a/plugins/systemd/systemd.plugin.zsh
+++ b/plugins/systemd/systemd.plugin.zsh
@@ -10,7 +10,13 @@ sudo_commands=(
for c in $user_commands; do; alias sc-$c="systemctl $c"; done
for c in $sudo_commands; do; alias sc-$c="sudo systemctl $c"; done
+for c in $user_commands; do; alias scu-$c="systemctl --user $c"; done
+for c in $sudo_commands; do; alias scu-$c="systemctl --user $c"; done
alias sc-enable-now="sc-enable --now"
alias sc-disable-now="sc-disable --now"
alias sc-mask-now="sc-mask --now"
+
+alias scu-enable-now="scu-enable --now"
+alias scu-disable-now="scu-disable --now"
+alias scu-mask-now="scu-mask --now"
From 0de3b29fd3fde0d5d95271cb076a12931ccee7d8 Mon Sep 17 00:00:00 2001
From: Rob Loach
Date: Sun, 19 Aug 2018 15:46:22 -0400
Subject: [PATCH 238/644] composer: Fix bin directory when Composer is not
available (#6240)
* Fix for Composer's bin when Composer isn't global
When Composer isn't globally installed, the `composer global` call results in an error. This checks to see if Composer is available before making the call. When Composer isn't available, it will just manually set the directories.
* Fix Composer brackets in global bin directory
* composer: Apply feedback from ricpelo
This applies ricpelo's feedback at https://github.com/robbyrussell/oh-my-zsh/pull/6240#pullrequestreview-64253321
* composer: Fix path check syntax
* composer: test with $commands[] syntax
---
plugins/composer/composer.plugin.zsh | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/plugins/composer/composer.plugin.zsh b/plugins/composer/composer.plugin.zsh
index d00813e39..634961023 100644
--- a/plugins/composer/composer.plugin.zsh
+++ b/plugins/composer/composer.plugin.zsh
@@ -51,5 +51,10 @@ alias cgrm='composer global remove'
# install composer in the current directory
alias cget='curl -s https://getcomposer.org/installer | php'
-# Add Composer's global binaries to PATH
-export PATH=$PATH:$(composer global config bin-dir --absolute 2>/dev/null)
+# Add Composer's global binaries to PATH, using Composer if available.
+if (( $+commands[composer] )); then
+ export PATH=$PATH:$(composer global config bin-dir --absolute 2>/dev/null)
+else
+ [ -d $HOME/.composer/vendor/bin ] && export PATH=$PATH:$HOME/.composer/vendor/bin
+ [ -d $HOME/.config/composer/vendor/bin ] && export PATH=$PATH:$HOME/.config/composer/vendor/bin
+fi
From dc948826b21470081c7d6b8dd22ceee45ce96c7c Mon Sep 17 00:00:00 2001
From: Scott Kidder
Date: Sun, 19 Aug 2018 16:14:55 -0400
Subject: [PATCH 239/644] ember-cli : Add alias for ember test --serve (#6492)
---
plugins/ember-cli/README.md | 3 ++-
plugins/ember-cli/ember-cli.plugin.zsh | 1 +
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/plugins/ember-cli/README.md b/plugins/ember-cli/README.md
index 2e4ed7068..b46373619 100644
--- a/plugins/ember-cli/README.md
+++ b/plugins/ember-cli/README.md
@@ -1,6 +1,6 @@
# Ember CLI
-**Maintainers:** [BilalBudhani](https://github.com/BilalBudhani), [eubenesa](https://github.com/eubenesa)
+**Maintainers:** [BilalBudhani](https://github.com/BilalBudhani), [eubenesa](https://github.com/eubenesa), [scottkidder](https://github.com/scottkidder]
Ember CLI (https://www.ember-cli.com/)
@@ -17,5 +17,6 @@ Alias | Ember-CLI command
**ein** | *ember init*
**ei** | *ember install*
**et** | *ember test*
+**ets** | *ember test --serve*
**eu** | *ember update*
**ev** | *ember version*
diff --git a/plugins/ember-cli/ember-cli.plugin.zsh b/plugins/ember-cli/ember-cli.plugin.zsh
index 3d06fd2f5..67842c120 100644
--- a/plugins/ember-cli/ember-cli.plugin.zsh
+++ b/plugins/ember-cli/ember-cli.plugin.zsh
@@ -10,6 +10,7 @@ alias eh='ember help'
alias ein='ember init'
alias ei='ember install'
alias et='ember test'
+alias ets='ember test --serve'
alias eu='ember update'
# version
From e4d2d27af4ba10ae456b5676f3b70573b01d9538 Mon Sep 17 00:00:00 2001
From: Frederic Crozat
Date: Sun, 19 Aug 2018 22:28:37 +0200
Subject: [PATCH 240/644] Agnoster: solarized light variant (#4680)
* agnoster: do not hardcode black foreground.
This would allow easy customization when using light color schemes, like
solarized-light
* agnoster: implement light theme variant
Use same variable as in blinks theme, to detect if solarized theme used
is a light or dark one.
---
themes/agnoster.zsh-theme | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
index d91f98735..d1a69c560 100644
--- a/themes/agnoster.zsh-theme
+++ b/themes/agnoster.zsh-theme
@@ -16,6 +16,10 @@
# using it on Mac OS X, [iTerm 2](https://iterm2.com/) over Terminal.app -
# it has significantly better color fidelity.
#
+# If using with "light" variant of the Solarized color schema, set
+# SOLARIZED_THEME variable to "light". If you don't specify, we'll assume
+# you're using the "dark" variant.
+#
# # Goals
#
# The aim of this theme is to only show you *relevant* information. Like most
@@ -30,6 +34,11 @@
CURRENT_BG='NONE'
+case ${SOLARIZED_THEME:-dark} in
+ light) CURRENT_FG='white';;
+ *) CURRENT_FG='black';;
+esac
+
# Special Powerline characters
() {
@@ -101,7 +110,7 @@ prompt_git() {
if [[ -n $dirty ]]; then
prompt_segment yellow black
else
- prompt_segment green black
+ prompt_segment green $CURRENT_FG
fi
if [[ -e "${repo_path}/BISECT_LOG" ]]; then
@@ -164,7 +173,7 @@ prompt_hg() {
st='±'
else
# if working copy is clean
- prompt_segment green black
+ prompt_segment green $CURRENT_FG
fi
echo -n $(hg prompt "☿ {rev}@{branch}") $st
else
@@ -178,7 +187,7 @@ prompt_hg() {
prompt_segment yellow black
st='±'
else
- prompt_segment green black
+ prompt_segment green $CURRENT_FG
fi
echo -n "☿ $rev@$branch" $st
fi
@@ -187,7 +196,7 @@ prompt_hg() {
# Dir: current working directory
prompt_dir() {
- prompt_segment blue black '%~'
+ prompt_segment blue $CURRENT_FG '%~'
}
# Virtualenv: current working virtualenv
From fceae90219c1c8b422a6d0e220e45ce59b9b737a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sun, 19 Aug 2018 22:33:44 +0200
Subject: [PATCH 241/644] jenv: fix brew directory search
`brew --prefix jenv` doesn't ensure jenv is installed so we have to recheck if the
bin folder is still there.
---
plugins/jenv/jenv.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/jenv/jenv.plugin.zsh b/plugins/jenv/jenv.plugin.zsh
index cead0077b..14c586be9 100644
--- a/plugins/jenv/jenv.plugin.zsh
+++ b/plugins/jenv/jenv.plugin.zsh
@@ -10,7 +10,7 @@ done
if [[ $FOUND_JENV -eq 0 ]]; then
if (( $+commands[brew] )) && jenvdir="$(brew --prefix jenv)"; then
- FOUND_JENV=1
+ [[ -d "${jenvdir}/bin" ]] && FOUND_JENV=1
fi
fi
From abca62add1a6d0ac34e697beac8682076d5c1dd7 Mon Sep 17 00:00:00 2001
From: Michele Iacobone
Date: Sun, 19 Aug 2018 22:43:47 +0200
Subject: [PATCH 242/644] Fix for external dependency in trapd00r theme (#5579)
---
themes/trapd00r.zsh-theme | 64 ++++++++++++++++++++++++++++++++++-----
1 file changed, 57 insertions(+), 7 deletions(-)
diff --git a/themes/trapd00r.zsh-theme b/themes/trapd00r.zsh-theme
index 3fa5d57ab..fa8d21898 100644
--- a/themes/trapd00r.zsh-theme
+++ b/themes/trapd00r.zsh-theme
@@ -1,8 +1,9 @@
# trapd00r.zsh-theme
#
-# This theme needs a terminal supporting 256 colors as well as unicode. It also
-# needs the script that splits up the current path and makes it fancy as located
-# here: https://github.com/trapd00r/utils/blob/master/zsh_path
+# This theme needs a terminal supporting 256 colors as well as unicode.
+# In order to avoid external dependencies, it also embeds a (possibly old)
+# copy of the perl script located at https://github.com/trapd00r/utils/blob/master/zsh_path,
+# which splits up the current path and makes it fancy.
#
# By default it spans over two lines like so:
#
@@ -35,6 +36,54 @@ local c11=$(printf "\e[38;5;208m\e[1m")
local c12=$(printf "\e[38;5;142m\e[1m")
local c13=$(printf "\e[38;5;196m\e[1m")
+local zsh_path_pl='
+
+use strict;
+use Term::ExtendedColor "fg";
+
+chomp(my $pwd = `pwd`);
+
+my @chars = split//, $pwd;
+
+my $i = 1;
+
+for(@chars) {
+ if($_ eq "/") {
+ if(defined($ENV{DISPLAY})) {
+ if($i == 1) {
+ print fg("green28", fg("bold", " /"));
+ $i++;
+ next;
+ }
+ }
+ else {
+ if($i == 1) {
+ print "\e[31;1m /\e[0m";
+ $i++;
+ next;
+ }
+ }
+
+ if(defined($ENV{DISPLAY})) {
+ print fg("yellow$i", " » ");
+ $i += 6
+ }
+ else {
+ print "\e[33m > \e[0m";
+ $i += 6;
+ }
+ }
+ else {
+ if(defined($ENV{DISPLAY})) {
+ print fg("green28", $_);
+ }
+ else {
+ print "\e[34m$_\e[0m";
+ }
+ }
+}
+
+'
# We don't want to use the extended colorset in the TTY / VC.
if [ "$TERM" = "linux" ]; then
@@ -67,28 +116,29 @@ add-zsh-hook precmd prompt_jnrowe_precmd
prompt_jnrowe_precmd () {
vcs_info
if [ "${vcs_info_msg_0_}" = "" ]; then
- dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(zsh_path)%} %{$c0%}(%{$c5%}%?%{$c0%})"
+ dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(echo $zsh_path_pl | perl)%} %{$c0%}(%{$c5%}%?%{$c0%})"
PROMPT='%{$fg_bold[green]%}%p%{$reset_color%}${vcs_info_msg_0_}${dir_status} ${ret_status}%{$reset_color%}
> '
# modified, to be committed
elif [[ $(git diff --cached --name-status 2>/dev/null ) != "" ]]; then
- dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(zsh_path)%} %{$c0%}(%{$c5%}%?%{$c0%})"
+ dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(echo $zsh_path_pl | perl)%} %{$c0%}(%{$c5%}%?%{$c0%})"
PROMPT='${vcs_info_msg_0_}%{$30%} %{$bg_bold[red]%}%{$fg_bold[cyan]%}C%{$fg_bold[black]%}OMMIT%{$reset_color%}
%{$fg_bold[green]%}%p%{$reset_color%}${dir_status}%{$reset_color%}
> '
elif [[ $(git diff --name-status 2>/dev/null ) != "" ]]; then
- dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(zsh_path)%} %{$c0%}(%{$c5%}%?%{$c0%})"
+ dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(echo $zsh_path_pl | perl)%} %{$c0%}(%{$c5%}%?%{$c0%})"
PROMPT='${vcs_info_msg_0_}%{$bg_bold[red]%}%{$fg_bold[blue]%}D%{$fg_bold[black]%}IRTY%{$reset_color%}
%{$fg_bold[green]%}%p%{$reset_color%}${dir_status}%{$reset_color%}
%{$c13%}>%{$c0%} '
else
- dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(zsh_path)%} %{$c0%}(%{$c5%}%?%{$c0%})"
+ dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(echo $zsh_path_pl | perl)%} %{$c0%}(%{$c5%}%?%{$c0%})"
PROMPT='${vcs_info_msg_0_}
%{$fg_bold[green]%}%p%{$reset_color%}${dir_status}%{$reset_color%}
> '
fi
}
+
# vim: set ft=zsh sw=2 et tw=0:
From 1d26e2ab6f0b57ae8599d59e120df2aea1f125f3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Mon, 20 Aug 2018 17:35:02 +0200
Subject: [PATCH 243/644] trapd00r: convert perl script to zsh
Used color encodings from
https://metacpan.org/source/WOLDRICH/Term-ExtendedColor-0.224/lib/Term/ExtendedColor.pm
---
themes/trapd00r.zsh-theme | 86 ++++++++++++++++++---------------------
1 file changed, 39 insertions(+), 47 deletions(-)
mode change 100644 => 100755 themes/trapd00r.zsh-theme
diff --git a/themes/trapd00r.zsh-theme b/themes/trapd00r.zsh-theme
old mode 100644
new mode 100755
index fa8d21898..2feca08b9
--- a/themes/trapd00r.zsh-theme
+++ b/themes/trapd00r.zsh-theme
@@ -36,54 +36,46 @@ local c11=$(printf "\e[38;5;208m\e[1m")
local c12=$(printf "\e[38;5;142m\e[1m")
local c13=$(printf "\e[38;5;196m\e[1m")
-local zsh_path_pl='
-use strict;
-use Term::ExtendedColor "fg";
+zsh_path() {
+ local -A yellow
+ yellow=(
+ 1 '%F{228}' 2 '%F{222}' 3 '%F{192}' 4 '%F{186}'
+ 5 '%F{227}' 6 '%F{221}' 7 '%F{191}' 8 '%F{185}'
+ 9 '%F{226}' 10 '%F{220}' 11 '%F{190}' 12 '%F{184}'
+ 13 '%F{214}' 14 '%F{178}' 15 '%F{208}' 16 '%F{172}'
+ 17 '%F{202}' 18 '%F{166}'
+ )
-chomp(my $pwd = `pwd`);
+ local c i=1
+ for c (${(s::)PWD}); do
+ if [[ $c = "/" ]]; then
+ if [[ $i -eq 1 ]]; then
+ if [[ -n "$DISPLAY" ]]; then
+ print -Pn '%F{065}%B /%b%f'
+ else
+ print -Pn '\e[31;1m /%f'
+ fi
+ (( i++ ))
+ continue
+ fi
-my @chars = split//, $pwd;
-
-my $i = 1;
-
-for(@chars) {
- if($_ eq "/") {
- if(defined($ENV{DISPLAY})) {
- if($i == 1) {
- print fg("green28", fg("bold", " /"));
- $i++;
- next;
- }
- }
- else {
- if($i == 1) {
- print "\e[31;1m /\e[0m";
- $i++;
- next;
- }
- }
-
- if(defined($ENV{DISPLAY})) {
- print fg("yellow$i", " » ");
- $i += 6
- }
- else {
- print "\e[33m > \e[0m";
- $i += 6;
- }
- }
- else {
- if(defined($ENV{DISPLAY})) {
- print fg("green28", $_);
- }
- else {
- print "\e[34m$_\e[0m";
- }
- }
+ if [[ -n "$DISPLAY" ]]; then
+ print -Pn "${yellow[$i]:-%f} » %f"
+ else
+ print -Pn "%F{yellow} > %f"
+ fi
+ (( i += 6 ))
+ else
+ if [[ -n "$DISPLAY" ]]; then
+ print -Pn "%F{065}$c%f"
+ else
+ print -Pn "%F{blue}$c%f"
+ fi
+ fi
+ done
}
-'
# We don't want to use the extended colorset in the TTY / VC.
if [ "$TERM" = "linux" ]; then
@@ -116,24 +108,24 @@ add-zsh-hook precmd prompt_jnrowe_precmd
prompt_jnrowe_precmd () {
vcs_info
if [ "${vcs_info_msg_0_}" = "" ]; then
- dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(echo $zsh_path_pl | perl)%} %{$c0%}(%{$c5%}%?%{$c0%})"
+ dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(zsh_path)%} %{$c0%}(%{$c5%}%?%{$c0%})"
PROMPT='%{$fg_bold[green]%}%p%{$reset_color%}${vcs_info_msg_0_}${dir_status} ${ret_status}%{$reset_color%}
> '
# modified, to be committed
elif [[ $(git diff --cached --name-status 2>/dev/null ) != "" ]]; then
- dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(echo $zsh_path_pl | perl)%} %{$c0%}(%{$c5%}%?%{$c0%})"
+ dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(zsh_path)%} %{$c0%}(%{$c5%}%?%{$c0%})"
PROMPT='${vcs_info_msg_0_}%{$30%} %{$bg_bold[red]%}%{$fg_bold[cyan]%}C%{$fg_bold[black]%}OMMIT%{$reset_color%}
%{$fg_bold[green]%}%p%{$reset_color%}${dir_status}%{$reset_color%}
> '
elif [[ $(git diff --name-status 2>/dev/null ) != "" ]]; then
- dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(echo $zsh_path_pl | perl)%} %{$c0%}(%{$c5%}%?%{$c0%})"
+ dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(zsh_path)%} %{$c0%}(%{$c5%}%?%{$c0%})"
PROMPT='${vcs_info_msg_0_}%{$bg_bold[red]%}%{$fg_bold[blue]%}D%{$fg_bold[black]%}IRTY%{$reset_color%}
%{$fg_bold[green]%}%p%{$reset_color%}${dir_status}%{$reset_color%}
%{$c13%}>%{$c0%} '
else
- dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(echo $zsh_path_pl | perl)%} %{$c0%}(%{$c5%}%?%{$c0%})"
+ dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(zsh_path)%} %{$c0%}(%{$c5%}%?%{$c0%})"
PROMPT='${vcs_info_msg_0_}
%{$fg_bold[green]%}%p%{$reset_color%}${dir_status}%{$reset_color%}
> '
From 4774bc62d5e1799ff531f2713f4a8cb493a406a1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Mon, 20 Aug 2018 17:45:36 +0200
Subject: [PATCH 244/644] trapd00r: look for 256-color support, not $DISPLAY
Checking if the terminal supports 256 colors is better suited for
our purpose. Checking if `$DISPLAY` is set doesn't tell us if our
colors will be displayed correctly.
---
themes/trapd00r.zsh-theme | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/themes/trapd00r.zsh-theme b/themes/trapd00r.zsh-theme
index 2feca08b9..51d5387e0 100755
--- a/themes/trapd00r.zsh-theme
+++ b/themes/trapd00r.zsh-theme
@@ -38,6 +38,9 @@ local c13=$(printf "\e[38;5;196m\e[1m")
zsh_path() {
+ local colors
+ colors=$(echoti colors)
+
local -A yellow
yellow=(
1 '%F{228}' 2 '%F{222}' 3 '%F{192}' 4 '%F{186}'
@@ -51,7 +54,7 @@ zsh_path() {
for c (${(s::)PWD}); do
if [[ $c = "/" ]]; then
if [[ $i -eq 1 ]]; then
- if [[ -n "$DISPLAY" ]]; then
+ if [[ $colors -ge 256 ]]; then
print -Pn '%F{065}%B /%b%f'
else
print -Pn '\e[31;1m /%f'
@@ -60,14 +63,14 @@ zsh_path() {
continue
fi
- if [[ -n "$DISPLAY" ]]; then
+ if [[ $colors -ge 256 ]]; then
print -Pn "${yellow[$i]:-%f} » %f"
else
print -Pn "%F{yellow} > %f"
fi
(( i += 6 ))
else
- if [[ -n "$DISPLAY" ]]; then
+ if [[ $colors -ge 256 ]]; then
print -Pn "%F{065}$c%f"
else
print -Pn "%F{blue}$c%f"
From 3d1719c618e83b03ec7fae023444cdacf729f63a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Mon, 20 Aug 2018 17:50:11 +0200
Subject: [PATCH 245/644] trapd00r: optimize reset of foreground colors
---
themes/trapd00r.zsh-theme | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/themes/trapd00r.zsh-theme b/themes/trapd00r.zsh-theme
index 51d5387e0..a1db9945c 100755
--- a/themes/trapd00r.zsh-theme
+++ b/themes/trapd00r.zsh-theme
@@ -55,28 +55,29 @@ zsh_path() {
if [[ $c = "/" ]]; then
if [[ $i -eq 1 ]]; then
if [[ $colors -ge 256 ]]; then
- print -Pn '%F{065}%B /%b%f'
+ print -Pn "%F{065}%B /%b"
else
- print -Pn '\e[31;1m /%f'
+ print -Pn "\e[31;1m /"
fi
(( i++ ))
continue
fi
if [[ $colors -ge 256 ]]; then
- print -Pn "${yellow[$i]:-%f} » %f"
+ print -Pn "${yellow[$i]:-%f} » "
else
- print -Pn "%F{yellow} > %f"
+ print -Pn "%F{yellow} > "
fi
(( i += 6 ))
else
if [[ $colors -ge 256 ]]; then
- print -Pn "%F{065}$c%f"
+ print -Pn "%F{065}$c"
else
- print -Pn "%F{blue}$c%f"
+ print -Pn "%F{blue}$c"
fi
fi
done
+ print -Pn "%f"
}
From b4c8b60bb45f00f3cd68000ceda3c96b2ad852ed Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Mon, 20 Aug 2018 17:55:22 +0200
Subject: [PATCH 246/644] trapd00r: change more slowly between yellows
Also refactor the logic
---
themes/trapd00r.zsh-theme | 15 +++++++--------
1 file changed, 7 insertions(+), 8 deletions(-)
diff --git a/themes/trapd00r.zsh-theme b/themes/trapd00r.zsh-theme
index a1db9945c..33579e728 100755
--- a/themes/trapd00r.zsh-theme
+++ b/themes/trapd00r.zsh-theme
@@ -59,16 +59,15 @@ zsh_path() {
else
print -Pn "\e[31;1m /"
fi
- (( i++ ))
- continue
+ else
+ if [[ $colors -ge 256 ]]; then
+ print -Pn "${yellow[$i]:-%f} » "
+ else
+ print -Pn "%F{yellow} > "
+ fi
fi
- if [[ $colors -ge 256 ]]; then
- print -Pn "${yellow[$i]:-%f} » "
- else
- print -Pn "%F{yellow} > "
- fi
- (( i += 6 ))
+ (( i++ ))
else
if [[ $colors -ge 256 ]]; then
print -Pn "%F{065}$c"
From e97262499780caadf5388c3b612100b87da39548 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Mon, 20 Aug 2018 18:03:41 +0200
Subject: [PATCH 247/644] trapd00r: simplify logic and optimize for loop
This version splits the `$PWD` by the slashes and prints the path
directory by directory, printing the separators as before.
---
themes/trapd00r.zsh-theme | 34 ++++++++++++++++------------------
1 file changed, 16 insertions(+), 18 deletions(-)
diff --git a/themes/trapd00r.zsh-theme b/themes/trapd00r.zsh-theme
index 33579e728..7c36487b3 100755
--- a/themes/trapd00r.zsh-theme
+++ b/themes/trapd00r.zsh-theme
@@ -50,31 +50,29 @@ zsh_path() {
17 '%F{202}' 18 '%F{166}'
)
- local c i=1
- for c (${(s::)PWD}); do
- if [[ $c = "/" ]]; then
- if [[ $i -eq 1 ]]; then
- if [[ $colors -ge 256 ]]; then
- print -Pn "%F{065}%B /%b"
- else
- print -Pn "\e[31;1m /"
- fi
+ local dir i=1
+ for dir (${(s:/:)PWD}); do
+ if [[ $i -eq 1 ]]; then
+ if [[ $colors -ge 256 ]]; then
+ print -Pn "%F{065}%B /%b"
else
- if [[ $colors -ge 256 ]]; then
- print -Pn "${yellow[$i]:-%f} » "
- else
- print -Pn "%F{yellow} > "
- fi
+ print -Pn "\e[31;1m /"
fi
-
- (( i++ ))
else
if [[ $colors -ge 256 ]]; then
- print -Pn "%F{065}$c"
+ print -Pn "${yellow[$i]:-%f} » "
else
- print -Pn "%F{blue}$c"
+ print -Pn "%F{yellow} > "
fi
fi
+
+ (( i++ ))
+
+ if [[ $colors -ge 256 ]]; then
+ print -Pn "%F{065}$dir"
+ else
+ print -Pn "%F{blue}$dir"
+ fi
done
print -Pn "%f"
}
From b70a703a09627e6d96fe9184e9a40395b625a0cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Mon, 20 Aug 2018 18:15:49 +0200
Subject: [PATCH 248/644] trapd00r: clean up the script
---
themes/trapd00r.zsh-theme | 68 ++++++++++++++++++---------------------
1 file changed, 31 insertions(+), 37 deletions(-)
diff --git a/themes/trapd00r.zsh-theme b/themes/trapd00r.zsh-theme
index 7c36487b3..144d2549a 100755
--- a/themes/trapd00r.zsh-theme
+++ b/themes/trapd00r.zsh-theme
@@ -1,8 +1,8 @@
# trapd00r.zsh-theme
#
# This theme needs a terminal supporting 256 colors as well as unicode.
-# In order to avoid external dependencies, it also embeds a (possibly old)
-# copy of the perl script located at https://github.com/trapd00r/utils/blob/master/zsh_path,
+# In order to avoid external dependencies, it also has a zsh version of
+# the perl script at https://github.com/trapd00r/utils/blob/master/zsh_path,
# which splits up the current path and makes it fancy.
#
# By default it spans over two lines like so:
@@ -21,20 +21,20 @@
autoload -U add-zsh-hook
autoload -Uz vcs_info
-local c0=$( printf "\e[m")
-local c1=$( printf "\e[38;5;245m")
-local c2=$( printf "\e[38;5;250m")
-local c3=$( printf "\e[38;5;242m")
-local c4=$( printf "\e[38;5;197m")
-local c5=$( printf "\e[38;5;225m")
-local c6=$( printf "\e[38;5;240m")
-local c7=$( printf "\e[38;5;242m")
-local c8=$( printf "\e[38;5;244m")
-local c9=$( printf "\e[38;5;162m")
-local c10=$(printf "\e[1m")
-local c11=$(printf "\e[38;5;208m\e[1m")
-local c12=$(printf "\e[38;5;142m\e[1m")
-local c13=$(printf "\e[38;5;196m\e[1m")
+local c0=$'\e[m'
+local c1=$'\e[38;5;245m'
+local c2=$'\e[38;5;250m'
+local c3=$'\e[38;5;242m'
+local c4=$'\e[38;5;197m'
+local c5=$'\e[38;5;225m'
+local c6=$'\e[38;5;240m'
+local c7=$'\e[38;5;242m'
+local c8=$'\e[38;5;244m'
+local c9=$'\e[38;5;162m'
+local c10=$'\e[1m'
+local c11=$'\e[38;5;208m\e[1m'
+local c12=$'\e[38;5;142m\e[1m'
+local c13=$'\e[38;5;196m\e[1m'
zsh_path() {
@@ -79,20 +79,19 @@ zsh_path() {
# We don't want to use the extended colorset in the TTY / VC.
-if [ "$TERM" = "linux" ]; then
- c1=$( printf "\e[34;1m")
- c2=$( printf "\e[35m")
- c3=$( printf "\e[31m")
- c4=$( printf "\e[31;1m")
- c5=$( printf "\e[32m")
- c6=$( printf "\e[32;1m")
- c7=$( printf "\e[33m")
- c8=$( printf "\e[33;1m")
- c9=$( printf "\e[34m")
-
- c11=$(printf "\e[35;1m")
- c12=$(printf "\e[36m")
- c13=$(printf "\e[31;1m")
+if [ "$TERM" = linux ]; then
+ c1=$'\e[34;1m'
+ c2=$'\e[35m'
+ c3=$'\e[31m'
+ c4=$'\e[31;1m'
+ c5=$'\e[32m'
+ c6=$'\e[32;1m'
+ c7=$'\e[33m'
+ c8=$'\e[33;1m'
+ c9=$'\e[34m'
+ c11=$'\e[35;1m'
+ c12=$'\e[36m'
+ c13=$'\e[31;1m'
fi
zstyle ':vcs_info:*' actionformats \
@@ -112,14 +111,12 @@ prompt_jnrowe_precmd () {
dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(zsh_path)%} %{$c0%}(%{$c5%}%?%{$c0%})"
PROMPT='%{$fg_bold[green]%}%p%{$reset_color%}${vcs_info_msg_0_}${dir_status} ${ret_status}%{$reset_color%}
> '
-
-# modified, to be committed
+ # modified, to be committed
elif [[ $(git diff --cached --name-status 2>/dev/null ) != "" ]]; then
dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(zsh_path)%} %{$c0%}(%{$c5%}%?%{$c0%})"
PROMPT='${vcs_info_msg_0_}%{$30%} %{$bg_bold[red]%}%{$fg_bold[cyan]%}C%{$fg_bold[black]%}OMMIT%{$reset_color%}
%{$fg_bold[green]%}%p%{$reset_color%}${dir_status}%{$reset_color%}
> '
-
elif [[ $(git diff --name-status 2>/dev/null ) != "" ]]; then
dir_status="%{$c1%}%n%{$c4%}@%{$c2%}%m%{$c0%}:%{$c3%}%l%{$c6%}->%{$(zsh_path)%} %{$c0%}(%{$c5%}%?%{$c0%})"
PROMPT='${vcs_info_msg_0_}%{$bg_bold[red]%}%{$fg_bold[blue]%}D%{$fg_bold[black]%}IRTY%{$reset_color%}
@@ -130,8 +127,5 @@ prompt_jnrowe_precmd () {
PROMPT='${vcs_info_msg_0_}
%{$fg_bold[green]%}%p%{$reset_color%}${dir_status}%{$reset_color%}
> '
-fi
+ fi
}
-
-
-# vim: set ft=zsh sw=2 et tw=0:
From 314f9dfcb393af65a326ee4cbbf77363aaf415c3 Mon Sep 17 00:00:00 2001
From: jack
Date: Fri, 24 Aug 2018 02:01:01 +0800
Subject: [PATCH 249/644] github: fix new_gh to force-add .gitignore (#7086)
---
plugins/github/github.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/github/github.plugin.zsh b/plugins/github/github.plugin.zsh
index fd19fb524..8e4b97352 100644
--- a/plugins/github/github.plugin.zsh
+++ b/plugins/github/github.plugin.zsh
@@ -36,7 +36,7 @@ new_gh() { # [DIRECTORY]
print '.*'"\n"'*~' >> .gitignore
git add [^.]* \
|| return
- git add .gitignore \
+ git add -f .gitignore \
|| return
git commit -m 'Initial commit.' \
|| return
From 2bb10441da3e9715d580706c9a3aab060350b0e3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Thu, 23 Aug 2018 20:28:20 +0200
Subject: [PATCH 250/644] nyan: deprecate plugin with removal notice
Fixes #6826
---
plugins/nyan/nyan.plugin.zsh | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/plugins/nyan/nyan.plugin.zsh b/plugins/nyan/nyan.plugin.zsh
index ac9d0017e..c21c784d9 100644
--- a/plugins/nyan/nyan.plugin.zsh
+++ b/plugins/nyan/nyan.plugin.zsh
@@ -1,5 +1,10 @@
-if [[ -x `which nc` ]]; then
- alias nyan='nc -v nyancat.dakko.us 23' # nyan cat
-fi
-
-
+print -Pn '%F{yellow}'
+cat >&2 <<-EOD
+ nyan plugin:
+ The nyancat server used by this plugin was shut down due to increased
+ bandwidth costs, so the nyan plugin no longer works. You can get the
+ same functionality in some distributions by installing the nyancat package,
+ or you can compile it yourself.
+ See https://github.com/klange/nyancat for more information.
+EOD
+print -Pn '%f'
From 652356b9b99b26317478a8756893f896abbed6cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joel=20Wallis=20Juc=C3=A1?=
Date: Thu, 23 Aug 2018 17:04:42 -0300
Subject: [PATCH 251/644] git: add the `git show` alias `gsh` (#5591)
---
plugins/git/git.plugin.zsh | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index 93b835b77..36f0ff448 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -226,6 +226,7 @@ alias grv='git remote -v'
alias gsb='git status -sb'
alias gsd='git svn dcommit'
+alias gsh='git show'
alias gsi='git submodule init'
alias gsps='git show --pretty=short --show-signature'
alias gsr='git svn rebase'
From 36808ff61ef5ca8888f14ba920c44a8350fb5ad2 Mon Sep 17 00:00:00 2001
From: Franklin Yu
Date: Wed, 3 Aug 2016 11:57:48 -0400
Subject: [PATCH 252/644] [plugin/chruby] Add "system" to completion list
Detect system Ruby in default PATH, and provide "system" completion if
Ruby is found.
---
plugins/chruby/chruby.plugin.zsh | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/plugins/chruby/chruby.plugin.zsh b/plugins/chruby/chruby.plugin.zsh
index 758b4a56c..8a1577267 100644
--- a/plugins/chruby/chruby.plugin.zsh
+++ b/plugins/chruby/chruby.plugin.zsh
@@ -95,5 +95,11 @@ function chruby_prompt_info() {
}
# complete on installed rubies
-_chruby() { compadd $(chruby | tr -d '* ') }
+_chruby() {
+ compadd $(chruby | tr -d '* ')
+ local default_path='/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin'
+ if PATH=${default_path} type ruby &> /dev/null; then
+ compadd system
+ fi
+}
compdef _chruby chruby
From 2c1100c0e5af5999621872321aaa11533ae24097 Mon Sep 17 00:00:00 2001
From: Ryan Stull
Date: Wed, 29 Aug 2018 09:15:11 -0400
Subject: [PATCH 253/644] Updating 'sbcl' to 'sbcln' (#7095)
Changing 'sbcl' to 'sbcln' so it doesn't collide with 'Steel Bank Common Lisp', a popular lisp implementation.
---
plugins/sbt/sbt.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/sbt/sbt.plugin.zsh b/plugins/sbt/sbt.plugin.zsh
index 8fabf0add..f883b7fee 100644
--- a/plugins/sbt/sbt.plugin.zsh
+++ b/plugins/sbt/sbt.plugin.zsh
@@ -10,7 +10,7 @@ alias sbc='sbt compile'
alias sbcc='sbt clean compile'
alias sbco='sbt console'
alias sbcq='sbt console-quick'
-alias sbcl='sbt clean'
+alias sbcln='sbt clean'
alias sbcp='sbt console-project'
alias sbd='sbt doc'
alias sbdc='sbt dist:clean'
From e93378aacd313a11b83da1d0d7480c1840cd2532 Mon Sep 17 00:00:00 2001
From: Kris Kalavantavanich
Date: Wed, 29 Aug 2018 20:18:20 +0700
Subject: [PATCH 254/644] [plugins/git] Updated git clone alias (#6893)
* Updated git clone alias
`git clone --recursive` has been deprecated in favor of `--recurse-submodules`.
See: https://stackoverflow.com/questions/3796927
---
plugins/git/git.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index 36f0ff448..916866ff5 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -71,7 +71,7 @@ alias gcam='git commit -a -m'
alias gcsm='git commit -s -m'
alias gcb='git checkout -b'
alias gcf='git config --list'
-alias gcl='git clone --recursive'
+alias gcl='git clone --recurse-submodules'
alias gclean='git clean -fd'
alias gpristine='git reset --hard && git clean -dfx'
alias gcm='git checkout master'
From 77d75d7fcdcc7978246b84e6b3f0e95a0595c452 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Samuel=20Leli=C3=A8vre?=
Date: Wed, 29 Aug 2018 20:50:52 +0200
Subject: [PATCH 255/644] Clarify random theme setting (#7090)
Clarify random theme setting, in particular how to know
which theme was loaded if picked at random.
---
templates/zshrc.zsh-template | 21 +++++++++++----------
1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/templates/zshrc.zsh-template b/templates/zshrc.zsh-template
index 5f98fb211..7cd2a873b 100644
--- a/templates/zshrc.zsh-template
+++ b/templates/zshrc.zsh-template
@@ -4,23 +4,23 @@
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
-# Set name of the theme to load. Optionally, if you set this to "random"
-# it'll load a random theme each time that oh-my-zsh is loaded.
+# Set name of the theme to load --- if set to "random", it will
+# load a random theme each time oh-my-zsh is loaded, in which case,
+# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell"
-# Set list of themes to load
-# Setting this variable when ZSH_THEME=random
-# cause zsh load theme from this variable instead of
-# looking in ~/.oh-my-zsh/themes/
-# An empty array have no effect
+# Set list of themes to pick from when loading at random
+# Setting this variable when ZSH_THEME=random will cause zsh to load
+# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
+# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
-# Uncomment the following line to use hyphen-insensitive completion. Case
-# sensitive completion must be off. _ and - will be interchangeable.
+# Uncomment the following line to use hyphen-insensitive completion.
+# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
@@ -57,7 +57,8 @@ ZSH_THEME="robbyrussell"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
-# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
+# Which plugins would you like to load?
+# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
From 39221643b06e5c5ee884978787b08c74de850ec2 Mon Sep 17 00:00:00 2001
From: Dan O'Brien
Date: Wed, 29 Aug 2018 14:51:50 -0400
Subject: [PATCH 256/644] Add aliases for kubectl nodes (#7093)
* Add aliases for kubectl nodes
* change to have 'o' at the end.
My teammate noticed there's no namespacing shortcuts either and will be doing a PR on them with kgna.
---
plugins/kubectl/kubectl.plugin.zsh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh
index a4a6b1b88..492e6ff00 100644
--- a/plugins/kubectl/kubectl.plugin.zsh
+++ b/plugins/kubectl/kubectl.plugin.zsh
@@ -64,3 +64,9 @@ alias kru='kubectl rollout undo'
# Logs
alias kl='kubectl logs'
alias klf='kubectl logs -f'
+
+# Node Management
+alias kgno='kubectl get nodes'
+alias keno='kubectl edit node'
+alias kdno='kubectl describe node'
+alias kdelno='kubectl delete node'
From 5cc6de67bd65d78cdf021345a5fa5d697049b347 Mon Sep 17 00:00:00 2001
From: Aiden <38707987+aidenhx@users.noreply.github.com>
Date: Thu, 30 Aug 2018 02:53:24 +0800
Subject: [PATCH 257/644] Update brew.plugin.zsh (#6947)
add aliases for `brew pin` and `brew list --pinned`
---
plugins/brew/brew.plugin.zsh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh
index 6fb7f3453..60b81f8ec 100644
--- a/plugins/brew/brew.plugin.zsh
+++ b/plugins/brew/brew.plugin.zsh
@@ -1,4 +1,6 @@
+alias brewp='brew pin'
alias brews='brew list -1'
+alias brewsp='brew list --pinned'
alias bubo='brew update && brew outdated'
alias bubc='brew upgrade && brew cleanup'
alias bubu='bubo && bubc'
From 8ec0937653f30277361621191e8cee01b7fc089d Mon Sep 17 00:00:00 2001
From: Matthew Murphy
Date: Wed, 29 Aug 2018 14:55:23 -0400
Subject: [PATCH 258/644] Update golang.plugin.zsh (#6750)
add alias to cd to $GOPATH, $GOPATH/src, $GOPATH/bin
---
plugins/golang/golang.plugin.zsh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/plugins/golang/golang.plugin.zsh b/plugins/golang/golang.plugin.zsh
index 64c80e864..919c98629 100644
--- a/plugins/golang/golang.plugin.zsh
+++ b/plugins/golang/golang.plugin.zsh
@@ -188,6 +188,9 @@ alias gofa='go fmt ./...'
alias gog='go get'
alias goi='go install'
alias gol='go list'
+alias gop='cd $GOPATH'
+alias gopb='cd $GOPATH/bin'
+alias gops='cd $GOPATH/src'
alias gor='go run'
alias got='go test'
alias gov='go vet'
From e7c9bf8d669bd4ec0c63041e37adb17f3fc1b567 Mon Sep 17 00:00:00 2001
From: Vinod Damle
Date: Wed, 29 Aug 2018 14:56:30 -0400
Subject: [PATCH 259/644] kubectl: add alias for `kubectl cp` (#7068)
---
plugins/kubectl/kubectl.plugin.zsh | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh
index 492e6ff00..197ada37b 100644
--- a/plugins/kubectl/kubectl.plugin.zsh
+++ b/plugins/kubectl/kubectl.plugin.zsh
@@ -65,8 +65,11 @@ alias kru='kubectl rollout undo'
alias kl='kubectl logs'
alias klf='kubectl logs -f'
+# File copy
+alias kcp='kubectl cp'
+
# Node Management
alias kgno='kubectl get nodes'
alias keno='kubectl edit node'
alias kdno='kubectl describe node'
-alias kdelno='kubectl delete node'
+alias kdelno='kubectl delete node'
\ No newline at end of file
From 2b6434e8793a876e5465edd9c75819166878aba6 Mon Sep 17 00:00:00 2001
From: Konstantin Gribov
Date: Wed, 29 Aug 2018 21:57:02 +0300
Subject: [PATCH 260/644] Fixed `fwl` function in `firewalld` plugin when
`sources` used (#7011)
`firewall-cmd --get-active-zones` returns something like this:
```
dmz
sources: ipset:dmz-hosts
public
interfaces: eth0
```
if zone binding is based on source ips, so strings with `sources: ...` should be excluded along with `interfaces: ...` to get zones list.
---
plugins/firewalld/firewalld.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/firewalld/firewalld.plugin.zsh b/plugins/firewalld/firewalld.plugin.zsh
index bfbf6f48f..5b1090636 100644
--- a/plugins/firewalld/firewalld.plugin.zsh
+++ b/plugins/firewalld/firewalld.plugin.zsh
@@ -6,7 +6,7 @@ alias fwrp="sudo firewall-cmd --runtime-to-permanent"
function fwl () {
# converts output to zsh array ()
# @f flag split on new line
- zones=("${(@f)$(sudo firewall-cmd --get-active-zones | grep -v interfaces)}")
+ zones=("${(@f)$(sudo firewall-cmd --get-active-zones | grep -v 'interfaces\|sources')}")
for i in $zones; do
sudo firewall-cmd --zone $i --list-all
From 84aa274604f33bf440df81fbe73543b072018d47 Mon Sep 17 00:00:00 2001
From: Janosch Schwalm
Date: Wed, 29 Aug 2018 20:59:27 +0200
Subject: [PATCH 261/644] executing gradlew, when gradlew-file exists (#6485)
---
plugins/gradle/gradle.plugin.zsh | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/plugins/gradle/gradle.plugin.zsh b/plugins/gradle/gradle.plugin.zsh
index c7047552d..8df62c2e2 100644
--- a/plugins/gradle/gradle.plugin.zsh
+++ b/plugins/gradle/gradle.plugin.zsh
@@ -1,6 +1,18 @@
##############################################################################
# A descriptive listing of core Gradle commands
############################################################################
+
+gradle-or-gradlew() {
+ if [ -f ./gradlew ] ; then
+ echo "executing gradlew instead of gradle";
+ ./gradlew "$@";
+ else
+ gradle "$@";
+ fi
+}
+
+alias gradle=gradle-or-gradlew;
+
function _gradle_core_commands() {
local ret=1 state
_arguments ':subcommand:->subcommand' && ret=0
From 3cd8eaf9bb1382ff4f35e614904a4f16553e0dcb Mon Sep 17 00:00:00 2001
From: Janosch Schwalm
Date: Wed, 29 Aug 2018 21:00:06 +0200
Subject: [PATCH 262/644] execute mvnw with "mvn" when mvnw-file is present
(#6484)
* executing mvnw, when mvnw-file exists
indriectly enable autocompletion for mvnw
* inform the user :)
---
plugins/mvn/mvn.plugin.zsh | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/plugins/mvn/mvn.plugin.zsh b/plugins/mvn/mvn.plugin.zsh
index d422ba5c7..74583c6dc 100644
--- a/plugins/mvn/mvn.plugin.zsh
+++ b/plugins/mvn/mvn.plugin.zsh
@@ -20,6 +20,15 @@ BACKGROUND_CYAN=$(tput setab 6)
BACKGROUND_WHITE=$(tput setab 7)
RESET_FORMATTING=$(tput sgr0)
+# if found a ./mvnw file execute it otherwise execute orignal mvn
+mvn-or-mvnw() {
+ if [ -f ./mvnw ] ; then
+ echo "executing mvnw instead of mvn"
+ ./mvnw "$@";
+ else
+ mvn "$@";
+ fi
+}
# Wrapper function for Maven's mvn command.
mvn-color() {
@@ -40,6 +49,9 @@ mvn-color() {
# Override the mvn command with the colorized one.
#alias mvn="mvn-color"
+# either use orignal mvn oder the mvn wrapper
+alias mvn="mvn-or-mvnw"
+
# aliases
alias mvncie='mvn clean install eclipse:eclipse'
alias mvnci='mvn clean install'
@@ -276,3 +288,5 @@ function listMavenCompletions {
}
compctl -K listMavenCompletions mvn
+compctl -K listMavenCompletions mvn-or-mvnw
+
From 285b540167a665bbe45da780f3fb35da2d4aea60 Mon Sep 17 00:00:00 2001
From: Balint Gyapjas
Date: Wed, 29 Aug 2018 21:00:35 +0200
Subject: [PATCH 263/644] vi-mode show indicator on zle-line-init and SIGWINCH
(#6449)
---
plugins/vi-mode/vi-mode.plugin.zsh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh
index 82a2f3040..a1889d451 100644
--- a/plugins/vi-mode/vi-mode.plugin.zsh
+++ b/plugins/vi-mode/vi-mode.plugin.zsh
@@ -4,9 +4,15 @@ function zle-keymap-select() {
zle -R
}
+# Ensures that MODE_INDITCATOR is displayed on terminal start up.
+function zle-line-init() {
+ zle reset-prompt
+}
+
# Ensure that the prompt is redrawn when the terminal size changes.
TRAPWINCH() {
zle && zle -R
+ zle reset-prompt
}
zle -N zle-keymap-select
From 143cc8f90158f39d8630f26e9b0865502a467c61 Mon Sep 17 00:00:00 2001
From: Nick Diego Yamane
Date: Wed, 29 Aug 2018 15:01:10 -0400
Subject: [PATCH 264/644] Fix rvm-prompt usage in fino* themes (#6477)
* theme/fino: Check rvm-prompt is installed before to try to use it
Signed-off-by: Nick Diego Yamane
* theme/fino-time: Check rvm-prompt is installed before to try to use it
Signed-off-by: Nick Diego Yamane
---
themes/fino-time.zsh-theme | 8 ++++++--
themes/fino.zsh-theme | 6 +++---
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/themes/fino-time.zsh-theme b/themes/fino-time.zsh-theme
index 9b1db3a08..c1a48d02a 100644
--- a/themes/fino-time.zsh-theme
+++ b/themes/fino-time.zsh-theme
@@ -25,12 +25,16 @@ function box_name {
}
-local rvm_ruby='‹$(rvm-prompt i v g)›%{$reset_color%}'
+rvm_ruby=''
+if type rvm-prompt &>/dev/null; then
+ rvm_ruby='using%{$FG[243]%}‹$(rvm-prompt i v g)›%{$reset_color%}'
+fi
+
local current_dir='${PWD/#$HOME/~}'
local git_info='$(git_prompt_info)'
-PROMPT="╭─%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(box_name)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}${current_dir}%{$reset_color%}${git_info} %{$FG[239]%}using%{$FG[243]%} ${rvm_ruby} %D - %*
+PROMPT="╭─%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(box_name)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}${current_dir}%{$reset_color%}${git_info} %{$FG[239]%}${rvm_ruby} %D - %*
╰─$(virtualenv_info)$(prompt_char) "
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$FG[239]%}on%{$reset_color%} %{$fg[255]%}"
diff --git a/themes/fino.zsh-theme b/themes/fino.zsh-theme
index 6eec097f5..71ed6bbbc 100644
--- a/themes/fino.zsh-theme
+++ b/themes/fino.zsh-theme
@@ -22,10 +22,10 @@ function box_name {
local ruby_env=''
if which rvm-prompt &> /dev/null; then
- ruby_env=' ‹$(rvm-prompt i v g)›%{$reset_color%}'
+ ruby_env='using%{$FG[243]%} ‹$(rvm-prompt i v g)›%{$reset_color%}'
else
if which rbenv &> /dev/null; then
- ruby_env=' ‹$(rbenv version-name)›%{$reset_color%}'
+ ruby_env='using%{$FG[243]%} ‹$(rbenv version-name)›%{$reset_color%}'
fi
fi
@@ -34,7 +34,7 @@ local git_info='$(git_prompt_info)'
local prompt_char='$(prompt_char)'
-PROMPT="╭─%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(box_name)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}${current_dir}%{$reset_color%}${git_info} %{$FG[239]%}using%{$FG[243]%}${ruby_env}
+PROMPT="╭─%{$FG[040]%}%n%{$reset_color%} %{$FG[239]%}at%{$reset_color%} %{$FG[033]%}$(box_name)%{$reset_color%} %{$FG[239]%}in%{$reset_color%} %{$terminfo[bold]$FG[226]%}${current_dir}%{$reset_color%}${git_info} %{$FG[239]%}${ruby_env}
╰─${prompt_char}%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$FG[239]%}on%{$reset_color%} %{$fg[255]%}"
From 94df5038632df5453ffd0ff4b6367399bc5fe7e8 Mon Sep 17 00:00:00 2001
From: Serhii Kuts
Date: Wed, 29 Aug 2018 22:01:40 +0300
Subject: [PATCH 265/644] Update kubectl.plugin.zsh (#6636)
---
plugins/kubectl/kubectl.plugin.zsh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh
index 197ada37b..680ec1a8c 100644
--- a/plugins/kubectl/kubectl.plugin.zsh
+++ b/plugins/kubectl/kubectl.plugin.zsh
@@ -31,6 +31,9 @@ alias kep='kubectl edit pods'
alias kdp='kubectl describe pods'
alias kdelp='kubectl delete pods'
+# get pod by label: kgpl "app=myapp" -n myns
+alias kgpl='function _kgpl(){ label=$1; shift; kgp -l $label $*; };_kgpl'
+
# Service management.
alias kgs='kubectl get svc'
alias kes='kubectl edit svc'
@@ -61,6 +64,9 @@ alias kgrs='kubectl get rs'
alias krh='kubectl rollout history'
alias kru='kubectl rollout undo'
+# Port forwarding
+alias kpf="k port-forward"
+
# Logs
alias kl='kubectl logs'
alias klf='kubectl logs -f'
From dc8811f81779d0e06ac2cd1372a586576e2c8aef Mon Sep 17 00:00:00 2001
From: Fadi Hadzh
Date: Thu, 30 Aug 2018 00:06:11 +0300
Subject: [PATCH 266/644] fix nmap vuln category name (#7044)
---
plugins/nmap/nmap.plugin.zsh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/nmap/nmap.plugin.zsh b/plugins/nmap/nmap.plugin.zsh
index 82c275f23..8c691bdaa 100644
--- a/plugins/nmap/nmap.plugin.zsh
+++ b/plugins/nmap/nmap.plugin.zsh
@@ -13,7 +13,7 @@
# -O - enable OS detection
# -sA - TCP ACK scan
# -F - fast scan
-# --script=vulscan - also access vulnerabilities in target
+# --script=vuln - also access vulnerabilities in target
alias nmap_open_ports="nmap --open"
alias nmap_list_interfaces="nmap --iflist"
@@ -24,7 +24,7 @@ alias nmap_check_for_firewall="sudo nmap -sA -p1-65535 -v -T4"
alias nmap_ping_through_firewall="nmap -PS -PA"
alias nmap_fast="nmap -F -T5 --version-light --top-ports 300"
alias nmap_detect_versions="sudo nmap -sV -p1-65535 -O --osscan-guess -T4 -Pn"
-alias nmap_check_for_vulns="nmap --script=vulscan"
+alias nmap_check_for_vulns="nmap --script=vuln"
alias nmap_full_udp="sudo nmap -sS -sU -T4 -A -v -PE -PS22,25,80 -PA21,23,80,443,3389 "
alias nmap_traceroute="sudo nmap -sP -PE -PS22,25,80 -PA21,23,80,3389 -PU -PO --traceroute "
alias nmap_full_with_scripts="sudo nmap -sS -sU -T4 -A -v -PE -PP -PS21,22,23,25,80,113,31339 -PA80,113,443,10042 -PO --script all "
From 9f1ffc64f1cc9b82ee38b5a947033aa77e16e178 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Fri, 31 Aug 2018 21:18:18 +0200
Subject: [PATCH 267/644] vi-mode: reset-prompt if zle is active (TRAPWINCH)
Fixes zle errors when resizing:
TRAPWINCH:zle: widgets can only be called when ZLE is active
---
plugins/vi-mode/vi-mode.plugin.zsh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh
index a1889d451..6cadd166a 100644
--- a/plugins/vi-mode/vi-mode.plugin.zsh
+++ b/plugins/vi-mode/vi-mode.plugin.zsh
@@ -11,8 +11,7 @@ function zle-line-init() {
# Ensure that the prompt is redrawn when the terminal size changes.
TRAPWINCH() {
- zle && zle -R
- zle reset-prompt
+ zle && { zle -R; zle reset-prompt }
}
zle -N zle-keymap-select
From 0853b74fef0fa3a05af7487ff9b15a7f714bb037 Mon Sep 17 00:00:00 2001
From: Ross Lafferty
Date: Sat, 1 Sep 2018 07:37:05 -0400
Subject: [PATCH 268/644] jump: fix printf path output (#7105)
Using the `jump` plugin, using the `marks` command will yield this output:
```
$ marks
desktop marks:printf:5: bad option: ->
dotfiles marks:printf:5: bad option: ->
home marks:printf:5: bad option: ->
```
the `marks` function uses `printf` with `->` and I believe `-` is used by `printf` for left-justification. changing this to `-- "->"` seems to render the appropriate output.
```
desktop -> /Users/uname/Desktop
dotfiles -> /Users/uname/.dotfiles
home -> /Users/uname
```
---
plugins/jump/jump.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/jump/jump.plugin.zsh b/plugins/jump/jump.plugin.zsh
index 86d9553a2..168dfaba2 100644
--- a/plugins/jump/jump.plugin.zsh
+++ b/plugins/jump/jump.plugin.zsh
@@ -32,7 +32,7 @@ marks() {
local markname="$fg[cyan]${link:t}$reset_color"
local markpath="$fg[blue]$(readlink $link)$reset_color"
printf "%s\t" $markname
- printf "-> %s \t\n" $markpath
+ printf -- "-> %s \t\n" $markpath
done
}
From e41699044277c914a280bc9800b45662b01771f1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Cristian=20M=C4=83gheru=C8=99an-Stanciu=20=40magheru=5Fsan?=
Date: Mon, 3 Sep 2018 17:09:31 +0200
Subject: [PATCH 269/644] fasd: drop-in replace the autojump j alias (#3860)
---
plugins/fasd/fasd.plugin.zsh | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/fasd/fasd.plugin.zsh b/plugins/fasd/fasd.plugin.zsh
index 45d10858f..eaaa96f42 100644
--- a/plugins/fasd/fasd.plugin.zsh
+++ b/plugins/fasd/fasd.plugin.zsh
@@ -8,4 +8,5 @@ if [ $commands[fasd] ]; then # check if fasd is installed
alias v="f -e \"$EDITOR\""
alias o='a -e open_command'
+ alias j='zz'
fi
From 69e637c35578305e19dbfc520e65c514180db6ef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Mon, 3 Sep 2018 17:13:18 +0200
Subject: [PATCH 270/644] fasd: use xdg-open in o alias back again
Fixes #6314
---
plugins/fasd/fasd.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/fasd/fasd.plugin.zsh b/plugins/fasd/fasd.plugin.zsh
index eaaa96f42..36a0428a7 100644
--- a/plugins/fasd/fasd.plugin.zsh
+++ b/plugins/fasd/fasd.plugin.zsh
@@ -7,6 +7,6 @@ if [ $commands[fasd] ]; then # check if fasd is installed
unset fasd_cache
alias v="f -e \"$EDITOR\""
- alias o='a -e open_command'
+ alias o='a -e xdg-open'
alias j='zz'
fi
From 86542dcd8627d0e9a4b1acd8c01a9cdae4697698 Mon Sep 17 00:00:00 2001
From: Maxime Brunet <32458727+maxbrunet@users.noreply.github.com>
Date: Tue, 4 Sep 2018 16:25:45 -0400
Subject: [PATCH 271/644] Add fzf plugin (#6910)
---
plugins/fzf/README.md | 19 +++++++++++++++
plugins/fzf/fzf.plugin.zsh | 50 ++++++++++++++++++++++++++++++++++++++
2 files changed, 69 insertions(+)
create mode 100644 plugins/fzf/README.md
create mode 100644 plugins/fzf/fzf.plugin.zsh
diff --git a/plugins/fzf/README.md b/plugins/fzf/README.md
new file mode 100644
index 000000000..b3a434347
--- /dev/null
+++ b/plugins/fzf/README.md
@@ -0,0 +1,19 @@
+# fzf
+
+This plugin enables [junegunn's fzf](https://github.com/junegunn/fzf) fuzzy auto-completion and key bindings
+
+```zsh
+# Set fzf installation directory path
+export FZF_BASE=/path/to/fzf/install/dir
+
+# Uncomment the following line to disable fuzzy completion
+# export DISABLE_FZF_AUTO_COMPLETION="true"
+
+# Uncomment the following line to disable key bindings (CTRL-T, CTRL-R, ALT-C)
+# export DISABLE_FZF_KEY_BINDINGS="true"
+
+plugins=(
+ ...
+ fzf
+)
+```
diff --git a/plugins/fzf/fzf.plugin.zsh b/plugins/fzf/fzf.plugin.zsh
new file mode 100644
index 000000000..b28b97994
--- /dev/null
+++ b/plugins/fzf/fzf.plugin.zsh
@@ -0,0 +1,50 @@
+test -d "${FZF_BASE}" && fzf_base="${FZF_BASE}"
+
+if [[ -z "${fzf_base}" ]]; then
+ fzfdirs=(
+ "${HOME}/.fzf"
+ "/usr/local/opt/fzf"
+ "/usr/share/fzf"
+ )
+ for dir in ${fzfdirs}; do
+ if [[ -d "${dir}" ]]; then
+ fzf_base="${dir}"
+ break
+ fi
+ done
+
+ if [[ -z "${fzf_base}" ]]; then
+ if (( ${+commands[brew]} )) && dir="$(brew --prefix fzf 2>/dev/null)"; then
+ if [[ -d "${dir}" ]]; then
+ fzf_base="${dir}"
+ fi
+ fi
+ fi
+fi
+
+if [[ -n "${fzf_base}" ]]; then
+
+ # Setup fzf
+ # ---------
+ if [[ ! "$PATH" == *$fzf_base/bin* ]]; then
+ export PATH="$PATH:$fzf_base/bin"
+ fi
+
+ # Auto-completion
+ # ---------------
+ if [[ ! "$DISABLE_FZF_AUTO_COMPLETION" == "true" ]]; then
+ [[ $- == *i* ]] && source "$fzf_base/shell/completion.zsh" 2> /dev/null
+ fi
+
+ # Key bindings
+ # ------------
+ if [[ ! "$DISABLE_FZF_KEY_BINDINGS" == "true" ]]; then
+ source "$fzf_base/shell/key-bindings.zsh"
+ fi
+
+else
+ print "[oh-my-zsh] fzf plugin: Cannot find fzf installation directory.\n"\
+ "Please add \`export FZF_BASE=/path/to/fzf/install/dir\` to your .zshrc" >&2
+fi
+
+unset fzf_base
From f73c29a8203f8df539a72d28763bc5f521b775c0 Mon Sep 17 00:00:00 2001
From: Michele Bologna
Date: Thu, 6 Sep 2018 20:34:37 +0200
Subject: [PATCH 272/644] Feat: add Salt completion plugin (#7031)
* Feat: add Salt completion
* Docs: add README
---
plugins/salt/README.md | 5 +
plugins/salt/_salt | 279 +++++++++++++++++++++++++++++++++++++++++
2 files changed, 284 insertions(+)
create mode 100644 plugins/salt/README.md
create mode 100644 plugins/salt/_salt
diff --git a/plugins/salt/README.md b/plugins/salt/README.md
new file mode 100644
index 000000000..3d224cce7
--- /dev/null
+++ b/plugins/salt/README.md
@@ -0,0 +1,5 @@
+## Salt autocomplete plugin
+
+A copy of the completion script from the
+[salt](https://github.com/saltstack/salt/blob/develop/pkg/zsh_completion.zsh)
+git repo.
diff --git a/plugins/salt/_salt b/plugins/salt/_salt
new file mode 100644
index 000000000..10b782af4
--- /dev/null
+++ b/plugins/salt/_salt
@@ -0,0 +1,279 @@
+#compdef salt salt-call salt-cp salt-run salt-key
+# The use-cache style is checked in a few places to allow caching minions, modules,
+# or the directory salt is installed in.
+# you can cache those three with:
+# zstyle ':completion:*:salt(|-cp|-call|-run|-key):*' use-cache true
+# and/or selectively:
+# zstyle ':completion::complete:salt-key:set-option-a-1:' use-cache false
+# zstyle ':completion::complete:salt(|-cp|-call):minions:' use-cache true
+# zstyle ':completion::complete:salt(|-call):modules:' use-cache true
+# zstyle ':completion::complete:salt(|-cp|-call|-run|-key):salt_dir:' use-cache true
+#
+# cache validation can be controled with the style cache-ttl.
+# it expects two arguments: number (days|hours|weeks|months)
+# to invalidate the minion cache after four days:
+# zstyle ':completion::complete:salt(|-cp|-call):minions:' cache-ttl 4 days
+
+
+local state line curcontext="$curcontext" salt_dir
+
+_modules(){
+ local _funcs expl curcontext=${curcontext%:*}:modules
+
+ if ! zstyle -m ":completion:$curcontext:" cache-policy '*'; then
+ zstyle ":completion:$curcontext:" cache-policy _salt_caching_policy
+ fi
+
+ if _cache_invalid salt/modules || ! _retrieve_cache salt/modules; then
+ _funcs=( ${${(Q)${${(s. .)"$(_call_program salt-call-cmd salt-call --local --log-level error --out txt sys.list_functions)"}%%[],]##}#\[}:#local:} )
+ _store_cache salt/modules _funcs
+ fi
+
+ _wanted modules expl modules _multi_parts "$@" . _funcs
+}
+
+_runners(){
+ local _runs expl curcontext=${curcontext%:*}:runners
+
+ if ! zstyle -m ":completion:$curcontext:" cache-policy '*'; then
+ zstyle ":completion:$curcontext:" cache-policy _salt_caching_policy
+ fi
+
+ if _cache_invalid salt/runners || ! _retrieve_cache salt/runners; then
+ _runs=( ${${(Q)${${(s. .)"$(_call_program salt-call-cmd salt-call --local --log-level error --out txt sys.list_runner_functions)"}%%[],]##}#\[}:#local:} )
+ _store_cache salt/runners _runs
+ fi
+
+ _wanted modules expl runners _multi_parts "$@" . _runs
+}
+
+_minions(){
+ local type requested_type include_all key expl; typeset -A _peons
+
+ # when completing the minion argument for salt and salt-cp, set the argument section
+ # of the context to `minion' not `argument-1'
+ if [[ $service = salt(|-cp) ]]; then
+ curcontext=${curcontext%:*}:minions
+ fi
+
+ # only pass the argument accepted, unaccepted, rejected, denied or all to -t/-T
+ # the argument is used as part of an tag, accepted-minions, rejected-minions, etc.
+ # while un, acc, den, etc will work, you will possibly ignore user customized tags.
+ zparseopts -D -E 't+:=requested_type' 'T+:=include_all'
+
+ if ! zstyle -m ":completion:$curcontext:" cache-policy '*'; then
+ zstyle ":completion:$curcontext:" cache-policy _salt_caching_policy
+ fi
+
+ if _cache_invalid salt/minions || ! _retrieve_cache salt/minions; then
+ # it would be awesome if salt-key could prefix or suffix a word to denote
+ # the key's state. It would remove the need for this loop, calling salt-key N times.
+ for type in accepted unaccepted rejected denied; do
+ salt-key -l $type 2>/dev/null | while read -r key; do
+ [[ $key == *' Keys:' ]] && continue
+ _peons+=( "$key" $type )
+ done
+ done
+ _store_cache salt/minions _peons
+ fi
+
+ # if salt-key's --include-all option isn't on the line, ignore the -T options
+ (( words[(I)--include-all] )) || unset include_all
+
+ if (( requested_type[(I)all] )); then
+ requested_type=( -t accepted -t unaccepted -t rejected -t denied )
+ unset include_all
+ fi
+
+ for type in ${${requested_type:#-t}:-accepted} ${include_all:#-T}; do
+ _wanted $type-minions expl minion compadd "$@" -M 'r:|.=* r:|=*' ${(k)_peons[(R)$~type]}
+ done
+}
+
+(( $+functions[_salt_caching_policy] )) ||
+_salt_caching_policy() {
+ local oldp ttl d t
+ zstyle -a ":completion:$curcontext:" cache-ttl ttl
+
+ if (( $#ttl >= 2 )); then
+ [[ $ttl[1] == <-> ]] && integer t=$ttl[1]
+
+ case $ttl[2] in
+ seconds#)d=s;;
+ months#) d=M;;
+ weeks#) d=w;;
+ hours#) d=h;;
+ *) d=d;;
+ esac
+ fi
+
+ oldp=( "$1"(Nm${d:-d}+${t:-1}) )
+ (( $#oldp ))
+}
+
+local -a _{target,master,logging,minion}_options _{common,out}_opts _target_opt_pat
+_target_opt_pat=(
+ '(-[ELGNRCIS]|--(pcre|list|grain(|-pcre)|nodegroup|range|compound|pillar|ipcidr))'
+ '(-E --pcre -L --list -G --grain --grain-pcre -N --nodegroup -R --range -C --compound -I --pillar -S --ipcidr)'
+)
+
+_target_options=(
+ "$_target_opt_pat[2]"{-E,--pcre}'[use pcre regular expressions]:pcre:'
+ "$_target_opt_pat[2]"{-L,--list}'[take a comma or whitespace delimited list of servers.]:list:'
+ "$_target_opt_pat[2]"{-G,--grain}'[use a grain value to identify targets]:Grains:'
+ "$_target_opt_pat[2]--grain-pcre[use a grain value to identify targets.]:pcre:"
+ "$_target_opt_pat[2]"{-N,--nodegroup}'[use one of the predefined nodegroups to identify a list of targets.]:Nodegroup:'
+ "$_target_opt_pat[2]"{-R,--range}'[use a range expression to identify targets.]:Range:'
+ "$_target_opt_pat[2]"{-C,--compound}'[Use multiple targeting options.]:Compound:'
+ "$_target_opt_pat[2]"{-I,--pillar}'[use a pillar value to identify targets.]:Pillar:'
+ "$_target_opt_pat[2]"{-S,--ipcidr}'[Match based on Subnet (CIDR notation) or IPv4 address.]:Cidr:'
+)
+
+_common_opts=(
+ "--version[show program's version number and exit]"
+ "--versions-report[show program's dependencies version number and exit]"
+ '(-h --help)'{-h,--help}'[show this help message and exit]'
+ '(-c --config-dir)'{-c,--config-dir}'[Pass in an alternative configuration directory.(default: /etc/salt/)]:Config Directory:_files -/'
+ '(-t --timeout)'{-t,--timeout}'[Change the timeout for the running command; default=5]:Timeout (seconds):'
+)
+
+_master_options=(
+ '(-s --static)'{-s,--static}'[Return the data from minions as a group after they all return.]'
+ "--async[Run the salt command but don't wait for a reply]"
+ '(--state-output --state_output)'{--state-output,--state_output}'[Override the configured state_output value for minion output. Default: full]:Outputs:(full terse mixed changes)'
+ '--subset[Execute the routine on a random subset of the targeted minions]:Subset:'
+ '(-v --verbose)'{-v,--verbose}'[Turn on command verbosity, display jid and active job queries]'
+ '--hide-timeout[Hide minions that timeout]'
+ '(-b --batch --batch-size)'{-b,--batch,--batch-size}'[Execute the salt job in batch mode, pass number or percentage to batch.]:Batch Size:'
+ '(-a --auth --eauth --extrenal-auth)'{-a,--auth,--eauth,--external-auth}'[Specify an external authentication system to use.]:eauth:'
+ '(-T --make-token)'{-T,--make-token}'[Generate and save an authentication token for re-use.]'
+ '--return[Set an alternative return method.]:Returners:_path_files -W "$salt_dir/returners" -g "[^_]*.py(\:r)"'
+ '(-d --doc --documentation)'{-d,--doc,--documentation}'[Return the documentation for the specified module]'
+ '--args-separator[Set the special argument used as a delimiter between command arguments of compound commands.]:Arg separator:'
+)
+
+_minion_options=(
+ '--return[Set an alternative return method.]:Returners:_path_files -W "$salt_dir"/returners" -g "[^_]*.py(\:r)"'
+ '(-d --doc --documentation)'{-d,--doc,--documentation}'[Return the documentation for the specified module]'
+ '(-g --grains)'{-g,--grains}'[Return the information generated by the salt grains]'
+ {*-m,*--module-dirs}'[Specify an additional directory to pull modules from.]:Module Dirs:_files -/'
+ '--master[Specify the master to use.]:Master:'
+ '--local[Run salt-call locally, as if there was no master running.]'
+ '--file-root[Set this directory as the base file root.]:File Root:_files -/'
+ '--pillar-root[Set this directory as the base pillar root.]:Pillar Root:_files -/'
+ '--retcode-passthrough[Exit with the salt call retcode and not the salt binary retcode]'
+ '--id[Specify the minion id to use.]:Minion ID:'
+ '--skip-grains[Do not load grains.]'
+ '--refresh-grains-cache[Force a refresh of the grains cache]'
+)
+
+_runner_options=(
+ '--hard-crash[raise any original exception rather than exiting gracefully]'
+ '(-d --doc --documentation)'{-d,--doc,--documentation}'[Return the documentation for the specified module]'
+)
+
+_key_options=(
+ '(-u --user)'{-u+,--user=}'[specify user to run salt-key]:user:_users'
+ '--hard-crash[raise any original exception rather than exiting gracefully]'
+ '(-q --quiet)'{-q,--quiet}'[quiet mode]'
+ '(-y --yes)'{-y,--yes}'[assume yes]'
+ '--rotate-aes-key[prevents the master from refreshing the key session when keys are deleted or rejected]:boolean:(true false)'
+ '--gen-keys=[set a name to generate a keypair for use with salt]:key name'
+ '--gen-keys-dir=[set the directory to save the generated keypair]: : _directories'
+ '--keysize=[set the size for keypair]:key size'
+ '--gen-signature[create a signature file of the masters public-key]'
+ '--priv=[the private-key file to create a signature with]:private key:_files'
+ '--signature-path=[the path where the signature file should be written]: : _directories'
+ '--pub=[the public-key file to create a signature for]:public key:_files'
+ '--auto-create[auto-create a signing key-pair if it does not yet exist]'
+ '--include-all[include non-pending keys when accepting/rejecting]'
+ - '(set)'
+ {-l+,--list=}'[list public keys]:key type:((
+ preaccepted\:"unaccepted/unsigned keys" unaccepted\:"unaccepted/unsigned keys" un\:"unaccepted/unsigned keys"
+ accepted\:"accepted/signed keys" acc\:"accepted/signed keys"
+ rejected\:"rejected keys" rej\:"rejected keys"
+ den\:"denied keys" denied\:"denied keys" all
+ ))'
+ {-a+,--accept=}'[accept key]:key:_minions -t unaccepted -T rejected'
+ {-A,--accept-all}'[accept all keys]'
+ {-r+,--reject=}'[reject key]:key:_minions -t rejected -T accepted'
+ {-p+,--print=}'[print the specified public key]:key:_minions -t all'
+ {-P,--print-all}'[print all public keys]'
+ {-d+,--delete=}'[delete the specified public key]:key:_minions -t all'
+ {-D,--delete-all}'[delete all public keys]'
+ {-f+,--finger=}'[print the specified key'\''s fingerprint]:key:_minions -t all'
+ {-F,--finger-all}'[print the fingerprint of all keys]'
+)
+
+_logging_options=(
+ '(-l --log-level)'{-l,--log-level}'[Console logging log level.(default: warning)]:Log Level:(all garbage trace debug info warning error critical quiet)'
+ '--log-file[Log file path. Default: /var/log/salt/master.]:Log File:_files'
+ '--log-file-level=[Logfile logging log level.Default: warning]:Log Level:(all garbage trace debug info warning error critical quiet)'
+)
+
+_out_opts=(
+ '(--out --output)'{--out,--output}'[Print the output using the specified outputter.]:Outputters:_path_files -W "$salt_dir/output" -g "[^_]*.py(\:r)"'
+ '(--out-indent --output-indent)'{--out-indent,--output-indent}'[Print the output indented by the provided value in spaces.]:Number:'
+ '(--out-file --output-file)'{--out-file,--output-file}'[Write the output to the specified file]:Output File:_files'
+ '(--no-color --no-colour)'{--no-color,--no-colour}'[Disable all colored output]'
+ '(--force-color --force-colour)'{--force-color,--force-colour}'[Force colored output]'
+)
+
+_salt_comp(){
+ case "$service" in
+ salt)
+ _arguments -C \
+ "${words[(r)$_target_opt_pat[1]]+!}:minions:_minions" \
+ ':modules:_modules' \
+ "$_target_options[@]" \
+ "$_common_opts[@]" \
+ "$_master_options[@]" \
+ "$_logging_options[@]" \
+ "$_out_opts[@]"
+ ;;
+ salt-call)
+ _arguments -C \
+ ':modules:_modules' \
+ "$_minion_options[@]" \
+ "$_common_opts[@]" \
+ "$_logging_options[@]" \
+ "$_out_opts[@]"
+ ;;
+ salt-cp)
+ _arguments -C \
+ "${words[(r)$_target_opt_pat[1]]+!}:minions:_minions" \
+ "$_target_options[@]" \
+ "$_common_opts[@]" \
+ "$_logging_options[@]" \
+ ':Source File:_files' \
+ ':Destination File:_files'
+ ;;
+ salt-run)
+ _arguments -C \
+ ":runners:_runners" \
+ "$_runner_options[@]" \
+ "$_common_opts[@]" \
+ "$_logging_options[@]"
+ ;;
+ salt-key)
+ _arguments -C \
+ "$_key_options[@]" \
+ "${_common_opts[@]:#'-t --timeout\)'*}" \
+ "${_logging_options[@]:#'(-l --log-level)'*}"
+ ;;
+ esac
+}
+
+() {
+ local curcontext=${curcontext%:*}:salt_dir
+ if ! zstyle -m ":completion:$curcontext:" cache-policy '*'; then
+ zstyle ":completion:$curcontext:" cache-policy _salt_caching_policy
+ fi
+
+ if _cache_invalid salt/salt_dir || ! _retrieve_cache salt/salt_dir; then
+ salt_dir="${$(python2 -c 'import salt; print(salt.__file__);')%__init__*}"
+ _store_cache salt/salt_dir salt_dir
+ fi
+}
+
+_salt_comp "$@"
From bb908495deae22314c3355235133063087698796 Mon Sep 17 00:00:00 2001
From: Maxime Brunet <32458727+maxbrunet@users.noreply.github.com>
Date: Sat, 8 Sep 2018 09:31:13 -0400
Subject: [PATCH 273/644] fzf: Fix shell directory for archlinux package
(#7119)
* fzf: Fix shell directory for archlinux package
* fzf: Don't clutter PATH if fzf already available
* brew has it available via symlink in /usr/local/bin
* Fedora and Arch packages have it place in /usr/bin
* fzf: Fix archlinux guess by using release file
* fzf: unset leftover variables
---
plugins/fzf/fzf.plugin.zsh | 15 +++++++++++----
1 file changed, 11 insertions(+), 4 deletions(-)
diff --git a/plugins/fzf/fzf.plugin.zsh b/plugins/fzf/fzf.plugin.zsh
index b28b97994..27e2d9246 100644
--- a/plugins/fzf/fzf.plugin.zsh
+++ b/plugins/fzf/fzf.plugin.zsh
@@ -24,22 +24,29 @@ fi
if [[ -n "${fzf_base}" ]]; then
+ # Fix fzf shell directory for Archlinux package
+ if [[ ! -d "${fzf_base}/shell" ]] && [[ -f /etc/arch-release ]]; then
+ fzf_shell="${fzf_base}"
+ else
+ fzf_shell="${fzf_base}/shell"
+ fi
+
# Setup fzf
# ---------
- if [[ ! "$PATH" == *$fzf_base/bin* ]]; then
+ if ! (( ${+commands[fzf]} )) && [[ ! "$PATH" == *$fzf_base/bin* ]]; then
export PATH="$PATH:$fzf_base/bin"
fi
# Auto-completion
# ---------------
if [[ ! "$DISABLE_FZF_AUTO_COMPLETION" == "true" ]]; then
- [[ $- == *i* ]] && source "$fzf_base/shell/completion.zsh" 2> /dev/null
+ [[ $- == *i* ]] && source "${fzf_shell}/completion.zsh" 2> /dev/null
fi
# Key bindings
# ------------
if [[ ! "$DISABLE_FZF_KEY_BINDINGS" == "true" ]]; then
- source "$fzf_base/shell/key-bindings.zsh"
+ source "${fzf_shell}/key-bindings.zsh"
fi
else
@@ -47,4 +54,4 @@ else
"Please add \`export FZF_BASE=/path/to/fzf/install/dir\` to your .zshrc" >&2
fi
-unset fzf_base
+unset fzf_base fzf_shell dir fzfdirs
From f75d096c1a3863b84cb9788d0934babe4cd3c577 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sat, 8 Sep 2018 21:35:03 +0200
Subject: [PATCH 274/644] lib: small change to git_compare_version
Fixes #7118
---
lib/git.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/git.zsh b/lib/git.zsh
index b55b762d7..b92373153 100644
--- a/lib/git.zsh
+++ b/lib/git.zsh
@@ -185,7 +185,7 @@ function git_prompt_status() {
# Outputs -1, 0, or 1 if the installed version is less than, equal to, or
# greater than the input version, respectively.
function git_compare_version() {
- local INPUT_GIT_VERSION INSTALLED_GIT_VERSION
+ local INPUT_GIT_VERSION INSTALLED_GIT_VERSION i
INPUT_GIT_VERSION=(${(s/./)1})
INSTALLED_GIT_VERSION=($(command git --version 2>/dev/null))
INSTALLED_GIT_VERSION=(${(s/./)INSTALLED_GIT_VERSION[3]})
From 08a280863661dd44aad20d494187d9c4ba12fac9 Mon Sep 17 00:00:00 2001
From: Iulian Onofrei <6d0847b9@opayq.com>
Date: Sun, 9 Sep 2018 01:39:23 +0300
Subject: [PATCH 275/644] Fix incorrect error message when running bi without
having bundler installed (#7112)
---
plugins/bundler/bundler.plugin.zsh | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/plugins/bundler/bundler.plugin.zsh b/plugins/bundler/bundler.plugin.zsh
index b0b286af5..668e15d2f 100644
--- a/plugins/bundler/bundler.plugin.zsh
+++ b/plugins/bundler/bundler.plugin.zsh
@@ -54,8 +54,12 @@ done
## Functions
bundle_install() {
- if _bundler-installed && _within-bundled-project; then
- local bundler_version=`bundle --version | cut -d' ' -f3`
+ if ! _bundler-installed; then
+ echo "Bundler is not installed"
+ elif ! _within-bundled-project; then
+ echo "Can't 'bundle install' outside a bundled project"
+ else
+ local bundler_version=`bundle version | cut -d' ' -f3`
if [[ $bundler_version > '1.4.0' || $bundler_version = '1.4.0' ]]; then
if [[ "$OSTYPE" = (darwin|freebsd)* ]]
then
@@ -67,8 +71,6 @@ bundle_install() {
else
bundle install $@
fi
- else
- echo "Can't 'bundle install' outside a bundled project"
fi
}
From fe5fe81c8cfa66981c51d149a35fe545f2ef5016 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sun, 9 Sep 2018 19:50:23 +0200
Subject: [PATCH 276/644] lib: quote arguments to env_default
Fixes #7117
---
lib/misc.zsh | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/misc.zsh b/lib/misc.zsh
index 3052b7710..f45c10757 100644
--- a/lib/misc.zsh
+++ b/lib/misc.zsh
@@ -18,9 +18,8 @@ fi
## jobs
setopt long_list_jobs
-## pager
-env_default PAGER 'less'
-env_default LESS '-R'
+env_default 'PAGER' 'less'
+env_default 'LESS' '-R'
## super user alias
alias _='sudo'
From d4cae83152d17fd73514532d57fb75a878b651cc Mon Sep 17 00:00:00 2001
From: Matthieu PETIOT
Date: Mon, 10 Sep 2018 20:10:31 +0200
Subject: [PATCH 277/644] osx: add function to remove .DS_Store files (#7008)
rmdsstore removes .DS_Store files recursively in the current directory by default, or for the given directories.
---
plugins/osx/README.md | 33 +++++++++++++++++----------------
plugins/osx/osx.plugin.zsh | 7 ++++++-
2 files changed, 23 insertions(+), 17 deletions(-)
diff --git a/plugins/osx/README.md b/plugins/osx/README.md
index d3a8f94df..7c75c65f5 100644
--- a/plugins/osx/README.md
+++ b/plugins/osx/README.md
@@ -42,19 +42,20 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
## Commands
-| Command | Description |
-| :-------------- | :----------------------------------------------- |
-| `tab` | Open the current directory in a new tab |
-| `split_tab` | Split the current terminal tab horizontally |
-| `vsplit_tab` | Split the current terminal tab vertically |
-| `ofd` | Open the current directory in a Finder window |
-| `pfd` | Return the path of the frontmost Finder window |
-| `pfs` | Return the current Finder selection |
-| `cdf` | `cd` to the current Finder directory |
-| `pushdf` | `pushd` to the current Finder directory |
-| `quick-look` | Quick-Look a specified file |
-| `man-preview` | Open a specified man page in Preview app |
-| `showfiles` | Show hidden files |
-| `hidefiles` | Hide the hidden files |
-| `itunes` | Control iTunes. User `itunes -h` for usage details |
-| `spotify` | Control Spotify and search by artist, album, track and etc.|
+| Command | Description |
+| :-------------- | :-------------------------------------------------- |
+| `tab` | Open the current directory in a new tab |
+| `split_tab` | Split the current terminal tab horizontally |
+| `vsplit_tab` | Split the current terminal tab vertically |
+| `ofd` | Open the current directory in a Finder window |
+| `pfd` | Return the path of the frontmost Finder window |
+| `pfs` | Return the current Finder selection |
+| `cdf` | `cd` to the current Finder directory |
+| `pushdf` | `pushd` to the current Finder directory |
+| `quick-look` | Quick-Look a specified file |
+| `man-preview` | Open a specified man page in Preview app |
+| `showfiles` | Show hidden files |
+| `hidefiles` | Hide the hidden files |
+| `itunes` | Control iTunes. User `itunes -h` for usage details |
+| `spotify` | Control Spotify and search by artist, album, track… |
+| `rmdsstore` | Remove .DS\_Store files recursively in a directory |
diff --git a/plugins/osx/osx.plugin.zsh b/plugins/osx/osx.plugin.zsh
index d99cf0b1e..6a4b6eec4 100644
--- a/plugins/osx/osx.plugin.zsh
+++ b/plugins/osx/osx.plugin.zsh
@@ -209,7 +209,7 @@ if [[ ! -z "$playlist" ]]; then
opt="play"
else
opt="stop"
- fi
+ fi
else
opt="set allPlaylists to (get name of every playlist)"
fi
@@ -282,3 +282,8 @@ source ${ZSH}/plugins/osx/spotify
# Show/hide hidden files in the Finder
alias showfiles="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder"
alias hidefiles="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder"
+
+# Remove .DS_Store files recursively in a directory, default .
+rmdsstore() {
+ find "${@:-.}" -type f -name .DS_Store -delete
+}
From 1487a2ad844bbdff24e1db1cfb086138f477c7e9 Mon Sep 17 00:00:00 2001
From: Garth Mortensen
Date: Tue, 11 Sep 2018 12:22:55 -0600
Subject: [PATCH 278/644] urltools: add readme (#7126)
---
plugins/urltools/README.md | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
create mode 100644 plugins/urltools/README.md
diff --git a/plugins/urltools/README.md b/plugins/urltools/README.md
new file mode 100644
index 000000000..548301c72
--- /dev/null
+++ b/plugins/urltools/README.md
@@ -0,0 +1,29 @@
+# URLTools plugin
+
+This plugin provides two aliases to URL-encode and URL-decode strings.
+
+To start using it, add the `urltools` plugin to your plugins array in `~/.zshrc`:
+
+```zsh
+plugins=(... urltools)
+```
+
+Original author: [Ian Chesal](https://github.com/ianchesal)
+Original idea and aliases: [Ruslan Spivak](https://ruslanspivak.wordpress.com/2010/06/02/urlencode-and-urldecode-from-a-command-line/)
+
+## Commands
+
+| Command | Description |
+| :---------- | :--------------------------- |
+| `urlencode` | URL-encodes the given string |
+| `urldecode` | URL-decodes the given string |
+
+## Examples
+
+```zsh
+urlencode 'https://github.com/robbyrussell/oh-my-zsh/search?q=urltools&type=Code'
+# returns https%3A%2F%2Fgithub.com%2Frobbyrussell%2Foh-my-zsh%2Fsearch%3Fq%3Durltools%26type%3DCode
+
+urldecode 'https%3A%2F%2Fgithub.com%2Frobbyrussell%2Foh-my-zsh%2Fsearch%3Fq%3Durltools%26type%3DCode'
+# returns https://github.com/robbyrussell/oh-my-zsh/search?q=urltools&type=Code
+```
From 3d2542f41b8de36877b419f6e74e954d4db06a97 Mon Sep 17 00:00:00 2001
From: Poyoman
Date: Wed, 12 Sep 2018 15:52:42 +0200
Subject: [PATCH 279/644] git: add pull rebase --autostash aliases (#6791)
---
plugins/git/git.plugin.zsh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index 916866ff5..e6e7125f7 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -248,6 +248,8 @@ alias gunignore='git update-index --no-assume-unchanged'
alias gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'
alias gup='git pull --rebase'
alias gupv='git pull --rebase -v'
+alias gupa='git pull --rebase --autostash'
+alias gupav='git pull --rebase --autostash -v'
alias glum='git pull upstream master'
alias gwch='git whatchanged -p --abbrev-commit --pretty=medium'
From 69ba6e435970546cd6612941ba0569bbe6847bdb Mon Sep 17 00:00:00 2001
From: Gant Laborde
Date: Wed, 12 Sep 2018 16:28:59 +0200
Subject: [PATCH 280/644] git: add alias to `git stash --all` (#5511)
Stash tracked, ignored and untracked files. Leaves the working directory absolutely clean.
---
plugins/git/git.plugin.zsh | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index e6e7125f7..2efb4b881 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -239,6 +239,7 @@ alias gstd='git stash drop'
alias gstl='git stash list'
alias gstp='git stash pop'
alias gsts='git stash show --text'
+alias gstall='git stash --all'
alias gsu='git submodule update'
alias gts='git tag -s'
From d5f0a0a413146761bfee5f2a206c68cdb577159f Mon Sep 17 00:00:00 2001
From: "Jefferson F. Pires"
Date: Wed, 12 Sep 2018 11:57:48 -0300
Subject: [PATCH 281/644] git: add glols alias for glol --stat (#5871)
---
plugins/git/git.plugin.zsh | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index 2efb4b881..3a549be3e 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -183,6 +183,7 @@ alias glgga='git log --graph --decorate --all'
alias glgm='git log --graph --max-count=10'
alias glo='git log --oneline --decorate'
alias glol="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"
+alias glols="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --stat"
alias glod="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'"
alias glods="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' --date=short"
alias glola="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all"
From bf05bb3a1b95768be4e154b0269297ad3724d1dc Mon Sep 17 00:00:00 2001
From: Garth Mortensen
Date: Wed, 12 Sep 2018 10:13:13 -0600
Subject: [PATCH 282/644] dash: update dash bundle identifier (#7127)
---
plugins/dash/dash.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/dash/dash.plugin.zsh b/plugins/dash/dash.plugin.zsh
index 5d0ec9a97..b00d4877e 100644
--- a/plugins/dash/dash.plugin.zsh
+++ b/plugins/dash/dash.plugin.zsh
@@ -11,7 +11,7 @@ _dash() {
# Use defaults to get the array of docsets from preferences
# Have to smash it into one big line so that each docset is an element of
# our DOCSETS array
- DOCSETS=("${(@f)$(defaults read com.kapeli.dash docsets | tr -d '\n' | grep -oE '\{.*?\}')}")
+ DOCSETS=("${(@f)$(defaults read com.kapeli.dashdoc docsets | tr -d '\n' | grep -oE '\{.*?\}')}")
# remove all newlines since defaults prints so pretty like
# Now get each docset and output each on their own line
From a3afeca3ebb613d5290c481a9766e11d95f3d9bb Mon Sep 17 00:00:00 2001
From: Simen Bekkhus
Date: Wed, 12 Sep 2018 18:38:21 +0200
Subject: [PATCH 283/644] git: add gbD alias to force-delete branch (#5844)
---
plugins/git/git.plugin.zsh | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index 3a549be3e..a65826852 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -51,6 +51,7 @@ alias gb='git branch'
alias gba='git branch -a'
alias gbd='git branch -d'
alias gbda='git branch --no-color --merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 git branch -d'
+alias gbD='git branch -D'
alias gbl='git blame -b -w'
alias gbnm='git branch --no-merged'
alias gbr='git branch --remote'
From 0db7da0cd5c72611e8f9bdf184bafe15f9f09668 Mon Sep 17 00:00:00 2001
From: Yago Nobre
Date: Wed, 12 Sep 2018 14:05:57 -0300
Subject: [PATCH 284/644] git: add push force aliases (#6297)
* gpf to --force-with-lease
* gpf! to --force
---
plugins/git/git.plugin.zsh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index a65826852..1d548d12d 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -202,6 +202,8 @@ alias gma='git merge --abort'
alias gp='git push'
alias gpd='git push --dry-run'
+alias gpf='git push --force-with-lease'
+alias gpf!='git push --force'
alias gpoat='git push origin --all && git push origin --tags'
compdef _git gpoat=git-push
alias gpu='git push upstream'
From 5ee93f4f1542123413e9ff9a3b79394937e85881 Mon Sep 17 00:00:00 2001
From: Luis Ferrer-Labarca
Date: Wed, 12 Sep 2018 13:08:12 -0400
Subject: [PATCH 285/644] git: add git rm aliases (#5433)
* grm for 'git rm'
* grmc for 'git rm --cached'
---
plugins/git/git.plugin.zsh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index 1d548d12d..16bf9e0db 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -220,6 +220,8 @@ alias grbm='git rebase master'
alias grbs='git rebase --skip'
alias grh='git reset'
alias grhh='git reset --hard'
+alias grm='git rm'
+alias grmc='git rm --cached'
alias grmv='git remote rename'
alias grrm='git remote remove'
alias grset='git remote set-url'
From 509a5549008c178e982bc8f728a07a2e2dbc58a9 Mon Sep 17 00:00:00 2001
From: Max Gautier
Date: Wed, 12 Sep 2018 19:35:10 +0200
Subject: [PATCH 286/644] git: use color auto for ref names in git log (#5729)
Allow the ref names to have differents colors if they are remote refs
or local refs, and another color for HEAD
(use the same coloring scheme as --decorate option)
---
plugins/git/git.plugin.zsh | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh
index 16bf9e0db..45a706173 100644
--- a/plugins/git/git.plugin.zsh
+++ b/plugins/git/git.plugin.zsh
@@ -183,11 +183,11 @@ alias glgg='git log --graph'
alias glgga='git log --graph --decorate --all'
alias glgm='git log --graph --max-count=10'
alias glo='git log --oneline --decorate'
-alias glol="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"
-alias glols="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --stat"
-alias glod="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'"
-alias glods="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' --date=short"
-alias glola="git log --graph --pretty='%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all"
+alias glol="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset'"
+alias glols="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --stat"
+alias glod="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset'"
+alias glods="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%ad) %C(bold blue)<%an>%Creset' --date=short"
+alias glola="git log --graph --pretty='%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --all"
alias glog='git log --oneline --decorate --graph'
alias gloga='git log --oneline --decorate --graph --all'
alias glp="_git_log_prettily"
From 16bfd6fd7f5ef50d80657862b2331d37956cbd60 Mon Sep 17 00:00:00 2001
From: Erik
Date: Wed, 12 Sep 2018 16:56:18 -0400
Subject: [PATCH 287/644] react-native: add aliases for newer iPhones (#7134)
Added aliases for iPhone 7, 7 Plus, 8, 8 Plus, SE, and X
---
plugins/react-native/react-native.plugin.zsh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/plugins/react-native/react-native.plugin.zsh b/plugins/react-native/react-native.plugin.zsh
index 0566941a1..09c137264 100644
--- a/plugins/react-native/react-native.plugin.zsh
+++ b/plugins/react-native/react-native.plugin.zsh
@@ -9,6 +9,12 @@ alias rnios5='react-native run-ios --simulator "iPhone 5"'
alias rnios5s='react-native run-ios --simulator "iPhone 5s"'
alias rnios6='react-native run-ios --simulator "iPhone 6"'
alias rnios6s='react-native run-ios --simulator "iPhone 6s"'
+alias rnios7='react-native run-ios --simulator "iPhone 7"'
+alias rnios7p='react-native run-ios --simulator "iPhone 7 Plus"'
+alias rnios8='react-native run-ios --simulator "iPhone 8"'
+alias rnios8p='react-native run-ios --simulator "iPhone 8 Plus"'
+alias rniosse='react-native run-ios --simulator "iPhone SE"'
+alias rniosx='react-native run-ios --simulator "iPhone X"'
alias rnland='react-native log-android'
alias rnlios='react-native log-ios'
From d77d636b4c08f45d0784f3f9f901fbef754ae762 Mon Sep 17 00:00:00 2001
From: Ivan Eisenberg
Date: Thu, 13 Sep 2018 14:41:26 -0500
Subject: [PATCH 288/644] git-flow: add "gflfp" alias for feature publish
(#6350)
- Add `gflfp` as an alias for `git flow feature publish`
- Update README.md documentation
---
plugins/git-flow/README.md | 35 ++++++++++++++--------------
plugins/git-flow/git-flow.plugin.zsh | 1 +
2 files changed, 19 insertions(+), 17 deletions(-)
diff --git a/plugins/git-flow/README.md b/plugins/git-flow/README.md
index f37f418db..5d8049e3b 100644
--- a/plugins/git-flow/README.md
+++ b/plugins/git-flow/README.md
@@ -10,22 +10,23 @@ plugins=(... git-flow)
## Aliases
-More information about `git-flow` commands:
+More information about `git-flow` commands:
https://github.com/nvie/gitflow/wiki/Command-Line-Arguments
-| Alias | Command | Description |
-|---------|---------------------------|----------------------------------------|
-| `gfl` | `git flow` | Git-Flow command |
-| `gfli` | `git flow init` | Initialize git-flow repository |
-| `gcd` | `git checkout develop` | Check out develop branch |
-| `gch` | `git checkout hotfix` | Check out hotfix branch |
-| `gcr` | `git checkout release` | Check out release branch |
-| `gflf` | `git flow feature` | List existing feature branches |
-| `gflh` | `git flow hotfix` | List existing hotfix branches |
-| `gflr` | `git flow release` | List existing release branches |
-| `gflfs` | `git flow feature start` | Start a new feature: `gflfs ` |
-| `gflhs` | `git flow hotfix start` | Start a new hotfix: `gflhs ` |
-| `gflrs` | `git flow release start` | Start a new release: `gflrs ` |
-| `gflff` | `git flow feature finish` | Finish feature: `gflff ` |
-| `gflhf` | `git flow hotfix finish` | Finish hotfix: `gflhf ` |
-| `gflrf` | `git flow release finish` | Finish release: `gflrf ` |
+| Alias | Command | Description |
+|---------|----------------------------|----------------------------------------|
+| `gfl` | `git flow` | Git-Flow command |
+| `gfli` | `git flow init` | Initialize git-flow repository |
+| `gcd` | `git checkout develop` | Check out develop branch |
+| `gch` | `git checkout hotfix` | Check out hotfix branch |
+| `gcr` | `git checkout release` | Check out release branch |
+| `gflf` | `git flow feature` | List existing feature branches |
+| `gflh` | `git flow hotfix` | List existing hotfix branches |
+| `gflr` | `git flow release` | List existing release branches |
+| `gflfs` | `git flow feature start` | Start a new feature: `gflfs ` |
+| `gflhs` | `git flow hotfix start` | Start a new hotfix: `gflhs ` |
+| `gflrs` | `git flow release start` | Start a new release: `gflrs ` |
+| `gflff` | `git flow feature finish` | Finish feature: `gflff ` |
+| `gflfp` | `git flow feature publish` | Publish feature: `gflfp ` |
+| `gflhf` | `git flow hotfix finish` | Finish hotfix: `gflhf ` |
+| `gflrf` | `git flow release finish` | Finish release: `gflrf ` |
diff --git a/plugins/git-flow/git-flow.plugin.zsh b/plugins/git-flow/git-flow.plugin.zsh
index 5f5e4aa73..eab969d8a 100644
--- a/plugins/git-flow/git-flow.plugin.zsh
+++ b/plugins/git-flow/git-flow.plugin.zsh
@@ -33,6 +33,7 @@ alias gflfs='git flow feature start'
alias gflhs='git flow hotfix start'
alias gflrs='git flow release start'
alias gflff='git flow feature finish'
+alias gflfp='git flow feature publish'
alias gflhf='git flow hotfix finish'
alias gflrf='git flow release finish'
alias gflfp='git flow feature publish'
From 315eb77336919d907adf1296ce234d8bc778c005 Mon Sep 17 00:00:00 2001
From: Erik
Date: Thu, 13 Sep 2018 15:42:13 -0400
Subject: [PATCH 289/644] react-native: update readme with new aliases (#7135)
---
plugins/react-native/README.md | 38 ++++++++++++++++++++--------------
1 file changed, 22 insertions(+), 16 deletions(-)
diff --git a/plugins/react-native/README.md b/plugins/react-native/README.md
index 980246cf1..4a4047ea3 100644
--- a/plugins/react-native/README.md
+++ b/plugins/react-native/README.md
@@ -11,19 +11,25 @@ plugins=(... react-native)
## Aliases
-| Alias | React Native command |
-|:------------|:-----------------------------------------------|
-| **rn** | `react-native` |
-| **rns** | `react-native start` |
-| **rnlink** | `react-native link` |
-| _App testing_ |
-| **rnand** | `react-native run-android` |
-| **rnios** | `react-native run-ios` |
-| **rnios4s** | `react-native run-ios --simulator "iPhone 4s"` |
-| **rnios5** | `react-native run-ios --simulator "iPhone 5"` |
-| **rnios5s** | `react-native run-ios --simulator "iPhone 5s"` |
-| **rnios6** | `react-native run-ios --simulator "iPhone 6"` |
-| **rnios6s** | `react-native run-ios --simulator "iPhone 6s"` |
-| _Logging_ |
-| **rnland** | `react-native log-android` |
-| **rnlios** | `react-native log-ios` |
+| Alias | React Native command |
+|:------------|:---------------------------------------------------|
+| **rn** | `react-native` |
+| **rns** | `react-native start` |
+| **rnlink** | `react-native link` |
+| _App testing_ |
+| **rnand** | `react-native run-android` |
+| **rnios** | `react-native run-ios` |
+| **rnios4s** | `react-native run-ios --simulator "iPhone 4s"` |
+| **rnios5** | `react-native run-ios --simulator "iPhone 5"` |
+| **rnios5s** | `react-native run-ios --simulator "iPhone 5s"` |
+| **rnios6** | `react-native run-ios --simulator "iPhone 6"` |
+| **rnios6s** | `react-native run-ios --simulator "iPhone 6s"` |
+| **rnios7** | `react-native run-ios --simulator "iPhone7"` |
+| **rnios7p** | `react-native run-ios --simulator "iPhone 7 Plus"` |
+| **rnios8** | `react-native run-ios --simulator "iPhone 8"` |
+| **rnios8p** | `react-native run-ios --simulator "iPhone 8 Plus"` |
+| **rniosse** | `react-native run-ios --simulator "iPhone SE"` |
+| **rniosx** | `react-native run-ios --simulator "iPhone X"` |
+| _Logging_ |
+| **rnland** | `react-native log-android` |
+| **rnlios** | `react-native log-ios` |
From 5a729f66672d84f63c9f295008387d675a87b795 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sat, 15 Sep 2018 22:56:12 +0200
Subject: [PATCH 290/644] lib: fix history wrapper when passing numbers
If a number is passed without explicitly passing `-l`, it will now behave
as if using the history builtin, instead of throwing an error.
---
lib/history.zsh | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/lib/history.zsh b/lib/history.zsh
index 62e02648b..d8bbd41c4 100644
--- a/lib/history.zsh
+++ b/lib/history.zsh
@@ -1,7 +1,6 @@
## History wrapper
function omz_history {
- # Delete the history file if `-c' argument provided.
- # This won't affect the `history' command output until the next login.
+ local clear list
zparseopts -E c=clear l=list
if [[ -n "$clear" ]]; then
@@ -12,9 +11,8 @@ function omz_history {
# if -l provided, run as if calling `fc' directly
builtin fc "$@"
else
- # otherwise, call `fc -l 1` to show all available
- # history (and pass additional parameters)
- builtin fc "$@" -l 1
+ # unless a number is provided, show all history events (starting from 1)
+ [[ ${@[-1]} = *[0-9]* ]] && builtin fc -l "$@" || builtin fc -l "$@" 1
fi
}
From 4d940109e3c2a81ca44df1dd6e807b7a5538fff8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Sat, 15 Sep 2018 23:57:12 +0200
Subject: [PATCH 291/644] misc: remove execution permission from various files
---
plugins/bgnotify/bgnotify.plugin.zsh | 0
plugins/catimg/catimg.sh | 0
plugins/dnf/README.md | 0
plugins/git-flow-avh/git-flow-avh.plugin.zsh | 0
plugins/n98-magerun/n98-magerun.plugin.zsh | 0
plugins/scd/scd | 0
plugins/wd/wd.sh | 0
plugins/zsh-navigation-tools/zsh-navigation-tools.plugin.zsh | 0
themes/trapd00r.zsh-theme | 0
9 files changed, 0 insertions(+), 0 deletions(-)
mode change 100755 => 100644 plugins/bgnotify/bgnotify.plugin.zsh
mode change 100755 => 100644 plugins/catimg/catimg.sh
mode change 100755 => 100644 plugins/dnf/README.md
mode change 100755 => 100644 plugins/git-flow-avh/git-flow-avh.plugin.zsh
mode change 100755 => 100644 plugins/n98-magerun/n98-magerun.plugin.zsh
mode change 100755 => 100644 plugins/scd/scd
mode change 100755 => 100644 plugins/wd/wd.sh
mode change 100755 => 100644 plugins/zsh-navigation-tools/zsh-navigation-tools.plugin.zsh
mode change 100755 => 100644 themes/trapd00r.zsh-theme
diff --git a/plugins/bgnotify/bgnotify.plugin.zsh b/plugins/bgnotify/bgnotify.plugin.zsh
old mode 100755
new mode 100644
diff --git a/plugins/catimg/catimg.sh b/plugins/catimg/catimg.sh
old mode 100755
new mode 100644
diff --git a/plugins/dnf/README.md b/plugins/dnf/README.md
old mode 100755
new mode 100644
diff --git a/plugins/git-flow-avh/git-flow-avh.plugin.zsh b/plugins/git-flow-avh/git-flow-avh.plugin.zsh
old mode 100755
new mode 100644
diff --git a/plugins/n98-magerun/n98-magerun.plugin.zsh b/plugins/n98-magerun/n98-magerun.plugin.zsh
old mode 100755
new mode 100644
diff --git a/plugins/scd/scd b/plugins/scd/scd
old mode 100755
new mode 100644
diff --git a/plugins/wd/wd.sh b/plugins/wd/wd.sh
old mode 100755
new mode 100644
diff --git a/plugins/zsh-navigation-tools/zsh-navigation-tools.plugin.zsh b/plugins/zsh-navigation-tools/zsh-navigation-tools.plugin.zsh
old mode 100755
new mode 100644
diff --git a/themes/trapd00r.zsh-theme b/themes/trapd00r.zsh-theme
old mode 100755
new mode 100644
From 918a78cfdb92b9301168cb9d62d8ddbbdfd907f6 Mon Sep 17 00:00:00 2001
From: Nicolas
Date: Sun, 16 Sep 2018 20:16:16 +0200
Subject: [PATCH 292/644] man: rename file to *.plugin.zsh (#6016)
Also fixed minor typo
Closes #6108
Co-authored-by: Matt
---
plugins/man/{man.zsh => man.plugin.zsh} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename plugins/man/{man.zsh => man.plugin.zsh} (97%)
diff --git a/plugins/man/man.zsh b/plugins/man/man.plugin.zsh
similarity index 97%
rename from plugins/man/man.zsh
rename to plugins/man/man.plugin.zsh
index 3490b0b61..94aa4918d 100644
--- a/plugins/man/man.zsh
+++ b/plugins/man/man.plugin.zsh
@@ -5,7 +5,7 @@
# * Jerry Ling
#
# ------------------------------------------------------------------------------
-# Usgae
+# Usage
# -----
#
# man will be inserted before the command
@@ -24,4 +24,4 @@ bindkey "\e"man man-command-line
# ------------------------------------------------------------------------------
# Also, you might want to use man-preview included in 'osx' plugin
# just substitute "man" in the function with "man-preview" after you included OS X in
-# the .zshrc
\ No newline at end of file
+# the .zshrc
From 178df729b17b4e3a0fd4b0a0f334eb3705c9d5f7 Mon Sep 17 00:00:00 2001
From: Erik
Date: Fri, 21 Sep 2018 10:50:54 -0400
Subject: [PATCH 293/644] react-native: add iPhone XR, XS, and XS Max
simulators (#7145)
---
plugins/react-native/react-native.plugin.zsh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/plugins/react-native/react-native.plugin.zsh b/plugins/react-native/react-native.plugin.zsh
index 09c137264..220aa2dce 100644
--- a/plugins/react-native/react-native.plugin.zsh
+++ b/plugins/react-native/react-native.plugin.zsh
@@ -15,6 +15,9 @@ alias rnios8='react-native run-ios --simulator "iPhone 8"'
alias rnios8p='react-native run-ios --simulator "iPhone 8 Plus"'
alias rniosse='react-native run-ios --simulator "iPhone SE"'
alias rniosx='react-native run-ios --simulator "iPhone X"'
+alias rniosxs='react-native run-ios --simulator "iPhone XS"'
+alias rniosxsm='react-native run-ios --simulator "iPhone XS Max"'
+alias rniosxr='react-native run-ios --simulator "iPhone XR"'
alias rnland='react-native log-android'
alias rnlios='react-native log-ios'
From 008006bbcd15e357c0417eb9d43ae08d24a23bdf Mon Sep 17 00:00:00 2001
From: Erik
Date: Fri, 21 Sep 2018 10:51:35 -0400
Subject: [PATCH 294/644] react-native: add new iPhone model simulators to
README (#7146)
---
plugins/react-native/README.md | 48 ++++++++++++++++++----------------
1 file changed, 26 insertions(+), 22 deletions(-)
diff --git a/plugins/react-native/README.md b/plugins/react-native/README.md
index 4a4047ea3..ebe1be0e0 100644
--- a/plugins/react-native/README.md
+++ b/plugins/react-native/README.md
@@ -11,25 +11,29 @@ plugins=(... react-native)
## Aliases
-| Alias | React Native command |
-|:------------|:---------------------------------------------------|
-| **rn** | `react-native` |
-| **rns** | `react-native start` |
-| **rnlink** | `react-native link` |
-| _App testing_ |
-| **rnand** | `react-native run-android` |
-| **rnios** | `react-native run-ios` |
-| **rnios4s** | `react-native run-ios --simulator "iPhone 4s"` |
-| **rnios5** | `react-native run-ios --simulator "iPhone 5"` |
-| **rnios5s** | `react-native run-ios --simulator "iPhone 5s"` |
-| **rnios6** | `react-native run-ios --simulator "iPhone 6"` |
-| **rnios6s** | `react-native run-ios --simulator "iPhone 6s"` |
-| **rnios7** | `react-native run-ios --simulator "iPhone7"` |
-| **rnios7p** | `react-native run-ios --simulator "iPhone 7 Plus"` |
-| **rnios8** | `react-native run-ios --simulator "iPhone 8"` |
-| **rnios8p** | `react-native run-ios --simulator "iPhone 8 Plus"` |
-| **rniosse** | `react-native run-ios --simulator "iPhone SE"` |
-| **rniosx** | `react-native run-ios --simulator "iPhone X"` |
-| _Logging_ |
-| **rnland** | `react-native log-android` |
-| **rnlios** | `react-native log-ios` |
+| Alias | React Native command |
+| :------------ | :------------------------------------------------- |
+| **rn** | `react-native` |
+| **rns** | `react-native start` |
+| **rnlink** | `react-native link` |
+| _App testing_ |
+| **rnand** | `react-native run-android` |
+| **rnios** | `react-native run-ios` |
+| **rnios4s** | `react-native run-ios --simulator "iPhone 4s"` |
+| **rnios5** | `react-native run-ios --simulator "iPhone 5"` |
+| **rnios5s** | `react-native run-ios --simulator "iPhone 5s"` |
+| **rnios6** | `react-native run-ios --simulator "iPhone 6"` |
+| **rnios6s** | `react-native run-ios --simulator "iPhone 6s"` |
+| **rnios7** | `react-native run-ios --simulator "iPhone7"` |
+| **rnios7p** | `react-native run-ios --simulator "iPhone 7 Plus"` |
+| **rnios8** | `react-native run-ios --simulator "iPhone 8"` |
+| **rnios8p** | `react-native run-ios --simulator "iPhone 8 Plus"` |
+| **rniosse** | `react-native run-ios --simulator "iPhone SE"` |
+| **rniosx** | `react-native run-ios --simulator "iPhone X"` |
+| **rniosxs** | `react-native run-ios --simulator "iPhone XS"` |
+| **rniosxsm** | `react-native run-ios --simulator "iPhone XS Max"` |
+| **rniosxr** | `react-native run-ios --simulator "iPhone XR"` |
+
+| _Logging_ |
+| **rnland** | `react-native log-android` |
+| **rnlios** | `react-native log-ios` |
From 627393eadaf715adcf8308cd2e6b93413dfae72d Mon Sep 17 00:00:00 2001
From: Igor Rootsi
Date: Fri, 21 Sep 2018 17:54:04 +0300
Subject: [PATCH 295/644] docker-compose: add dcupd alias for detached mode
start (#7144)
---
plugins/docker-compose/docker-compose.plugin.zsh | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/docker-compose/docker-compose.plugin.zsh b/plugins/docker-compose/docker-compose.plugin.zsh
index 24bea318b..9ffe1edf6 100644
--- a/plugins/docker-compose/docker-compose.plugin.zsh
+++ b/plugins/docker-compose/docker-compose.plugin.zsh
@@ -18,6 +18,7 @@ alias dcrm='docker-compose rm'
alias dcr='docker-compose run'
alias dcstop='docker-compose stop'
alias dcup='docker-compose up'
+alias dcupd='docker-compose up -d'
alias dcdn='docker-compose down'
alias dcl='docker-compose logs'
alias dclf='docker-compose logs -f'
From c7d903b77e93f70849d7fdcbefc2a8831006c4dd Mon Sep 17 00:00:00 2001
From: Batuhan's Unmaintained Account
Date: Sun, 23 Sep 2018 12:12:27 -0400
Subject: [PATCH 296/644] Remove Optional Static Type Checker's (mypy) Cache
Files on `pyclean`
Remove Optional Static Type Checker's (mypy) Cache Files on `pyclean`
---
plugins/python/python.plugin.zsh | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/plugins/python/python.plugin.zsh b/plugins/python/python.plugin.zsh
index a10c06fd3..f754ea261 100644
--- a/plugins/python/python.plugin.zsh
+++ b/plugins/python/python.plugin.zsh
@@ -1,12 +1,13 @@
# Find python file
alias pyfind='find . -name "*.py"'
-# Remove python compiled byte-code in either current directory or in a
+# Remove python compiled byte-code and mypy cache in either current directory or in a
# list of specified directories
function pyclean() {
ZSH_PYCLEAN_PLACES=${*:-'.'}
find ${ZSH_PYCLEAN_PLACES} -type f -name "*.py[co]" -delete
find ${ZSH_PYCLEAN_PLACES} -type d -name "__pycache__" -delete
+ find ${ZSH_PYCLEAN_PLACES} -type d -name ".mypy_cache" -delete
}
# Grep among .py files
From d326cc5c411ac17f1a2befa1e717d221b2bbbf35 Mon Sep 17 00:00:00 2001
From: Frederick Zhang
Date: Sat, 7 Jan 2017 20:32:56 +1100
Subject: [PATCH 297/644] target name completion
---
plugins/cargo/_cargo | 45 +++++++++++++++++++++++++++++++++++++-------
1 file changed, 38 insertions(+), 7 deletions(-)
diff --git a/plugins/cargo/_cargo b/plugins/cargo/_cargo
index 54e709ca0..3eb3acb96 100644
--- a/plugins/cargo/_cargo
+++ b/plugins/cargo/_cargo
@@ -31,7 +31,7 @@ case $state in
'--no-default-features[do not build the default features]' \
'--no-run[compile but do not run]' \
'(-p,--package)'{-p=,--package=}'[package to run benchmarks for]:packages:_get_package_names' \
- '--target=[target triple]' \
+ '--target=[target triple]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'--color=:colorization option:(auto always never)' \
@@ -48,7 +48,7 @@ case $state in
'--no-default-features[do not build the default features]' \
'(-p,--package)'{-p=,--package=}'[package to build]:packages:_get_package_names' \
'--release=[build in release mode]' \
- '--target=[target triple]' \
+ '--target=[target triple]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'--color=:colorization option:(auto always never)' \
@@ -61,7 +61,7 @@ case $state in
'(-p,--package)'{-p=,--package=}'[package to clean]:packages:_get_package_names' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'--release[whether or not to clean release artifacts]' \
- '--target=[target triple(default:all)]' \
+ '--target=[target triple(default:all)]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \
;;
@@ -79,7 +79,7 @@ case $state in
'(-p, --package)'{-p,--package}'=[package to document]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'--release[build artifacts in release mode, with optimizations]' \
- '--target=[build for the target triple]' \
+ '--target=[build for the target triple]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \
;;
@@ -276,7 +276,7 @@ case $state in
'--profile=[profile to build the selected target for]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'--release[build artifacts in release mode, with optimizations]' \
- '--target=[target triple which compiles will be for]' \
+ '--target=[target triple which compiles will be for]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
"${command_scope_spec[@]}" \
;;
@@ -294,7 +294,7 @@ case $state in
'(-p, --package)'{-p,--package}'=[package to document]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'--release[build artifacts in release mode, with optimizations]' \
- '--target=[build for the target triple]' \
+ '--target=[build for the target triple]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
"${command_scope_spec[@]}" \
;;
@@ -323,7 +323,7 @@ case $state in
'(-p,--package)'{-p=,--package=}'[package to run tests for]:packages:_get_package_names' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'--release[build artifacts in release mode, with optimizations]' \
- '--target=[target triple]' \
+ '--target=[target triple]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'--color=:colorization option:(auto always never)' \
'1: :_test_names' \
@@ -484,6 +484,37 @@ _benchmark_names()
_get_names_from_array "bench"
}
+#Gets the target names from config files
+_get_targets()
+{
+ local CURRENT_PATH
+ if [[ $(uname -o) = "Cygwin" && -f "$PWD"/Cargo.toml ]]; then
+ CURRENT_PATH=$PWD
+ else
+ CURRENT_PATH=$(_locate_manifest)
+ fi
+ if [[ -z "$CURRENT_PATH" ]]; then
+ return 1
+ fi
+ local -a TARGETS
+ local -a FIND_PATHS=( "/" )
+ local -a FLINES
+ local FIND_PATH FLINE
+ while [[ "$CURRENT_PATH" != "/" ]]; do
+ FIND_PATHS+=( "$CURRENT_PATH" )
+ CURRENT_PATH=$(dirname $CURRENT_PATH)
+ done
+ for FIND_PATH in ${FIND_PATHS[@]}; do
+ if [[ -f "$FIND_PATH"/.cargo/config ]]; then
+ FLINES=( `grep "$FIND_PATH"/.cargo/config -e "^\[target\."` )
+ for FLINE in ${FLINES[@]}; do
+ TARGETS+=(`sed 's/^\[target\.\(.*\)\]$/\1/' <<< $FLINE`)
+ done
+ fi
+ done
+ _describe 'target' TARGETS
+}
+
# These flags are mutally exclusive specifiers for the scope of a command; as
# they are used in multiple places without change, they are expanded into the
# appropriate command's `_arguments` where appropriate.
From da30a1d6d2709d768c68de122d6d0ab96c5a9a90 Mon Sep 17 00:00:00 2001
From: Frederick Zhang
Date: Sat, 7 Jan 2017 20:48:11 +1100
Subject: [PATCH 298/644] add description for --color
---
plugins/cargo/_cargo | 54 ++++++++++++++++++++++----------------------
1 file changed, 27 insertions(+), 27 deletions(-)
diff --git a/plugins/cargo/_cargo b/plugins/cargo/_cargo
index 3eb3acb96..99eac2bdb 100644
--- a/plugins/cargo/_cargo
+++ b/plugins/cargo/_cargo
@@ -34,7 +34,7 @@ case $state in
'--target=[target triple]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
build)
@@ -51,7 +51,7 @@ case $state in
'--target=[target triple]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
clean)
@@ -63,7 +63,7 @@ case $state in
'--release[whether or not to clean release artifacts]' \
'--target=[target triple(default:all)]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
doc)
@@ -81,7 +81,7 @@ case $state in
'--release[build artifacts in release mode, with optimizations]' \
'--target=[build for the target triple]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
fetch)
@@ -90,7 +90,7 @@ case $state in
'--manifest-path=[path to manifest]: :_files -/' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
generate-lockfile)
@@ -99,7 +99,7 @@ case $state in
'--manifest-path=[path to manifest]: :_files -/' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
git-checkout)
@@ -109,7 +109,7 @@ case $state in
'--reference=[REF]' \
'--url=[URL]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
help)
@@ -126,14 +126,14 @@ case $state in
'--name=[set the resulting package name]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
install)
_arguments \
'--bin=[only install the specified binary]' \
'--branch=[branch to use when installing from git]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
'--debug[build in debug mode instead of release mode]' \
'--example[install the specified example instead of binaries]' \
'--features=[space separated feature list]' \
@@ -163,7 +163,7 @@ case $state in
'--host=[Host to set the token for]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
metadata)
@@ -177,7 +177,7 @@ case $state in
'--features=[space separated feature list]' \
'--all-features[enable all available features]' \
'--format-version=[format version(default: 1)]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
new)
@@ -188,7 +188,7 @@ case $state in
'--name=[set the resulting package name]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
owner)
@@ -201,7 +201,7 @@ case $state in
'(-r, --remove)'{-r,--remove}'[remove owner LOGIN]' \
'--token[API token to use when authenticating]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
package)
@@ -213,7 +213,7 @@ case $state in
'--no-verify[do not build to verify contents]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
pkgid)
@@ -222,7 +222,7 @@ case $state in
'--manifest-path=[path to manifest]: :_files -/' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
publish)
@@ -234,7 +234,7 @@ case $state in
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'--token[token to use when uploading]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
read-manifest)
@@ -242,7 +242,7 @@ case $state in
'(-h, --help)'{-h,--help}'[show help message]' \
'--manifest-path=[path to manifest]: :_files -/' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
run)
@@ -259,13 +259,13 @@ case $state in
'--release=[build in release mode]' \
'--target=[target triple]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
'*: :_normal' \
;;
rustc)
_arguments \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
'--features=[features to compile for the package]' \
'--all-features[enable all available features]' \
'(-h, --help)'{-h,--help}'[show help message]' \
@@ -283,7 +283,7 @@ case $state in
rustdoc)
_arguments \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
'--features=[space-separated list of features to also build]' \
'--all-features[enable all available features]' \
'(-h, --help)'{-h,--help}'[show help message]' \
@@ -301,7 +301,7 @@ case $state in
search)
_arguments \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
'(-h, --help)'{-h,--help}'[show help message]' \
'--host=[host of a registry to search in]' \
'--limit=[limit the number of results]' \
@@ -325,14 +325,14 @@ case $state in
'--release[build artifacts in release mode, with optimizations]' \
'--target=[target triple]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
'1: :_test_names' \
;;
uninstall)
_arguments \
'--bin=[only uninstall the binary NAME]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
'(-h, --help)'{-h,--help}'[show help message]' \
'(-q, --quiet)'{-q,--quiet}'[less output printed to stdout]' \
'--root=[directory to uninstall packages from]' \
@@ -348,7 +348,7 @@ case $state in
'--precise=[update single dependency to PRECISE]: :' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
verify-project)
@@ -357,14 +357,14 @@ case $state in
'--manifest-path=[path to manifest]: :_files -/' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
version)
_arguments \
'(-h, --help)'{-h,--help}'[show help message]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
;;
yank)
@@ -375,7 +375,7 @@ case $state in
'--token[API token to use when authenticating]' \
'--undo[undo a yank, putting a version back into the index]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
- '--color=:colorization option:(auto always never)' \
+ '--color=[coloring]:colorization option:(auto always never)' \
'--vers[yank version]' \
;;
esac
From b9533ccac2846d74693158eef1759d198231a79b Mon Sep 17 00:00:00 2001
From: Frederick Zhang
Date: Sat, 7 Jan 2017 20:54:48 +1100
Subject: [PATCH 299/644] complete --message-format
---
plugins/cargo/_cargo | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/plugins/cargo/_cargo b/plugins/cargo/_cargo
index 99eac2bdb..7ed95c0ce 100644
--- a/plugins/cargo/_cargo
+++ b/plugins/cargo/_cargo
@@ -34,6 +34,7 @@ case $state in
'--target=[target triple]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
+ '--message-format=[error format]:format option:(human json)' \
'--color=[coloring]:colorization option:(auto always never)' \
;;
@@ -51,6 +52,7 @@ case $state in
'--target=[target triple]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
'(-q, --quiet)'{-q,--quiet}'[no output printed to stdout]' \
+ '--message-format=[error format]:format option:(human json)' \
'--color=[coloring]:colorization option:(auto always never)' \
;;
@@ -259,12 +261,14 @@ case $state in
'--release=[build in release mode]' \
'--target=[target triple]' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
+ '--message-format=[error format]:format option:(human json)' \
'--color=[coloring]:colorization option:(auto always never)' \
'*: :_normal' \
;;
rustc)
_arguments \
+ '--message-format=[error format]:format option:(human json)' \
'--color=[coloring]:colorization option:(auto always never)' \
'--features=[features to compile for the package]' \
'--all-features[enable all available features]' \
@@ -283,6 +287,7 @@ case $state in
rustdoc)
_arguments \
+ '--message-format=[error format]:format option:(human json)' \
'--color=[coloring]:colorization option:(auto always never)' \
'--features=[space-separated list of features to also build]' \
'--all-features[enable all available features]' \
@@ -325,6 +330,7 @@ case $state in
'--release[build artifacts in release mode, with optimizations]' \
'--target=[target triple]: :_get_targets' \
'(-v, --verbose)'{-v,--verbose}'[use verbose output]' \
+ '--message-format=[error format]:format option:(human json)' \
'--color=[coloring]:colorization option:(auto always never)' \
'1: :_test_names' \
;;
From 5423f7fa2ad255ec417fc3aea0c69077f0530ccb Mon Sep 17 00:00:00 2001
From: Frederick Zhang
Date: Tue, 24 Jan 2017 03:48:57 +1100
Subject: [PATCH 300/644] complete installed sub-commands
---
plugins/cargo/_cargo | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/cargo/_cargo b/plugins/cargo/_cargo
index 7ed95c0ce..e26fbfeba 100644
--- a/plugins/cargo/_cargo
+++ b/plugins/cargo/_cargo
@@ -390,6 +390,7 @@ esac
}
_cargo_cmds(){
+local IFS=$'\n'
local -a commands;commands=(
'bench:execute all benchmarks of a local package'
'build:compile the current project'
@@ -420,6 +421,7 @@ local -a commands;commands=(
'verify-project:check Cargo.toml'
'version:show version information'
'yank:remove pushed file from index'
+$( cargo --list | sed -n '1!p' | tr -d ' ' | egrep -v "^bench$|^build$|^clean$|^doc$|^fetch$|^generate-lockfile$|^git-checkout$|^help$|^init$|^install$|^locate-project$|^login$|^metadata$|^new$|^owner$|^package$|^pkgid$|^publish$|^read-manifest$|^run$|^rustc$|^rustdoc$|^search$|^test$|^uninstall$|^update$|^verify-project$|^version$|^yank$" | sed -r "s/(.*)/echo \"\1:$\(cargo help \1 | head -n 1\)\"/" | sh )
)
_describe 'command' commands
From 5d0b90a7ef8fde6d8c53a5d88b5599af6b5da75e Mon Sep 17 00:00:00 2001
From: Frederick Zhang
Date: Mon, 26 Jun 2017 12:47:27 +1000
Subject: [PATCH 301/644] redir debug output to std
---
plugins/cargo/_cargo | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/cargo/_cargo b/plugins/cargo/_cargo
index e26fbfeba..7d6ca9fc5 100644
--- a/plugins/cargo/_cargo
+++ b/plugins/cargo/_cargo
@@ -421,7 +421,7 @@ local -a commands;commands=(
'verify-project:check Cargo.toml'
'version:show version information'
'yank:remove pushed file from index'
-$( cargo --list | sed -n '1!p' | tr -d ' ' | egrep -v "^bench$|^build$|^clean$|^doc$|^fetch$|^generate-lockfile$|^git-checkout$|^help$|^init$|^install$|^locate-project$|^login$|^metadata$|^new$|^owner$|^package$|^pkgid$|^publish$|^read-manifest$|^run$|^rustc$|^rustdoc$|^search$|^test$|^uninstall$|^update$|^verify-project$|^version$|^yank$" | sed -r "s/(.*)/echo \"\1:$\(cargo help \1 | head -n 1\)\"/" | sh )
+$( cargo --list | sed -n '1!p' | tr -d ' ' | egrep -v "^bench$|^build$|^clean$|^doc$|^fetch$|^generate-lockfile$|^git-checkout$|^help$|^init$|^install$|^locate-project$|^login$|^metadata$|^new$|^owner$|^package$|^pkgid$|^publish$|^read-manifest$|^run$|^rustc$|^rustdoc$|^search$|^test$|^uninstall$|^update$|^verify-project$|^version$|^yank$" | sed -r "s/(.*)/echo \"\1:$\(cargo help \1 2>&1 | head -n 1\)\"/" | sh )
)
_describe 'command' commands
From 440d8ef344686b699c918edc7c878a362b3a5038 Mon Sep 17 00:00:00 2001
From: Frederick Zhang
Date: Mon, 26 Jun 2017 12:56:16 +1000
Subject: [PATCH 302/644] fix escaping
---
plugins/cargo/_cargo | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/cargo/_cargo b/plugins/cargo/_cargo
index 7d6ca9fc5..01089dff4 100644
--- a/plugins/cargo/_cargo
+++ b/plugins/cargo/_cargo
@@ -421,7 +421,7 @@ local -a commands;commands=(
'verify-project:check Cargo.toml'
'version:show version information'
'yank:remove pushed file from index'
-$( cargo --list | sed -n '1!p' | tr -d ' ' | egrep -v "^bench$|^build$|^clean$|^doc$|^fetch$|^generate-lockfile$|^git-checkout$|^help$|^init$|^install$|^locate-project$|^login$|^metadata$|^new$|^owner$|^package$|^pkgid$|^publish$|^read-manifest$|^run$|^rustc$|^rustdoc$|^search$|^test$|^uninstall$|^update$|^verify-project$|^version$|^yank$" | sed -r "s/(.*)/echo \"\1:$\(cargo help \1 2>&1 | head -n 1\)\"/" | sh )
+$( cargo --list | sed -n '1!p' | tr -d ' ' | egrep -v "^bench$|^build$|^clean$|^doc$|^fetch$|^generate-lockfile$|^git-checkout$|^help$|^init$|^install$|^locate-project$|^login$|^metadata$|^new$|^owner$|^package$|^pkgid$|^publish$|^read-manifest$|^run$|^rustc$|^rustdoc$|^search$|^test$|^uninstall$|^update$|^verify-project$|^version$|^yank$" | sed -r "s/(.*)/echo \"\1:$\(cargo help \1 2>\&1 | head -n 1\)\"/" | sh )
)
_describe 'command' commands
From 1e161e839f5b544955096b30b01841307b4e4d2f Mon Sep 17 00:00:00 2001
From: Frederick Zhang
Date: Mon, 24 Sep 2018 18:02:03 +1000
Subject: [PATCH 303/644] fix subcommands completion
---
plugins/cargo/_cargo | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/cargo/_cargo b/plugins/cargo/_cargo
index 01089dff4..7d7d9b2d8 100644
--- a/plugins/cargo/_cargo
+++ b/plugins/cargo/_cargo
@@ -421,7 +421,7 @@ local -a commands;commands=(
'verify-project:check Cargo.toml'
'version:show version information'
'yank:remove pushed file from index'
-$( cargo --list | sed -n '1!p' | tr -d ' ' | egrep -v "^bench$|^build$|^clean$|^doc$|^fetch$|^generate-lockfile$|^git-checkout$|^help$|^init$|^install$|^locate-project$|^login$|^metadata$|^new$|^owner$|^package$|^pkgid$|^publish$|^read-manifest$|^run$|^rustc$|^rustdoc$|^search$|^test$|^uninstall$|^update$|^verify-project$|^version$|^yank$" | sed -r "s/(.*)/echo \"\1:$\(cargo help \1 2>\&1 | head -n 1\)\"/" | sh )
+$( cargo --list | sed -n '1!p' | tr -s ' ' | cut -d ' ' -f 2 | egrep -v "^bench$|^build$|^clean$|^doc$|^fetch$|^generate-lockfile$|^git-checkout$|^help$|^init$|^install$|^locate-project$|^login$|^metadata$|^new$|^owner$|^package$|^pkgid$|^publish$|^read-manifest$|^run$|^rustc$|^rustdoc$|^search$|^test$|^uninstall$|^update$|^verify-project$|^version$|^yank$" | sed -r "s/(.*)/echo \"\1:$\(cargo help \1 2>\&1 | head -n 1\)\"/" | sh )
)
_describe 'command' commands
From 150a3c9c834d824bdea5c8755963790e3c8efded Mon Sep 17 00:00:00 2001
From: Marten Seemann
Date: Mon, 24 Sep 2018 08:11:57 -0400
Subject: [PATCH 304/644] agnoster: respect git config oh-my-zsh.hide-status
(#6362)
---
themes/agnoster.zsh-theme | 3 +++
1 file changed, 3 insertions(+)
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
index d1a69c560..302de6e6f 100644
--- a/themes/agnoster.zsh-theme
+++ b/themes/agnoster.zsh-theme
@@ -96,6 +96,9 @@ prompt_context() {
# Git: branch/detached head, dirty status
prompt_git() {
(( $+commands[git] )) || return
+ if [[ "$(git config --get oh-my-zsh.hide-status 2>/dev/null)" = 1 ]]; then
+ return
+ fi
local PL_BRANCH_CHAR
() {
local LC_ALL="" LC_CTYPE="en_US.UTF-8"
From 14fead09641c17eb87e573e13b3c750bb98ea8cf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Mon, 24 Sep 2018 18:52:11 +0200
Subject: [PATCH 305/644] vi-mode: disable displayed mode on startup
This change had the unintended consequence of overriding the functions to ensure
that application mode was set to use $terminfo sequences, introduced in #6449.
Fixes #7137
---
plugins/vi-mode/vi-mode.plugin.zsh | 5 -----
1 file changed, 5 deletions(-)
diff --git a/plugins/vi-mode/vi-mode.plugin.zsh b/plugins/vi-mode/vi-mode.plugin.zsh
index 6cadd166a..93964594b 100644
--- a/plugins/vi-mode/vi-mode.plugin.zsh
+++ b/plugins/vi-mode/vi-mode.plugin.zsh
@@ -4,11 +4,6 @@ function zle-keymap-select() {
zle -R
}
-# Ensures that MODE_INDITCATOR is displayed on terminal start up.
-function zle-line-init() {
- zle reset-prompt
-}
-
# Ensure that the prompt is redrawn when the terminal size changes.
TRAPWINCH() {
zle && { zle -R; zle reset-prompt }
From 5e1d351339d9ea10023fbf175efcd0515cea0a94 Mon Sep 17 00:00:00 2001
From: Chris
Date: Tue, 25 Sep 2018 13:56:29 +0200
Subject: [PATCH 306/644] bgnotify: use double dash in kdialog title option
(#7153)
The options for kdialog in KDE use double dashes
---
plugins/bgnotify/bgnotify.plugin.zsh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/bgnotify/bgnotify.plugin.zsh b/plugins/bgnotify/bgnotify.plugin.zsh
index 459f5214e..b3a6890b8 100644
--- a/plugins/bgnotify/bgnotify.plugin.zsh
+++ b/plugins/bgnotify/bgnotify.plugin.zsh
@@ -42,7 +42,7 @@ bgnotify () { ## args: (title, subtitle)
elif hash notify-send 2>/dev/null; then #ubuntu gnome!
notify-send "$1" "$2"
elif hash kdialog 2>/dev/null; then #ubuntu kde!
- kdialog -title "$1" --passivepopup "$2" 5
+ kdialog --title "$1" --passivepopup "$2" 5
elif hash notifu 2>/dev/null; then #cygwyn support!
notifu /m "$2" /p "$1"
fi
From 7f6e6cf346268a6d2cdf6fe167a60827aab53f0b Mon Sep 17 00:00:00 2001
From: Erik
Date: Tue, 25 Sep 2018 11:36:35 -0400
Subject: [PATCH 307/644] react-native: fix table in README (#7159)
Fixes the broken bottom "Logging" section of the table
---
plugins/react-native/README.md | 1 -
1 file changed, 1 deletion(-)
diff --git a/plugins/react-native/README.md b/plugins/react-native/README.md
index ebe1be0e0..d1fce0fc2 100644
--- a/plugins/react-native/README.md
+++ b/plugins/react-native/README.md
@@ -33,7 +33,6 @@ plugins=(... react-native)
| **rniosxs** | `react-native run-ios --simulator "iPhone XS"` |
| **rniosxsm** | `react-native run-ios --simulator "iPhone XS Max"` |
| **rniosxr** | `react-native run-ios --simulator "iPhone XR"` |
-
| _Logging_ |
| **rnland** | `react-native log-android` |
| **rnlios** | `react-native log-ios` |
From afa8dc46ecb1babda7db8fb8228224e8975e95f4 Mon Sep 17 00:00:00 2001
From: Carlo Dapor
Date: Tue, 25 Sep 2018 21:46:27 +0200
Subject: [PATCH 308/644] Fix agnoster initial diagnostic error
This PR fixes the runtime error that displays this:
```log
prompt_status:2: symbols: attempt to assign array value to non-array
```.
It trips over a local array which is not properly declared.
---
themes/agnoster.zsh-theme | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
index d1a69c560..18496c2bc 100644
--- a/themes/agnoster.zsh-theme
+++ b/themes/agnoster.zsh-theme
@@ -212,8 +212,8 @@ prompt_virtualenv() {
# - am I root
# - are there background jobs?
prompt_status() {
- local symbols
- symbols=()
+ local -a symbols=()
+
[[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}✘"
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡"
[[ $(jobs -l | wc -l) -gt 0 ]] && symbols+="%{%F{cyan}%}⚙"
From a3d13eb76a19bbe18b6b843232695645bd9aa632 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Wed, 26 Sep 2018 17:19:59 +0200
Subject: [PATCH 309/644] fix invalid syntax in old zsh versions
---
themes/agnoster.zsh-theme | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/themes/agnoster.zsh-theme b/themes/agnoster.zsh-theme
index 18496c2bc..71ecf2b36 100644
--- a/themes/agnoster.zsh-theme
+++ b/themes/agnoster.zsh-theme
@@ -212,7 +212,7 @@ prompt_virtualenv() {
# - am I root
# - are there background jobs?
prompt_status() {
- local -a symbols=()
+ local -a symbols
[[ $RETVAL -ne 0 ]] && symbols+="%{%F{red}%}✘"
[[ $UID -eq 0 ]] && symbols+="%{%F{yellow}%}⚡"
From b4007b54000d9ea681d69bb5e3dba0fdddaa91d9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Wed, 26 Sep 2018 23:59:57 +0200
Subject: [PATCH 310/644] git-auto-fetch: small README fixes
---
plugins/git-auto-fetch/README.md | 12 +++++++-----
1 file changed, 7 insertions(+), 5 deletions(-)
diff --git a/plugins/git-auto-fetch/README.md b/plugins/git-auto-fetch/README.md
index 04f1c9445..35f3c2f71 100644
--- a/plugins/git-auto-fetch/README.md
+++ b/plugins/git-auto-fetch/README.md
@@ -1,9 +1,11 @@
-# Git auto fetch
+# Git auto-fetch
Automatically fetches all changes from all remotes while you are working in git-initialized directory.
-####Usage
-Add ```git-auto-fetch``` to the plugins array in your zshrc file:
+#### Usage
+
+Add `git-auto-fetch` to the plugins array in your zshrc file:
+
```shell
plugins=(... git-auto-fetch)
```
@@ -14,10 +16,10 @@ You can change fetch interval in your .zshrc:
```
GIT_AUTO_FETCH_INTERVAL=1200 #in seconds
```
-Log of ```git fetch --all``` will be saved into .git/FETCH_LOG
+Log of `git fetch --all` will be saved into `.git/FETCH_LOG`
-####Toggle auto fetch per folder
+#### Toggle auto fetch per folder
If you are using mobile connection or for any other reason you can disable git-auto-fetch for any folder:
```shell
From 441595d036cb88555793806cd2a77744dc849de3 Mon Sep 17 00:00:00 2001
From: Griko Nibras
Date: Mon, 1 Oct 2018 17:05:34 +0700
Subject: [PATCH 311/644] sudo: add README file (#7177)
---
plugins/sudo/README.md | 57 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 57 insertions(+)
create mode 100644 plugins/sudo/README.md
diff --git a/plugins/sudo/README.md b/plugins/sudo/README.md
new file mode 100644
index 000000000..ebfdfd10d
--- /dev/null
+++ b/plugins/sudo/README.md
@@ -0,0 +1,57 @@
+# sudo
+
+Easily prefix your current or previous commands with `sudo` by pressing esc twice
+
+## Enabling the plugin
+
+1. Open your `.zshrc` file and add `sudo` in the plugins section:
+
+ ```zsh
+ plugins=(
+ # all your enabled plugins
+ sudo
+ )
+ ```
+
+2. Reload the source file or restart your Terminal session:
+
+ ```console
+ $ source ~/.zshrc
+ $
+ ```
+
+## Usage examples
+
+### Current typed commands
+
+Say you have typed a long command and forgot to add `sudo` in front:
+
+```console
+$ apt-get install build-essential
+```
+
+By pressing the esc key twice, you will have the same command with `sudo` prefixed without typing:
+
+```console
+$ sudo apt-get install build-essential
+```
+
+### Previous executed commands
+
+Say you want to delete a system file and denied:
+
+```console
+$ rm some-system-file.txt
+-su: some-system-file.txt: Permission denied
+$
+```
+
+By pressing the esc key twice, you will have the same command with `sudo` prefixed without typing:
+
+```console
+$ rm some-system-file.txt
+-su: some-system-file.txt: Permission denied
+$ sudo rm some-system-file.txt
+Password:
+$
+```
From 7f96f4476c922b037eb287af2e727e17653db1ef Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marc=20Cornell=C3=A0?=
Date: Mon, 1 Oct 2018 12:14:15 +0200
Subject: [PATCH 312/644] jenv: update README
---
plugins/jenv/README.md | 18 ++++++++++++++++--
1 file changed, 16 insertions(+), 2 deletions(-)
diff --git a/plugins/jenv/README.md b/plugins/jenv/README.md
index 8899d21ae..c043c626e 100644
--- a/plugins/jenv/README.md
+++ b/plugins/jenv/README.md
@@ -1,9 +1,9 @@
# jenv plugin
[jenv](https://www.jenv.be/) is a Java version manager similiar to [rbenv](https://github.com/rbenv/rbenv)
-and [pyenv]|(https://github.com/yyuu/pyenv).
+and [pyenv](https://github.com/yyuu/pyenv).
-This plugin initializes jenv and adds provides the jenv_prompt_info function to add Java
+This plugin initializes jenv and provides the `jenv_prompt_info` function to add Java
version information to prompts.
To use, add `jenv` to your plugins array in your zshrc file:
@@ -11,3 +11,17 @@ To use, add `jenv` to your plugins array in your zshrc file:
```zsh
plugins=(... jenv)
```
+
+## Theme example
+
+You can modify your `$PROMPT` or `$RPROMPT` variables to run `jenv_prompt_info`.
+
+For example:
+```
+PROMPT="%~$ "
+RPROMPT='$(jenv_prompt_info)'
+```
+changes your prompt to:
+```
+~/java/project$ ▋ oracle64-1.6.0.39
+```
From 86fc391f8cd18ba2227dd00b48b1746de89341a8 Mon Sep 17 00:00:00 2001
From: David McKissick
Date: Mon, 1 Oct 2018 03:37:59 -0700
Subject: [PATCH 313/644] iwhois: add README (#7176)
---
plugins/iwhois/README.md | 24 ++++++++++++++++++++++++
plugins/iwhois/iwhois.plugin.zsh | 3 ---
2 files changed, 24 insertions(+), 3 deletions(-)
create mode 100644 plugins/iwhois/README.md
diff --git a/plugins/iwhois/README.md b/plugins/iwhois/README.md
new file mode 100644
index 000000000..1626b8524
--- /dev/null
+++ b/plugins/iwhois/README.md
@@ -0,0 +1,24 @@
+# iwhois
+
+Provides a whois command with a more accurate and up-to-date list of whois servers
+using CNAMES, via [whois.geek.nz](https://github.com/iwantmyname/whois.geek.nz).
+
+To use it, add iwhois to the plugins array of your zshrc file:
+```
+plugins=(... iwhois)
+```
+
+### Usage
+
+The plugin defines the function `iwhois` that takes a domain name as an argument:
+
+```
+$ iwhois github.com
+ Domain Name: GITHUB.COM
+ Registry Domain ID: 1264983250_DOMAIN_COM-VRSN
+ Registrar WHOIS Server: whois.markmonitor.com
+ Registrar URL: http://www.markmonitor.com
+ Updated Date: 2017-06-26T16:02:39Z
+ Creation Date: 2007-10-09T18:20:50Z
+ ...
+```
diff --git a/plugins/iwhois/iwhois.plugin.zsh b/plugins/iwhois/iwhois.plugin.zsh
index 38790bf28..22a75eec1 100644
--- a/plugins/iwhois/iwhois.plugin.zsh
+++ b/plugins/iwhois/iwhois.plugin.zsh
@@ -1,6 +1,3 @@
-# provide a whois command with a more accurate and up to date list of whois
-# servers using CNAMES via whois.geek.nz
-
function iwhois() {
resolver="whois.geek.nz"
tld=`echo ${@: -1} | awk -F "." '{print $NF}'`
From 6dcea3deca431649dd715aad8c16038751e5a923 Mon Sep 17 00:00:00 2001
From: Saurav Jaiswal
Date: Mon, 1 Oct 2018 20:15:56 +0530
Subject: [PATCH 314/644] fedora: add README and deprecation warning (#7178)
---
plugins/fedora/README.md | 1 +
1 file changed, 1 insertion(+)
create mode 100644 plugins/fedora/README.md
diff --git a/plugins/fedora/README.md b/plugins/fedora/README.md
new file mode 100644
index 000000000..6594799b3
--- /dev/null
+++ b/plugins/fedora/README.md
@@ -0,0 +1 @@
+The fedora plugin is deprecated. Use the [dnf plugin](https://github.com/robbyrussell/oh-my-zsh/tree/master/plugins/dnf) instead.
From ca8c7bad1419b65ba4d64fbb838cad1f592cb539 Mon Sep 17 00:00:00 2001
From: Brian Mitchell
Date: Tue, 2 Oct 2018 01:10:03 -0500
Subject: [PATCH 315/644] brew: add README (#7183)
---
plugins/brew/README.md | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
create mode 100644 plugins/brew/README.md
diff --git a/plugins/brew/README.md b/plugins/brew/README.md
new file mode 100644
index 000000000..d50dfc219
--- /dev/null
+++ b/plugins/brew/README.md
@@ -0,0 +1,19 @@
+# brew plugin
+
+The plugin adds several aliases for common [brew](https://brew.sh) commands.
+
+To use it, add `brew` to the plugins array of your zshrc file:
+```
+plugins=(... brew)
+```
+
+## Aliases
+
+| Alias | Command | Description |
+|--------|----------------------|---------------|
+| brewp | `brew pin` | Pin a specified formulae, preventing them from being upgraded when issuing the brew upgrade command. |
+| brews | `brew list -1` | List installed formulae, one entry per line, or the installed files for a given formulae. |
+| brewsp | `brew list --pinned` | Show the versions of pinned formulae, or only the specified (pinned) formulae if formulae are given. |
+| bubo | `brew update && brew outdated` | Fetch the newest version of Homebrew and all formulae, then list outdated formulae. |
+| bubc | `brew upgrade && brew cleanup` | Upgrade outdated, unpinned brews (with existing install options), then removes stale lock files and outdated downloads for formulae and casks, and removes old versions of installed formulae. |
+| bubo | `bubo && bubc` | Updates Homebrew, lists outdated formulae, upgrades oudated and unpinned formulae, and removes stale and outdated downloads and versions. |
From 28b5ec644c8c04dab6578d821b850f48b0925598 Mon Sep 17 00:00:00 2001
From: Alexandre Jacques
Date: Tue, 2 Oct 2018 04:00:33 -0300
Subject: [PATCH 316/644] django: add README (#7181)
---
plugins/django/README.md | 56 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
create mode 100644 plugins/django/README.md
diff --git a/plugins/django/README.md b/plugins/django/README.md
new file mode 100644
index 000000000..415f6b7ea
--- /dev/null
+++ b/plugins/django/README.md
@@ -0,0 +1,56 @@
+# Django plugin
+
+This plugin adds completion and hints for the [Django Project](https://www.djangoproject.com/) `manage.py` commands
+and options.
+
+To use it, add `django` to the plugins array in your zshrc file:
+
+```zsh
+plugins=(... django)
+```
+
+## Usage
+
+```zsh
+$> python manage.py (press here)
+```
+
+Would result in:
+
+```zsh
+cleanup -- remove old data from the database
+compilemessages -- compile .po files to .mo for use with gettext
+createcachetable -- creates table for SQL cache backend
+createsuperuser -- create a superuser
+dbshell -- run command-line client for the current database
+diffsettings -- display differences between the current settings and Django defaults
+dumpdata -- output contents of database as a fixture
+flush -- execute 'sqlflush' on the current database
+inspectdb -- output Django model module for tables in database
+loaddata -- install the named fixture(s) in the database
+makemessages -- pull out all strings marked for translation
+reset -- executes 'sqlreset' for the given app(s)
+runfcgi -- run this project as a fastcgi
+runserver -- start a lightweight web server for development
+...
+```
+
+If you want to see the options available for a specific command, try:
+
+```zsh
+$> python manage.py makemessages (press here)
+```
+
+And that would result in:
+
+```zsh
+--all -a -- re-examine all code and templates
+--domain -d -- domain of the message files (default: "django")
+--extensions -e -- file extension(s) to examine (default: ".html")
+--help -- display help information
+--locale -l -- locale to process (default: all)
+--pythonpath -- directory to add to the Python path
+--settings -- python path to settings module
+...
+```
+
From 8bc9f23b7cb85108754ea402a02d7ebf0041175f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Rub=C3=A9n=20Dur=C3=A1n=20Balda?=
Date: Tue, 2 Oct 2018 09:01:49 +0200
Subject: [PATCH 317/644] brew: fix typo in README (#7184)
---
plugins/brew/README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugins/brew/README.md b/plugins/brew/README.md
index d50dfc219..aab55ea39 100644
--- a/plugins/brew/README.md
+++ b/plugins/brew/README.md
@@ -16,4 +16,4 @@ plugins=(... brew)
| brewsp | `brew list --pinned` | Show the versions of pinned formulae, or only the specified (pinned) formulae if formulae are given. |
| bubo | `brew update && brew outdated` | Fetch the newest version of Homebrew and all formulae, then list outdated formulae. |
| bubc | `brew upgrade && brew cleanup` | Upgrade outdated, unpinned brews (with existing install options), then removes stale lock files and outdated downloads for formulae and casks, and removes old versions of installed formulae. |
-| bubo | `bubo && bubc` | Updates Homebrew, lists outdated formulae, upgrades oudated and unpinned formulae, and removes stale and outdated downloads and versions. |
+| bubu | `bubo && bubc` | Updates Homebrew, lists outdated formulae, upgrades oudated and unpinned formulae, and removes stale and outdated downloads and versions. |
From 69bd9ab3f040a8ad55b59cbd306aa91852184064 Mon Sep 17 00:00:00 2001
From: Zach Whitten
Date: Tue, 2 Oct 2018 13:58:14 -0400
Subject: [PATCH 318/644] mix: add README (#7185)
---
plugins/mix/README.md | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 plugins/mix/README.md
diff --git a/plugins/mix/README.md b/plugins/mix/README.md
new file mode 100644
index 000000000..63476dd6b
--- /dev/null
+++ b/plugins/mix/README.md
@@ -0,0 +1,18 @@
+# Mix plugin
+
+This plugin adds completions for the [Elixir's Mix build tool](https://hexdocs.pm/mix/Mix.html).
+
+To use it, add `mix` to the plugins array in your zshrc file:
+
+```zsh
+plugins=(... mix)
+```
+## Supported Task Types
+
+| Task Type | Documentation |
+|-------------------------|----------------------------------------------------------|
+| Elixir | [Elixir Lang](https://elixir-lang.org/) |
+| Phoenix v1.2.1 and below| [Phoenix](https://hexdocs.pm/phoenix/1.2.1/Phoenix.html) |
+| Phoenix v1.3.0 and above| [Phoenix](https://hexdocs.pm/phoenix/Phoenix.html) |
+| Ecto | [Ecto](https://hexdocs.pm/ecto/Ecto.html) |
+| Hex | [Hex](https://hex.pm/) |
From 64e262ea48e2cc7b3d3c861883323cc4fb250a80 Mon Sep 17 00:00:00 2001
From: Patrick Stegmann
Date: Tue, 2 Oct 2018 20:53:38 +0200
Subject: [PATCH 319/644] kubectl: add kga and kgaa aliases (#6744)
---
plugins/kubectl/kubectl.plugin.zsh | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh
index 680ec1a8c..4a6e5b53a 100644
--- a/plugins/kubectl/kubectl.plugin.zsh
+++ b/plugins/kubectl/kubectl.plugin.zsh
@@ -65,7 +65,11 @@ alias krh='kubectl rollout history'
alias kru='kubectl rollout undo'
# Port forwarding
-alias kpf="k port-forward"
+alias kpf="kubectl port-forward"
+
+# Tools for accessing all information
+alias kga='kubectl get all'
+alias kgaa='kubectl get all --all-namespaces'
# Logs
alias kl='kubectl logs'
From e5915858eb7f3119b8e292afe2d8aef8e58e34fa Mon Sep 17 00:00:00 2001
From: Benjamin Krein
Date: Tue, 2 Oct 2018 14:55:45 -0400
Subject: [PATCH 320/644] kubectl: add aliases for namespaces and configmaps
(#7102)
---
plugins/kubectl/kubectl.plugin.zsh | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh
index 4a6e5b53a..832a482e4 100644
--- a/plugins/kubectl/kubectl.plugin.zsh
+++ b/plugins/kubectl/kubectl.plugin.zsh
@@ -46,6 +46,18 @@ alias kei='kubectl edit ingress'
alias kdi='kubectl describe ingress'
alias kdeli='kubectl delete ingress'
+# Namespace management
+alias kgns='kubectl get namespaces'
+alias kens='kubectl edit namespace'
+alias kdns='kubectl describe namespace'
+alias kdelns='kubectl delete namespace'
+
+# ConfigMap management
+alias kgcm='kubectl get configmaps'
+alias kecm='kubectl edit configmap'
+alias kdcm='kubectl describe configmap'
+alias kdelcm='kubectl delete configmap'
+
# Secret management
alias kgsec='kubectl get secret'
alias kdsec='kubectl describe secret'
From 7e93b8409f40e38f20aafed26570ed8c54a70e0a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Serdar=20Dalg=C4=B1=C3=A7?=
Date: Tue, 2 Oct 2018 21:14:28 +0200
Subject: [PATCH 321/644] kubectl: add aliases for delete and watch/wide
options (#6790)
---
plugins/kubectl/kubectl.plugin.zsh | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh
index 832a482e4..59601f413 100644
--- a/plugins/kubectl/kubectl.plugin.zsh
+++ b/plugins/kubectl/kubectl.plugin.zsh
@@ -25,8 +25,14 @@ alias kcsc='kubectl config set-context'
alias kcdc='kubectl config delete-context'
alias kccc='kubectl config current-context'
+# General aliases
+alias kdel='kubectl delete'
+alias kdelf='kubectl delete -f'
+
# Pod management.
alias kgp='kubectl get pods'
+alias kgpw='kgp --watch'
+alias kgpwide='kgp -o wide'
alias kep='kubectl edit pods'
alias kdp='kubectl describe pods'
alias kdelp='kubectl delete pods'
@@ -36,6 +42,8 @@ alias kgpl='function _kgpl(){ label=$1; shift; kgp -l $label $*; };_kgpl'
# Service management.
alias kgs='kubectl get svc'
+alias kgsw='kgs --watch'
+alias kgswide='kgs -o wide'
alias kes='kubectl edit svc'
alias kds='kubectl describe svc'
alias kdels='kubectl delete svc'
@@ -65,6 +73,8 @@ alias kdelsec='kubectl delete secret'
# Deployment management.
alias kgd='kubectl get deployment'
+alias kgdw='kgd --watch'
+alias kgdwide='kgd -o wide'
alias ked='kubectl edit deployment'
alias kdd='kubectl describe deployment'
alias kdeld='kubectl delete deployment'
From a8e69686aa6c782eed3d749de5fb54758de10734 Mon Sep 17 00:00:00 2001
From: gramps
Date: Tue, 2 Oct 2018 14:16:50 -0500
Subject: [PATCH 322/644] chucknorris: add README (#7186)
---
plugins/chucknorris/README.md | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
create mode 100644 plugins/chucknorris/README.md
diff --git a/plugins/chucknorris/README.md b/plugins/chucknorris/README.md
new file mode 100644
index 000000000..be7b97e24
--- /dev/null
+++ b/plugins/chucknorris/README.md
@@ -0,0 +1,20 @@
+# chucknorris
+
+Chuck Norris fortunes plugin for oh-my-zsh
+
+**Maintainers**: [apjanke](https://github.com/apjanke) [maff](https://github.com/maff)
+
+To use it add `chucknorris` to the plugins array in you zshrc file.
+
+```zsh
+plugins=(... chucknorris)
+```
+
+
+Depends on fortune (and cowsay if using chuck_cow) being installed (available via homebrew, apt, ...). Perfectly suitable as MOTD.
+
+
+| Command | Description |
+| ----------- | ------------------------------- |
+| `chuck` | Print random Chuck Norris quote |
+| `chuck_cow` | Print quote in cowthink |
From b67883f9632932dde00c09498eb44ee4f3628288 Mon Sep 17 00:00:00 2001
From: gramps