Refactor: Replace users with home

This commit is contained in:
caem 2024-07-25 22:12:51 +02:00
parent 36a22dc58a
commit aaaf4808f3
Signed by: caem
GPG key ID: 69A830D03203405F
65 changed files with 17 additions and 25 deletions

View file

@ -1,18 +0,0 @@
#!/usr/bin/env zsh
if [ -z "$SYNTAX_PLUGIN" ]; then
import_file="/usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
else
import_file="$SYNTAX_PLUGIN"
fi
if [ ! -f "$import_file" ]; then
if [ ! -d "$HOME/.cache/zsh-syntax-highlighting" ]; then
echo "Installing zsh-syntax-highlighting..."
git clone "https://github.com/zsh-users/zsh-syntax-highlighting.git" "$HOME/.cache/zsh-syntax-highlighting"
fi
import_file="$HOME/.cache/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
fi
source "$import_file"