Skip to content

Instantly share code, notes, and snippets.

View asterwyx's full-sized avatar
👋
Morning!

asterwyx asterwyx

👋
Morning!
View GitHub Profile
#!/bin/bash
COPYRIGHT="UnionTech Software Technology Co., Ltd."
LICENSE="GPL-3.0-or-later"
DIR=$1
CURRENT_YEAR=`date +"%Y"`
FILES=`find $DIR -type f -name "*.h" -o -name "*.cpp"`
for FILE in $FILES;
do
PREPROCESSORS=`grep -n ^\# $FILE --binary-files=without-match`
if [ -n "$PREPROCESSORS" ]; then
local wezterm = require 'wezterm'
return {
font = wezterm.font_with_fallback {
'JetBrainsMonoNL Nerd Font',
'Noto Sans Mono CJK SC',
},
font_size = 14,
audible_bell = "Disabled",
use_fancy_tab_bar = false,
color_scheme = "Breeze",
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
### Added by Zinit's installer
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then