From 37f304afe6eb48bfa0eaae3d144a1e3505d92333 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20=F0=9F=9A=B6?= Date: Fri, 3 Dec 2021 19:59:39 +1100 Subject: [PATCH] Add color test --- color-test.sh | 21 +++++++++++++++++++++ zshrc.zsh | 3 +-- 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100755 color-test.sh diff --git a/color-test.sh b/color-test.sh new file mode 100755 index 0000000..2e3bc8d --- /dev/null +++ b/color-test.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# Based on: https://gist.github.com/XVilka/8346728 + +awk -v columns=$(tput cols || echo 80) 'BEGIN{ + for (column = 0; column255) g = 510-g; + printf "\033[48;2;%d;%d;%dm", r,g,b; + printf "%s\033[0m", " "; + } +}' diff --git a/zshrc.zsh b/zshrc.zsh index 9d62865..940b167 100644 --- a/zshrc.zsh +++ b/zshrc.zsh @@ -132,7 +132,7 @@ activate_homebrew() { ################################################################################ install_cli_tools() { - brew_install_or_upgrade git fd ripgrep fzf htop jq gnupg tmux + brew_install_or_upgrade git fd ripgrep fzf htop jq gnupg tree tmux # Install fzf key bindings $(brew --prefix fzf)/install --key-bindings --completion --no-update-rc --no-bash --no-fish ln -s $MYZSH_INSTALLED_DIR/tmux.conf $HOME/.tmux.conf @@ -160,7 +160,6 @@ activate_cli_tools () { install_antigen() { brew_install_or_upgrade antigen - # git_install_or_update $ANTIGEN_DIRECTORY "zsh-users/antigen.git" activate_antigen }