Skip to content

zsh neovim kitty fonts fcitx5 可以单独启用其中一个

License

Notifications You must be signed in to change notification settings

joyanhui/LeiDotFile

Repository files navigation

迁移

因为系统更换到nixos,这里不在维护。更换到 nixos-config 私有仓库

dotFile

配置文件目录 ~/.config/LeiDotFile,然后使用软连接到对应位置
私密文件到目录 ~/.config/LeiPrivateFile/ 也使用端连接到对应位置

  • zsh 自定义
  • neovim Nvchad + elulcao + 自定义
  • kitty vytorrennan + 自定义
  • terminator 自定义配置
  • fonts 字体ttf文件

镜像

Gitee [延迟更新]
GitHub [最新版本]

安装步骤

全量安装

按需安装

可以按需安装 步骤: 在一个临时目录按需pull,然后单独处理对应的dot file。
需要 git --version>=2.5 bash/sh/zsh 后面的脚本不完全兼容fish。 不再维护了,因为太麻烦了。

临时目录

bash
mkdir -p ~/tmp_LeiDotFile
cat > ~/tmp_LeiDotFile/bash.sh << \EOF
#!/bin/bash
#export GitUrl=https://gitee.com/joyanhui/LeiDotFile.git
export GitUrl=https://mirror.ghproxy.com/https://github.com/joyanhui/LeiDotFile

mkdir -p ~/.config/LeiDotFile/
mkdir -p ~/.config/LeiPrivateFile/
rm -rf ~/tmp_LeiDotFile/cache
mkdir -p ~/tmp_LeiDotFile/cache && cd ~/tmp_LeiDotFile/cache
git init
git remote add origin ${GitUrl}
git config core.sparsecheckout true
EOF

字体安装步骤

zsh和nvim需要里面的JetBrainsMonoNerd字体,不然比较难看

bash
bash ~/tmp_LeiDotFile/bash.sh
cd ~/tmp_LeiDotFile/cache
echo "fonts" >  .git/info/sparse-checkout
git pull origin main:
# 复制到 ~/.config/LeiDotFile/
cp -r ./fonts ~/.config/LeiDotFile/fonts
# 需要sudo权限 软连接到/usr/local/share/fonts
sudo ln -s ~/.config/LeiDotFile/fonts /usr/share/fonts/LeiDotFile_fonts
fc-cache -f

zsh 安装步骤

bash
bash ~/tmp_LeiDotFile/bash.sh
cd ~/tmp_LeiDotFile/cache
echo "ZshLight" >  .git/info/sparse-checkout
git pull origin main:

cp -r ./ZshLight ~/.config/LeiDotFile/ZshLight
mv  ~/.zshrc ~/.zshrc_bak
mv ~/.zsh_history ~/.config/LeiPrivateFile/zsh_history
mv ~/.bash_history ~/.config/LeiPrivateFile/bash_history
mv ~/.bashrc ~/.config/LeiPrivateFile/bashrc
ln -s ~/.config/LeiPrivateFile/bash_history  ~/.bash_history
ln -s ~/.config/LeiPrivateFile/bashrc  ~/.bashrc
ln -s ~/.config/LeiDotFile/ZshLight/zshrc  ~/.zshrc

fcitx5

bash
bash ~/tmp_LeiDotFile/bash.sh
cd ~/tmp_LeiDotFile/cache
echo "fcitx5" >  .git/info/sparse-checkout
git pull origin main:

cp -r ./fcitx5 ~/.config/LeiDotFile/fcitx5
rm ~/.config/fcitx5/conf
ln -s ~/.config/LeiDotFile/fcitx5/conf ~/.config/fcitx5/conf
rm -rf ~/.local/share/fcitx5/pinyin/dictionaries
ln -s  ~/.config/LeiDotFile/fcitx5/dictionaries  ~/.local/share/fcitx5/pinyin/dictionaries
# 按需处理用户词典
rm  ~/.local/share/fcitx5/pinyin/user.dict
ln -s ~/.config/LeiPrivateFile/fcitx5/user.dict ~/.local/share/fcitx5/pinyin/user.dict
rm  ~/.local/share/fcitx5/pinyin/user.history
ln -s ~/.config/LeiPrivateFile/fcitx5/user.history ~/.local/share/fcitx5/pinyin/user.history

kitty 安装步骤

bash
bash ~/tmp_LeiDotFile/bash.sh
cd ~/tmp_LeiDotFile/cache
echo "kitty" >  .git/info/sparse-checkout
git pull origin main:

cp -r ./kitty ~/.config/LeiDotFile/kitty
mv ~/.config/kitty ~/.config/kitty_bak
ln -s ~/.config/LeiDotFile/kitty ~/.config/kitty

terminator 安装步骤

bash
bash ~/tmp_LeiDotFile/bash.sh
cd ~/tmp_LeiDotFile/cache
echo "terminator" >  .git/info/sparse-checkout
git pull origin main:
# 复制到 ~/.config/LeiDotFile/
cp -r ./terminator ~/.config/LeiDotFile/terminator
mv ~/.config/terminator ~/.config/terminator_bak
ln -s ~/.config/LeiDotFile/terminator ~/.config/terminator

neovim 安装步骤

bash 安装最新版neovim >0.8.5
sudo apt install ripgrep # 可选 
wget -c https://github.com/neovim/neovim/releases/download/nightly/nvim.appimage -O ~/user_opt/nvim.appimage
chmod +x  ~/user_opt/nvim.appimage
# 在zshrc 或者 bashrc 中添加 一行 alias nvim='~/user_opt/nvim.appimage'
# 清理旧的配置文件和缓存
rm -rf ~/.cache/nvim ~/.local/share/nvim/ ~/.config/nvim  ~/.config/nvim-NvChad-custom
rm -rf ~/.config/LeiDotFile/nvim/NvChad ~/.config/LeiDotFile/nvim/NvChad-custom
bash 获取基于NvChad的配置文件
bash ~/tmp_LeiDotFile/bash.sh
cd ~/tmp_LeiDotFile/cache
echo "nvim" >  .git/info/sparse-checkout
git pull origin main:
# 复制到 ~/.config/LeiDotFile/
cp -r ./nvim ~/.config/LeiDotFile/nvim

ln -s ~/.config/LeiDotFile/nvim/NvChad ~/.config/nvim
ln -s  ~/.config/LeiDotFile/nvim/NvChad-custom ~/.config/nvim/lua/custom
# 科学环境手动运行一次 nvim 因为需要安装插件依赖 或者 直接拉取
nvim

About

zsh neovim kitty fonts fcitx5 可以单独启用其中一个

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published