Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
pandanoir committed Feb 7, 2025
1 parent a4cf904 commit b265cd8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ info() { echo -e "\033[0;34m[INFO]\033[0;39m $1"; }
warn() { echo -e "\033[0;33m[WARN]\033[0;39m $1"; }

DOTDIR="$HOME/dotfiles"
[ "${XDG_CONFIG_HOME:+defined}" ] || XDG_CONFIG_HOME="$HOME/.config"
[ "${XDG_CACHE_HOME:+defined}" ] || XDG_CACHE_HOME="$HOME/.cache"
[ "${XDG_DATA_HOME:+defined}" ] || XDG_DATA_HOME="$HOME/.local/share"
[ "${ZDOTDIR:+defined}" ] || ZDOTDIR="$XDG_CONFIG_HOME/zsh"
: "${XDG_CONFIG_HOME:="$HOME/.config"}"
: "${XDG_CACHE_HOME:="$HOME/.cache"}"
: "${XDG_DATA_HOME:="$HOME/.local/share"}"
: "${ZDOTDIR:="$XDG_CONFIG_HOME/zsh"}"

if ! has git; then
warn "you must install git!"
Expand Down

0 comments on commit b265cd8

Please sign in to comment.