Skip to content

Commit

Permalink
Fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ferrarimarco committed Nov 9, 2023
1 parent 49bd406 commit 868da35
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .shells/.all/interactive.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ command -v lesspipe >/dev/null 2>&1 && export LESSOPEN="|lesspipe %s"
# Prompt #
###############################################################################

if case "$COLORTERM" in "gnome-"*) true ;; *) false ;; esac && [ "$TERM" = "xterm" ] && infocmp gnome-256color >/dev/null 2>&1; then
if case "${COLORTERM:-""}" in "gnome-"*) true ;; *) false ;; esac && [ "$TERM" = "xterm" ] && infocmp gnome-256color >/dev/null 2>&1; then
export TERM='gnome-256color'
elif infocmp xterm-256color >/dev/null 2>&1; then
export TERM='xterm-256color'
Expand All @@ -151,13 +151,13 @@ fi
###############################################################################

if command -v git >/dev/null 2>&1; then
[ -z "$GIT_AUTHOR_NAME" ] && GIT_AUTHOR_NAME="Marco Ferrari"
[ -z "${GIT_AUTHOR_NAME:-}" ] && GIT_AUTHOR_NAME="Marco Ferrari"
[ "$(git config --global user.name)" != "$GIT_AUTHOR_NAME" ] && git config --global user.name "$GIT_AUTHOR_NAME"
[ -z "$GIT_AUTHOR_EMAIL" ] && GIT_AUTHOR_EMAIL="[email protected]"
[ -z "${GIT_AUTHOR_EMAIL:-}" ] && GIT_AUTHOR_EMAIL="[email protected]"
[ "$(git config --global user.email)" != "$GIT_AUTHOR_EMAIL" ] && git config --global user.email "$GIT_AUTHOR_EMAIL"
[ -z "$GH_USER" ] && GH_USER="ferrarimarco"
[ -z "${GH_USER:-}" ] && GH_USER="ferrarimarco"
[ "$(git config --global github.user)" != "$GH_USER" ] && git config --global github.user "$GH_USER"
[ -z "$GIT_COMMIT_SIGN" ] && GIT_COMMIT_SIGN=false
[ -z "${GIT_COMMIT_SIGN:-}" ] && GIT_COMMIT_SIGN=false
[ "$(git config --global commit.gpgsign)" != "$GIT_COMMIT_SIGN" ] && git config --global commit.gpgsign "$GIT_COMMIT_SIGN"
fi

Expand Down
2 changes: 1 addition & 1 deletion .shells/.zsh/login.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ unsetopt NOMATCH # Disable: If a pattern for filename generation has no matche
# History #
###############################################################################

[ -z "$HISTFILE" ] && HISTFILE="$HOME/.zsh_history"
[ -z "${HISTFILE:-}" ] && HISTFILE="$HOME/.zsh_history"

setopt APPEND_HISTORY # zsh sessions append their history list to the history file, rather than replace it.
setopt EXTENDED_HISTORY # record timestamp of command in HISTFILE
Expand Down

0 comments on commit 868da35

Please sign in to comment.