Naive fixing of linter errors
This commit is contained in:
parent
21c40fa774
commit
ef73a11e51
27 changed files with 207 additions and 194 deletions
|
|
@ -1,3 +1,4 @@
|
|||
#!/bin/zsh
|
||||
# Clone zgen if you haven't already
|
||||
check_zgen_installation() {
|
||||
if [[ -z "$ZGEN_PARENT_DIR" ]]; then
|
||||
|
|
@ -8,10 +9,11 @@ check_zgen_installation() {
|
|||
if [[ ! -d "$ZGEN_PARENT_DIR" ]]; then
|
||||
mkdir -p "$ZGEN_PARENT_DIR"
|
||||
fi
|
||||
pushd $ZGEN_PARENT_DIR
|
||||
cd $ZGEN_PARENT_DIR || return
|
||||
git clone https://github.com/tarjoilija/zgen.git $ZGEN_DIR
|
||||
popd
|
||||
fi
|
||||
# shellcheck source=/home/marty/.config/zgen/zgen.zsh
|
||||
# shellcheck disable=SC1091
|
||||
source $ZGEN_DIR/zgen.zsh
|
||||
unset ZGEN_PARENT_DIR
|
||||
}
|
||||
|
|
@ -34,8 +36,8 @@ load_plugins() {
|
|||
|
||||
# Set keystrokes for substring searching
|
||||
zmodload zsh/terminfo
|
||||
bindkey "$terminfo[kcuu1]" history-substring-search-up
|
||||
bindkey "$terminfo[kcud1]" history-substring-search-down
|
||||
bindkey "${terminfo[kcuu1]:?}" history-substring-search-up
|
||||
bindkey "${terminfo[kcud1]:?}" history-substring-search-down
|
||||
|
||||
# Automatically run zgen update and zgen selfupdate every 7 days.
|
||||
zgen load unixorn/autoupdate-zgen
|
||||
|
|
@ -91,7 +93,7 @@ load_plugins() {
|
|||
zgen oh-my-zsh plugins/screen
|
||||
zgen oh-my-zsh plugins/vagrant
|
||||
# check for autojump install before applying plugin
|
||||
if [ type autojump >/dev/null 2>&1 ]; then
|
||||
if type autojump >/dev/null 2>&1; then
|
||||
zgen oh-my-zsh plugins/autojump
|
||||
fi
|
||||
zgen oh-my-zsh plugins/tmux
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue