linting
This commit is contained in:
parent
c944ec3114
commit
3625317a2d
2 changed files with 15 additions and 15 deletions
14
bin/gradient
14
bin/gradient
|
@ -3,16 +3,16 @@ sleep 0.2 # let wezterm catch up
|
||||||
COLUMNS=$(tput cols)
|
COLUMNS=$(tput cols)
|
||||||
|
|
||||||
line() {
|
line() {
|
||||||
i=1
|
i=1
|
||||||
while [[ $i -le $COLUMNS ]]; do
|
while [[ $i -le $COLUMNS ]]; do
|
||||||
echo -en "\U1FB$((RANDOM % 3))$((RANDOM % 8+1))"
|
echo -en "\U1FB$((RANDOM % 3))$((RANDOM % 8 + 1))"
|
||||||
i=$((i + 1))
|
i=$((i + 1))
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
print-line() {
|
print-line() {
|
||||||
awk -v columns="$COLUMNS" -v s="$(line)" \
|
awk -v columns="$COLUMNS" -v s="$(line)" \
|
||||||
'BEGIN{
|
'BEGIN{
|
||||||
for (colnum = 0; colnum<columns+1; colnum++) {
|
for (colnum = 0; colnum<columns+1; colnum++) {
|
||||||
r = 255-(colnum*255/columns);
|
r = 255-(colnum*255/columns);
|
||||||
g = (colnum*510/columns);
|
g = (colnum*510/columns);
|
||||||
|
|
|
@ -3,20 +3,20 @@
|
||||||
|
|
||||||
# >>> conda initialize >>>
|
# >>> conda initialize >>>
|
||||||
# !! Contents within this block are managed by 'conda init' !!
|
# !! Contents within this block are managed by 'conda init' !!
|
||||||
__conda_setup="$('$HOME/mambaforge/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
|
__conda_setup="$('$HOME/mambaforge/bin/conda' 'shell.zsh' 'hook' 2>/dev/null)"
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
eval "$__conda_setup"
|
eval "$__conda_setup"
|
||||||
else
|
else
|
||||||
if [ -f "$HOME/mambaforge/etc/profile.d/conda.sh" ]; then
|
if [ -f "$HOME/mambaforge/etc/profile.d/conda.sh" ]; then
|
||||||
. "$HOME/mambaforge/etc/profile.d/conda.sh"
|
. "$HOME/mambaforge/etc/profile.d/conda.sh"
|
||||||
else
|
else
|
||||||
export PATH="$HOME/mambaforge/bin:$PATH"
|
export PATH="$HOME/mambaforge/bin:$PATH"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
unset __conda_setup
|
unset __conda_setup
|
||||||
|
|
||||||
if [ -f "$HOME/mambaforge/etc/profile.d/mamba.sh" ]; then
|
if [ -f "$HOME/mambaforge/etc/profile.d/mamba.sh" ]; then
|
||||||
. "$HOME/mambaforge/etc/profile.d/mamba.sh"
|
. "$HOME/mambaforge/etc/profile.d/mamba.sh"
|
||||||
fi
|
fi
|
||||||
# <<< conda initialize <<<
|
# <<< conda initialize <<<
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue