diff options
Diffstat (limited to 'dotfiles')
| -rw-r--r-- | dotfiles/agents/Agents.md | 4 | ||||
| -rw-r--r-- | dotfiles/bash/.bash_logout | 3 | ||||
| -rw-r--r-- | dotfiles/bash/.bash_profile | 5 | ||||
| -rw-r--r-- | dotfiles/bash/.bashrc | 26 | ||||
| -rw-r--r-- | dotfiles/fcitx/.config/fcitx5/conf/classicui.conf | 34 | ||||
| -rw-r--r-- | dotfiles/fcitx/.config/fcitx5/conf/pinyin.conf | 155 | ||||
| -rw-r--r-- | dotfiles/git/.gitconfig | 16 | ||||
| -rw-r--r-- | dotfiles/go/.config/go/env | 2 | ||||
| -rw-r--r-- | dotfiles/kde/.config/environment.d/electron.conf | 1 | ||||
| -rw-r--r-- | dotfiles/npm/.npmrc | 3 | ||||
| -rw-r--r-- | dotfiles/uv/.config/uv/uv.toml | 4 | ||||
| -rw-r--r-- | dotfiles/vscode/.config/Code - OSS/User/keybindings.json | 3 | ||||
| -rw-r--r-- | dotfiles/vscode/.config/Code - OSS/User/settings.json | 18 |
13 files changed, 274 insertions, 0 deletions
diff --git a/dotfiles/agents/Agents.md b/dotfiles/agents/Agents.md new file mode 100644 index 0000000..524f3fb --- /dev/null +++ b/dotfiles/agents/Agents.md @@ -0,0 +1,4 @@ +# 全局 AI 要求 + +- 提交代码时必须使用详细的中文描述:commit message 使用中文,并说明变更内容、原因和验证方式。 +- AI 在交互过程中的对话输出内容尽量使用中文。 diff --git a/dotfiles/bash/.bash_logout b/dotfiles/bash/.bash_logout new file mode 100644 index 0000000..0e4e4f1 --- /dev/null +++ b/dotfiles/bash/.bash_logout @@ -0,0 +1,3 @@ +# +# ~/.bash_logout +# diff --git a/dotfiles/bash/.bash_profile b/dotfiles/bash/.bash_profile new file mode 100644 index 0000000..5545f00 --- /dev/null +++ b/dotfiles/bash/.bash_profile @@ -0,0 +1,5 @@ +# +# ~/.bash_profile +# + +[[ -f ~/.bashrc ]] && . ~/.bashrc diff --git a/dotfiles/bash/.bashrc b/dotfiles/bash/.bashrc new file mode 100644 index 0000000..0826f83 --- /dev/null +++ b/dotfiles/bash/.bashrc @@ -0,0 +1,26 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +alias ls='ls --color=auto' +alias grep='grep --color=auto' +PS1='[\u@\h \W]\$ ' + +export PATH=$HOME/.local/npm/bin:$HOME/.local/share/pnpm/bin:$PATH + +export FNM_NODE_DIST_MIRROR=https://mirrors.nju.edu.cn/nodejs-release/ +export RUSTUP_UPDATE_ROOT=https://mirror.nju.edu.cn/rustup/rustup +export RUSTUP_DIST_SERVER=https://mirror.nju.edu.cn/rustup + +eval "$(fnm env --use-on-cd)" + +# # pnpm +# export PNPM_HOME='/home/shu/.local/share/pnpm' +# case ":$PATH:" in +# ":$PNPM_HOME/bin:"*) ;; +# *) export PATH="$PNPM_HOME/bin:$PATH" ;; +# esac +# # pnpm end diff --git a/dotfiles/fcitx/.config/fcitx5/conf/classicui.conf b/dotfiles/fcitx/.config/fcitx5/conf/classicui.conf new file mode 100644 index 0000000..77934db --- /dev/null +++ b/dotfiles/fcitx/.config/fcitx5/conf/classicui.conf @@ -0,0 +1,34 @@ +# 垂直候选列表 +Vertical Candidate List=True +# 使用鼠标滚轮翻页 +WheelForPaging=True +# 字体 +Font="Sans 10" +# 菜单字体 +MenuFont="Sans 10" +# 托盘字体 +TrayFont="Sans Bold 10" +# 托盘标签轮廓颜色 +TrayOutlineColor=#000000 +# 托盘标签文本颜色 +TrayTextColor=#ffffff +# 优先使用文字图标 +PreferTextIcon=False +# 在图标中显示布局名称 +ShowLayoutNameInIcon=True +# 使用输入法的语言来显示文字 +UseInputMethodLanguageToDisplayText=True +# 主题 +Theme=plasma +# 深色主题 +DarkTheme=plasma +# 跟随系统浅色/深色设置 +UseDarkTheme=False +# 当被主题和桌面支持时使用系统的重点色 +UseAccentColor=True +# 在 X11 上针对不同屏幕使用单独的 DPI +PerScreenDPI=False +# 固定 Wayland 的字体 DPI +ForceWaylandDPI=0 +# 在 Wayland 下启用分数缩放 +EnableFractionalScale=True diff --git a/dotfiles/fcitx/.config/fcitx5/conf/pinyin.conf b/dotfiles/fcitx/.config/fcitx5/conf/pinyin.conf new file mode 100644 index 0000000..83afecc --- /dev/null +++ b/dotfiles/fcitx/.config/fcitx5/conf/pinyin.conf @@ -0,0 +1,155 @@ +# 双拼方案 +# ShuangpinProfile=Ziranma +# 显示当前双拼模式 +# ShowShuangpinMode=True +# 每页候选词 +# PageSize=7 +# 显示英文候选词 +# SpellEnabled=True +# 显示符号候选词 +# SymbolsEnabled=True +# 显示拆字候选词 +# ChaiziEnabled=True +# 启用 Unicode CJK 拓展区 B 之后的更多字符 +# ExtBEnabled=True +# 输入 h(横),s(竖),p(撇),n(捺),z(折) 时显示笔画候选词 +# StrokeCandidateEnabled=True +# 启用云拼音 +# CloudPinyinEnabled=False +# 云拼音候选词顺序 +# CloudPinyinIndex=2 +# 加载云拼音的时候显示动画 +# CloudPinyinAnimation=True +# 总是显示云拼音的占位符 +# KeepCloudPinyinPlaceHolder=False +# 预编辑模式 +# PreeditMode="Composing pinyin" +# 将嵌入预编辑文本的光标固定在开头 +# PreeditCursorPositionAtBeginning=True +# 在预编辑中显示完整拼音 +# PinyinInPreedit=False +# 启用预测 +# Prediction=False +# 为下次输入预测保留当前输入的文本 +# KeepCurrentContext=True +# 预测数量 +# PredictionSize=49 +# 预测时退格键的行为 +# BackspaceBehaviorOnPrediction="Backspace when not using on-screen keyboard" +# 切换输入法时的行为 +# SwitchInputMethodBehavior="Commit current preedit" +# 学习 +# Learning=True +# 选择第二个候选词 +# SecondCandidate= +# 选择第三个候选词 +# ThirdCandidate= +# 使用数字键盘选词 +# UseKeypadAsSelection=False +# 选词末字 +# ChooseLastCharFromPhrase=bracketright +# 使用退格键取消选词 +# BackSpaceToUnselect=True +# 句子数量 +# Number of sentence=2 +# 词组候选词数 +# WordCandidateLimit=15 +# 输入长于...时提示长词 (设置为 0 时禁用) +# LongWordLengthLimit=4 +# 快速输入的触发键 +QuickPhraseKey= +# 使用 V 来触发快速输入 +# VAsQuickphrase=True +# FirstRun +FirstRun=False + +# [ForgetWord] +# 0=Control+7 + +# [PrevPage] +# 0=minus +# 1=Up +# 2=KP_Up +# 3=Page_Up + +# [NextPage] +# 0=equal +# 1=Down +# 2=KP_Down +# 3=Next + +# [PrevCandidate] +# 0=Shift+Tab + +# [NextCandidate] +# 0=Tab + +# [CurrentCandidate] +# 0=space +# 1=KP_Space + +# [CommitRawInput] +# 0=Return +# 1=KP_Enter +# 2=Control+Return +# 3=Control+KP_Enter +# 4=Shift+Return +# 5=Shift+KP_Enter +# 6=Control+Shift+Return +# 7=Control+Shift+KP_Enter + +# [ChooseCharFromPhrase] +# 0=bracketleft + +# [FilterByStroke] +# 0=grave + +# [QuickPhraseTriggerRegex] +# 0=.(/|@)$ +# 1="^(www|bbs|forum|mail)\\." +# 2=^(http|https|ftp|telnet|mailto): + +# [Fuzzy] +# ue -> ve +# VE_UE=True +# 常见错误 +# NG_GN=True +# 小写时匹配字母 +# LowerCaseMatchLetter=True +# 内模糊音节 (xian -> xi'an) +# Inner=True +# 短拼音的内模糊音节 (qie -> qi'e) +# InnerShort=True +# 匹配不完整的元音 (e -> en, eng, ei) +# PartialFinal=False +# 输入长度大于 4 时进行部分双拼匹配 +# PartialSp=False +# u <-> v +# V_U=False +# an <-> ang +# AN_ANG=False +# en <-> eng +# EN_ENG=False +# ian <-> iang +# IAN_IANG=False +# in <-> ing +# IN_ING=False +# u <-> ou +# U_OU=False +# uan <-> uang +# UAN_UANG=False +# c <-> ch +# C_CH=False +# f <-> h +# F_H=False +# l <-> n +# L_N=False +# l <-> r +# L_R=False +# s <-> sh +# S_SH=False +# z <-> zh +# Z_ZH=False +# 纠错布局 +# Correction=None + diff --git a/dotfiles/git/.gitconfig b/dotfiles/git/.gitconfig new file mode 100644 index 0000000..a675a80 --- /dev/null +++ b/dotfiles/git/.gitconfig @@ -0,0 +1,16 @@ +[init] + defaultBranch = main +[user] + email = nvcsadjkojf@outlook.com + name = shu +[core] + pager = delta +[interactive] + diffFilter = delta --color-only +[delta] + navigate = true + dark = true +[merge] + conflictStyle = zdiff3 +[alias] + l = log --oneline diff --git a/dotfiles/go/.config/go/env b/dotfiles/go/.config/go/env new file mode 100644 index 0000000..fc844eb --- /dev/null +++ b/dotfiles/go/.config/go/env @@ -0,0 +1,2 @@ +GOPROXY=https://goproxy.cn,direct +GOSUMDB=sum.golang.google.cn
\ No newline at end of file diff --git a/dotfiles/kde/.config/environment.d/electron.conf b/dotfiles/kde/.config/environment.d/electron.conf new file mode 100644 index 0000000..4cc8650 --- /dev/null +++ b/dotfiles/kde/.config/environment.d/electron.conf @@ -0,0 +1 @@ +ELECTRON_FORCE_WINDOW_MENU_BAR=1 diff --git a/dotfiles/npm/.npmrc b/dotfiles/npm/.npmrc new file mode 100644 index 0000000..4b97c69 --- /dev/null +++ b/dotfiles/npm/.npmrc @@ -0,0 +1,3 @@ +loglevel=http +registry=https://registry.npmmirror.com/ +prefix=/home/shu/.local/npm
\ No newline at end of file diff --git a/dotfiles/uv/.config/uv/uv.toml b/dotfiles/uv/.config/uv/uv.toml new file mode 100644 index 0000000..6a077ac --- /dev/null +++ b/dotfiles/uv/.config/uv/uv.toml @@ -0,0 +1,4 @@ +[[index]] +name = "nju" +url = "https://mirror.nju.edu.cn/pypi/web/simple" +default = true diff --git a/dotfiles/vscode/.config/Code - OSS/User/keybindings.json b/dotfiles/vscode/.config/Code - OSS/User/keybindings.json new file mode 100644 index 0000000..9e824cf --- /dev/null +++ b/dotfiles/vscode/.config/Code - OSS/User/keybindings.json @@ -0,0 +1,3 @@ +// Place your key bindings in this file to override the defaults +[ +]
\ No newline at end of file diff --git a/dotfiles/vscode/.config/Code - OSS/User/settings.json b/dotfiles/vscode/.config/Code - OSS/User/settings.json new file mode 100644 index 0000000..e883c81 --- /dev/null +++ b/dotfiles/vscode/.config/Code - OSS/User/settings.json @@ -0,0 +1,18 @@ +{ + "window.menuStyle": "native", + "window.dialogStyle": "native", + "window.titleBarStyle": "native", + "window.controlsStyle": "native", + "window.title": "${rootName}${separator}${dirty}${activeEditorShort}${separator}${appName}", + + "chat.disableAIFeatures": true, + + "editor.fontSize": 14, + "editor.tabSize": 2, + "editor.renderWhitespace": "boundary", + "editor.wordWrap": "off", + "editor.rulers": [80, 120], + "editor.renderControlCharacters": true, + "editor.fontLigatures": true, + "workbench.iconTheme": "vscode-icons", +}
\ No newline at end of file |
