1 Star 0 Fork 0

mamh-mixed/powerline-tmux

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
color_palette.sh 372 Bytes
一键复制 编辑 原始数据 按行查看 历史
#!/usr/bin/env bash
# Print tmux color palette.
# Idea from http://superuser.com/questions/285381/how-does-the-tmux-color-palette-work
for i in $(seq 0 4 255); do
for j in $(seq $i $(expr $i + 3)); do
for k in $(seq 1 $(expr 3 - ${#j})); do
printf " "
done
printf "\x1b[38;5;${j}mcolour${j}"
[[ $(expr $j % 4) != 3 ]] && printf " "
done
printf "\n"
done
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mamh-mixed/powerline-tmux.git
git@gitee.com:mamh-mixed/powerline-tmux.git
mamh-mixed
powerline-tmux
powerline-tmux
master

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385