This repository stores all the configurations I am using.
bash config for GNU/Linux user.
ln -sf "<path-to-project>/bash/bashrc" "$HOME/.bashrc"
ln -sf "<path-to-project>/bash/profile" "$HOME/.profile"
mkdir -p "$HOME/.local/share/bash"
ln -sf "<path-to-project>/bash/completions" "$HOME/.local/share/bash/completions"XDG environment configuration, some commonly used environment variables.
Gnome and KDE (maybe?) and Wayland environments with Systemd will load these environment variables.
ln -sf "<path-to-project>/environment.d" "$HOME/.config/environment.d"This is the configuration I used when I used nushell.
It has not been updated for a long time. If you are interested, you can update the configuration according to the configuration of zsh or bash.
ln -sf "<path-to-project>/nushell" "$HOME/.config/nushell"
# for macOS user
ln -sf "<path-to-project>/nushell" "$HOME/Library/Application Support/nushell"Some miscellaneous configurations.
unused.confis stored some unused but useful environment variables.
Highlighting configuration for nano or pico editor.
mkdir "$HOME/.config/nano"
cp "<path-to-project>/others/nano/nanorc" "$HOME/.config/nano/nanorc"
# for macOS user
# need modify config to macOS configure
nano ~/.config/nano/nanorcfastfetch configuration with simplified information.
ln -sf "<path-to-project>/others/fastfetch" "$HOME/.config/fastfetch"Some user configuration for systemd.
- nobeep.service, disable
pcspkrmodule for GNU/Linux. - nokbd.service, disable laptop keyboard by disabling
atkbdmodule for GNU/Linux. - rclone-onedrive.service, mount the OneDrive via rclone.
- pipewire-session-manager.serivce, configuration generated by pipewire.
nobeep and nokbd should change the password to YOUR password
ln -sf "<path-to-project>/others/systemd" "$HOME/.config/systemd"Instructions for configuring systemd-resolved.
git user-global configuration file.
# just copy and modify the content
# for example
mkdir -p "$HOME/.config/git"
cp "<path-to-project>/others/git.conf" "$HOME/.config/git/config"
nano "$HOME/.config/git/config"fontconfig user configuration.
It is recommended to configure it globally. You can change the font to what you want.
The font name can be checked using fc-list | grep <font-name>.
sudo ln -sf "<path-to-project>/others/local.conf" "/etc/fonts/local.conf"Configuration files for npm.
ln -sf "<path-to-project>/others/npmrc" "$HOME/.config/npmrc"Configuration files for NetworkManager.
# backup
# sudo cp "/etc/NetworkManager/NetworkManager.conf" "/etc/NetworkManager/NetworkManager.conf.bak"
sudo ln -sf "<path-to-project>/others/nm.conf" "/etc/NetworkManager/NetworkManager.conf"Configuration files for paru.
ln -sf "<path-to-project>/others/paru.conf" "$HOME/.config/paru.conf"there is a backup for R profile
options(repos=structure(c(CRAN="https://mirrors.ustc.edu.cn/CRAN/")))
# options("browser"="firefox")
options("browser"="microsoft-edge")
options("editor"="nano")
options("encoding"="utf8")Configuration files for ssh.
mkdir -p "$HOME/.ssh"
ln -sf "<path-to-project>/others/ssh.conf" "$HOME/.ssh/conf"sudo systemctl enable --now tlp
sudo ln -sf $PWD/others/tlp-bat.conf /etc/tlp.d/10-tlp-bat.conf
sudo systemctl try-reload-or-restart tlpConfiguration files for python, pip, and rye.
ln -sf "<path-to-project>/pip" "$HOME/.config/pip"If using Rye:
ln -sf "<path-to-project>/pip/rye-config.toml" "<path-to-rye>/config.toml"Configuration file for zsh.
ln -sf "<path-to-project>/zsh/zshenv" "$HOME/.zshenv"
mkdir -p "$HOME/.config/zsh"
ln -sf "<path-to-project>/zsh/zshrc" "$HOME/.config/zsh/.zshrc"
ln -sf "<path-to-project>/zsh/zfunc" "$HOME/.config/zsh/zfunc"Please check the configuration content before using it and modify it to your actual configuration. I will not be responsible for any problems.