mirror of
https://github.com/jimeh/dotfiles.git
synced 2026-02-19 13:46:41 +00:00
Format shell scripts with shfmt
This commit is contained in:
11
zshrc
11
zshrc
@@ -27,9 +27,10 @@ ZINIT[HOME_DIR]="$HOME/.local/zsh/zinit"
|
||||
ZINIT[BIN_DIR]="${ZINIT[HOME_DIR]}/bin"
|
||||
|
||||
# Ask to clone Zinit if it's not already available on disk.
|
||||
[ ! -d "${ZINIT[BIN_DIR]}" ] && \
|
||||
read -q "REPLY?Zinit not installed, clone to ${ZINIT[BIN_DIR]}? [y/N]:" && \
|
||||
echo && git clone "https://github.com/zdharma/zinit.git" "${ZINIT[BIN_DIR]}"
|
||||
[ ! -d "${ZINIT[BIN_DIR]}" ] &&
|
||||
read -q "REPLY?Zinit not installed, clone to ${ZINIT[BIN_DIR]}? [y/N]:" &&
|
||||
echo &&
|
||||
git clone --depth=1 "https://github.com/zdharma/zinit.git" "${ZINIT[BIN_DIR]}"
|
||||
|
||||
# Load Zinit
|
||||
source "${ZINIT[BIN_DIR]}/zinit.zsh"
|
||||
@@ -64,7 +65,6 @@ zinit light zsh-users/zsh-completions
|
||||
zinit ice wait lucid atload"!_zsh_autosuggest_start"
|
||||
zinit light zsh-users/zsh-autosuggestions
|
||||
|
||||
|
||||
# ==============================================================================
|
||||
# Private Dotfiles
|
||||
# ==============================================================================
|
||||
@@ -73,7 +73,6 @@ if [ -f "$DOTPFILES/zshrc" ]; then
|
||||
source "$DOTPFILES/zshrc"
|
||||
fi
|
||||
|
||||
|
||||
# ==============================================================================
|
||||
# Tool specific setup
|
||||
# ==============================================================================
|
||||
@@ -101,7 +100,6 @@ source "$DOTZSH/python.zsh"
|
||||
source "$DOTZSH/ruby.zsh"
|
||||
source "$DOTZSH/rust.zsh"
|
||||
|
||||
|
||||
# ==============================================================================
|
||||
# Basic Z-Shell settings
|
||||
# ==============================================================================
|
||||
@@ -115,7 +113,6 @@ unsetopt share_history
|
||||
# Disable attempted correction of commands (is wrong 98% of the time).
|
||||
unsetopt correctall
|
||||
|
||||
|
||||
# ==============================================================================
|
||||
# Local Overrides
|
||||
# ==============================================================================
|
||||
|
||||
Reference in New Issue
Block a user