mirror of
https://github.com/zsh-users/zsh-completions.git
synced 2026-09-17 16:00:19 +00:00
Use BSD and Gnu compatible option for tail
Use 'tail -n +2' instead of 'tail +2'. Semanctics are the same but 'tail +2' is not accepted by Gnu tail.
This commit is contained in:
committed by
Jan Sorensen
parent
fb1bf12319
commit
c0b6e2e510
+1
-1
@@ -18,7 +18,7 @@
|
||||
# helper function for completing available machines
|
||||
__machines() {
|
||||
declare -a machines_cmd
|
||||
machines_cmd=($(docker-machine ls|tail +2|awk '{print $1":"$3"("$4")"}'))
|
||||
machines_cmd=($(docker-machine ls|tail -n +2|awk '{print $1":"$3"("$4")"}'))
|
||||
_describe 'machines' machines_cmd
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user