mirror of
https://github.com/zdharma-continuum/zinit.git
synced 2026-09-10 07:36:38 -04:00
maint: consistent vim mode lines across all files (#393)
This commit is contained in:
parent
7f6dc7da6c
commit
49926e075a
|
|
@ -16,3 +16,11 @@ then
|
|||
fi
|
||||
rsync -raq /data-static/ /data
|
||||
fi
|
||||
|
||||
# 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
|
||||
|
|
|
|||
|
|
@ -59,3 +59,11 @@ zinit::pack-zsh() {
|
|||
|
||||
zinit pack"$version" for zsh
|
||||
}
|
||||
|
||||
# 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
|
||||
|
|
|
|||
|
|
@ -11,3 +11,11 @@ typeset -Ag ZINIT
|
|||
# etc to /data-static
|
||||
export ZINIT[HOME_DIR]=${ZINIT_HOME_DIR:-/data}
|
||||
export ZINIT[BIN_DIR]=/src
|
||||
|
||||
# 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
|
||||
|
|
|
|||
|
|
@ -31,4 +31,11 @@ then
|
|||
source "$INIT_FILE"
|
||||
fi
|
||||
|
||||
# vim: ft=zsh et ts=2 sw=2 :
|
||||
# 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
|
||||
|
||||
|
|
|
|||
|
|
@ -29,4 +29,11 @@ autoload -Uz compinit
|
|||
compinit
|
||||
zinit cdreplay -q
|
||||
|
||||
# vim: ft=zsh et ts=2 sw=2 :
|
||||
# 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
|
||||
|
||||
|
|
|
|||
|
|
@ -71,3 +71,11 @@ if [[ ${BASH_SOURCE[0]} == "${0}" ]]; then
|
|||
|
||||
build "${CONTAINER_IMAGE}" "${CONTAINER_TAG}" "${BUILD_ZSH_VERSION}" "$@"
|
||||
fi
|
||||
|
||||
# Local Variables:
|
||||
# mode: Shell-Script
|
||||
# sh-indentation: 2
|
||||
# indent-tabs-mode: nil
|
||||
# sh-basic-offset: 2
|
||||
# End:
|
||||
# vim: ft=bash sw=2 ts=2 et
|
||||
|
|
|
|||
|
|
@ -250,3 +250,11 @@ if [[ ${BASH_SOURCE[0]} == "${0}" ]]; then
|
|||
|
||||
run "$INIT_CONFIG" "${CMD[@]}"
|
||||
fi
|
||||
|
||||
# Local Variables:
|
||||
# mode: Shell-Script
|
||||
# sh-indentation: 2
|
||||
# indent-tabs-mode: nil
|
||||
# sh-basic-offset: 2
|
||||
# End:
|
||||
# vim: ft=bash sw=2 ts=2 et
|
||||
|
|
|
|||
|
|
@ -324,4 +324,10 @@ if [ -z "$NO_TUTORIAL" ]; then
|
|||
display_tutorial
|
||||
fi
|
||||
|
||||
# vim: set ft=sh et ts=2 sw=2 :
|
||||
# Local Variables:
|
||||
# mode: Shell-Script
|
||||
# sh-indentation: 2
|
||||
# indent-tabs-mode: nil
|
||||
# sh-basic-offset: 2
|
||||
# End:
|
||||
# vim: ft=bash sw=2 ts=2 et
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
#!/usr/bin/env zsh
|
||||
#
|
||||
# -*- mode: sh; sh-indentation: 2; indent-tabs-mode: nil; sh-basic-offset: 2; -*-
|
||||
#
|
||||
# Copyright (c) 2016-2020 Sebastian Gniazdowski and contributors
|
||||
# Copyright (c) 2021-2022 zdharma-continuum and contributors
|
||||
|
||||
|
|
@ -178,3 +176,11 @@ print
|
|||
[[ $+ZINIT_CNORM == 1 && -n $TERM ]] && eval $ZINIT_CNORM
|
||||
|
||||
unset ZINIT_CNORM ZINIT_CIVIS
|
||||
|
||||
# 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
|
||||
|
|
|
|||
|
|
@ -54,3 +54,11 @@ else
|
|||
fi
|
||||
|
||||
command "$UNPACKCMD[@]" 2>/dev/null | command "$DECOMPRESSCMD[@]"
|
||||
|
||||
# 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
|
||||
|
|
|
|||
|
|
@ -25,3 +25,11 @@ do
|
|||
done
|
||||
|
||||
print
|
||||
|
||||
# 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
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
#!/usr/bin/env zsh
|
||||
# -*- mode: sh; sh-indentation: 4; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
||||
|
||||
#
|
||||
# Copyright (c) YEAR USER_NAME
|
||||
|
||||
# An example of type-agnostic script/function, i.e.: the file can be run as a +x
|
||||
|
|
@ -37,4 +36,10 @@ fi
|
|||
# Use alternate marks [[[ and ]]] as the original ones can confuse nested
|
||||
# substitutions, e.g.: ${${${VAR}}}
|
||||
|
||||
# vim:ft=zsh:tw=80:sw=4:sts=4:et:foldmarker=[[[,]]]
|
||||
# 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 foldmarker=[[[,]]] foldmethod=marker
|
||||
|
|
|
|||
|
|
@ -484,4 +484,10 @@ elif (( __tfind_spe_call_count > 0 )); then
|
|||
(( __tfind_spe_call_count -- ))
|
||||
fi
|
||||
|
||||
# vim:ft=zsh
|
||||
# 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
|
||||
|
|
|
|||
|
|
@ -148,4 +148,10 @@ function $f {
|
|||
fi
|
||||
} # ]]]
|
||||
|
||||
# vim:ft=zsh:sw=4:sts=4:et:foldmarker=[[[,]]]:foldmethod=marker
|
||||
# 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 foldmarker=[[[,]]] foldmethod=marker
|
||||
|
|
|
|||
|
|
@ -3491,4 +3491,10 @@ ice_order=( ${${(s.|.)ZINIT[ice-list]}:#teleid} ${(@)${(@)${(@Akons:|:u)${ZINIT_
|
|||
print -- "\nAvailable ice-modifiers:\n\n${ice_order[*]}"
|
||||
} # ]]]
|
||||
|
||||
# vim:ft=zsh:sw=4:sts=4:et:foldmarker=[[[,]]]:foldmethod=marker
|
||||
# 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 foldmarker=[[[,]]] foldmethod=marker
|
||||
|
|
|
|||
|
|
@ -1474,15 +1474,9 @@ builtin source "${ZINIT[BIN_DIR]}/zinit-side.zsh" || {
|
|||
local url=https://$urlpart
|
||||
}
|
||||
|
||||
local HAS_MUSL
|
||||
if command -v musl-gcc >/dev/null 2>&1; then
|
||||
local HAS_MUSL=$MACHTYPE
|
||||
if (( ${+commands[curl]} )) || find /lib/ -maxdepth 1 -name '*musl*' >/dev/null 2>&1; then
|
||||
HAS_MUSL='linux-musl'
|
||||
elif command -v musl-gcc >/dev/null 2>&1; then
|
||||
HAS_MUSL='linux-musl'
|
||||
elif find /lib/ -maxdepth 1 -name '*musl*' >/dev/null 2>&1; then
|
||||
HAS_MUSL='linux-musl'
|
||||
else
|
||||
HAS_MUSL=$MACHTYPE
|
||||
fi
|
||||
|
||||
local -A matchstr
|
||||
|
|
@ -2616,4 +2610,11 @@ for its found {file}meson.build{pre} input file}:-because {flag}m{pre} \
|
|||
)
|
||||
}
|
||||
} # ]]]
|
||||
# vim:ft=zsh:sw=4:sts=4:et:foldmarker=[[[,]]]:foldmethod=marker
|
||||
|
||||
# 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 foldmarker=[[[,]]] foldmethod=marker
|
||||
|
|
|
|||
|
|
@ -390,4 +390,10 @@
|
|||
reply=( "$local_dirA/$dirnameA" "$svn_dirA" "$local_dirB/$dirnameB" "${fileB_there[1]##$local_dirB/$dirnameB/#}" )
|
||||
} # ]]]
|
||||
|
||||
# vim:ft=zsh:sw=2:sts=2:et:foldmarker=[[[,]]]:foldmethod=marker
|
||||
# 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 foldmarker=[[[,]]] foldmethod=marker
|
||||
|
|
|
|||
12
zinit.zsh
12
zinit.zsh
|
|
@ -1,4 +1,3 @@
|
|||
# -*- mode: sh; sh-indentation: 4; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
|
||||
# Copyright (c) 2016-2020 Sebastian Gniazdowski and contributors.
|
||||
|
||||
#
|
||||
|
|
@ -2051,7 +2050,8 @@ builtin setopt noaliases
|
|||
# FUNCTION: .zinit-formatter-th-bar. [[[
|
||||
.zinit-formatter-th-bar() {
|
||||
.zinit-formatter-bar-util ━ th-bar
|
||||
}
|
||||
} # ]]]
|
||||
|
||||
# FUNCTION: .zinit-formatter-bar-util. [[[
|
||||
.zinit-formatter-bar-util() {
|
||||
if [[ $LANG == (#i)*utf-8* ]]; then
|
||||
|
|
@ -3268,4 +3268,10 @@ zle -N zi-browse-symbol-pforwards zi-browse-symbol
|
|||
zstyle -s ':zinit:browse-symbol' key ZINIT_TMP || ZINIT_TMP='\eQ'
|
||||
[[ -n $ZINIT_TMP ]] && bindkey $ZINIT_TMP zi-browse-symbol
|
||||
|
||||
# vim:ft=zsh:sw=4:sts=4:et:foldmarker=[[[,]]]:foldmethod=marker
|
||||
# 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 foldmarker=[[[,]]] foldmethod=marker
|
||||
|
|
|
|||
Loading…
Reference in a new issue