Compare commits
No commits in common. "0e040a9f5695bc75db92535d96eab6af14f5b5d7" and "c944ec311442b0e066bbc1bc0bd7990003a89d32" have entirely different histories.
0e040a9f56
...
c944ec3114
3 changed files with 18 additions and 18 deletions
6
Makefile
6
Makefile
|
@ -2,9 +2,9 @@
|
|||
.PHONY: lint
|
||||
lint: lint.py lint.sh
|
||||
|
||||
## lint.py | lint python files
|
||||
.PHONY: lint.py
|
||||
lint.py:
|
||||
## lint.python | lint python files
|
||||
.PHONY: lint.python
|
||||
lint.python:
|
||||
black $(shell find -type f -name "*.py")
|
||||
|
||||
## lint.sh | lint shell files
|
||||
|
|
14
bin/gradient
14
bin/gradient
|
@ -3,16 +3,16 @@ sleep 0.2 # let wezterm catch up
|
|||
COLUMNS=$(tput cols)
|
||||
|
||||
line() {
|
||||
i=1
|
||||
while [[ $i -le $COLUMNS ]]; do
|
||||
echo -en "\U1FB$((RANDOM % 3))$((RANDOM % 8 + 1))"
|
||||
i=$((i + 1))
|
||||
done
|
||||
i=1
|
||||
while [[ $i -le $COLUMNS ]]; do
|
||||
echo -en "\U1FB$((RANDOM % 3))$((RANDOM % 8+1))"
|
||||
i=$((i + 1))
|
||||
done
|
||||
}
|
||||
|
||||
print-line() {
|
||||
awk -v columns="$COLUMNS" -v s="$(line)" \
|
||||
'BEGIN{
|
||||
awk -v columns="$COLUMNS" -v s="$(line)" \
|
||||
'BEGIN{
|
||||
for (colnum = 0; colnum<columns+1; colnum++) {
|
||||
r = 255-(colnum*255/columns);
|
||||
g = (colnum*510/columns);
|
||||
|
|
|
@ -3,20 +3,20 @@
|
|||
|
||||
# >>> conda initialize >>>
|
||||
# !! 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
|
||||
eval "$__conda_setup"
|
||||
eval "$__conda_setup"
|
||||
else
|
||||
if [ -f "$HOME/mambaforge/etc/profile.d/conda.sh" ]; then
|
||||
. "$HOME/mambaforge/etc/profile.d/conda.sh"
|
||||
else
|
||||
export PATH="$HOME/mambaforge/bin:$PATH"
|
||||
fi
|
||||
if [ -f "$HOME/mambaforge/etc/profile.d/conda.sh" ]; then
|
||||
. "$HOME/mambaforge/etc/profile.d/conda.sh"
|
||||
else
|
||||
export PATH="$HOME/mambaforge/bin:$PATH"
|
||||
fi
|
||||
fi
|
||||
unset __conda_setup
|
||||
|
||||
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
|
||||
# <<< conda initialize <<<
|
||||
|
||||
|
|
Loading…
Reference in a new issue