feat: install home from nvim

This commit is contained in:
2024-01-16 18:48:20 +02:00
parent 78dcb75348
commit da52f76bb7
5 changed files with 25 additions and 12 deletions

View File

@@ -1,7 +1,13 @@
#!/usr/bin/env zsh
export USE_COLORS=$(tput colors 2>/dev/null)
# colors
function color() {
if [[ -z "$USE_COLORS" || "$USE_COLORS" -lt 8 ]]; then
echo "$@"
return
fi
local c="$1"
shift
echo -e "\033[0;${c}m$@\033[0m"