git clone --bare [email protected]:Zhniing/Dotfiles.git $HOME/Projects/Dotfiles.git
After the .zshrc
being sourced, you can interact with this bare repository
using git
directly when your working directory is $HOME
alias dit="git --git-dir=$HOME/Projects/Dotfiles.git --work-tree=$HOME"
dit config --local status.showUntrackedFiles no
dit checkout HEAD <FILE> # Restore the specific file
dit reset --hard HEAD # Restore all files
Resources:
ln -s .omz.zshrc .zshrc # Use Oh-My-Zsh
ln -s .grml.zshrc .zshrc # Use grml-zsh-config
git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
zsh-users/zsh-autosuggestions: Fish-like autosuggestions for zsh
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
zdharma-continuum/fast-syntax-highlighting: Feature-rich syntax highlighting for ZSH
git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting
Aloxaf/fzf-tab: Replace zsh's default completion selection menu with fzf!
git clone https://github.com/Aloxaf/fzf-tab ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-tab
junegunn/fzf-git.sh: bash and zsh key bindings for Git objects, powered by fzf
wget https://raw.githubusercontent.com/junegunn/fzf-git.sh/main/fzf-git.sh -O ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/fzf-git.zsh
-
Download Hack Nerd Font from the latest release
-
Unzip and move the
.ttf
files to$HOME/.local/share/fonts/
-
Check the installed fonts:
fc-list
git clone https://github.com/neovim/neovim.git
cd neovim
git checkout stable
sudo apt-get install ninja-build gettext cmake unzip curl
make CMAKE_BUILD_TYPE=RelWithDebInfo
sudo make install
Refer to Building Neovim
nvim_bin="/usr/local/bin/nvim"
sudo update-alternatives --install /usr/bin/vi vi "$nvim_bin" 50
sudo update-alternatives --install /usr/bin/vim vim "$nvim_bin" 50
sudo update-alternatives --install /usr/bin/editor editor "$nvim_bin" 50
:PackerSync
sudo apt install ranger # File manager
sudo apt install highlight # Syntax highlight when previewing
sudo apt install flameshot # Screenshot
sudo apt install sxhkd # Custom hotkey
sudo apt install picom # Compositor
sudo apt install rofi # Application launcher
sudo apt install betterlockscreen # Lockscreen
jstkdng/ueberzugpp: Drop in replacement for ueberzug written in C++
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install jstkdng/programs/ueberzugpp
ibraheemdev/modern-unix: A collection of modern/faster/saner alternatives to common unix commands.
junegunn/fzf: 🌸 A command-line fuzzy finder
sudo apt install fzf
ggreer/the_silver_searcher: A code-searching tool similar to ack, but faster.
sudo apt install silversearcher-ag
lsd-rs/lsd: The next gen ls command
sudo apt isntall lsd
sharkdp/bat: A cat(1) clone with wings.
sudo apt install bat
dandavison/delta: A syntax-highlighting pager for git, diff, and grep output
git config --global --add include.path "~/.config/delta.gitconfig"
ajeetdsouza/zoxide: A smarter cd command. Supports all major shells.
curl -sS https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash
dalance/procs: A modern replacement for ps written in Rust
muesli/duf: Disk Usage/Free Utility - a better 'df' alternative
sudo apt install duf
bootandy/dust: A more intuitive version of du in rust
Install tig
git clone [email protected]:jonas/tig.git
cd tig
sudo make install prefix=/usr/local
sudo make install-doc prefix=/usr/local # Install the docs
WPS honors screen DPI by default. However, export QT_SCALE_FACTOR=1.3
will
cause some UI issues. To disable the global scale for WPS, you may write
unset QT_SCALE_FACTOR
to /usr/bin/wps
. What's more, WPS can be scaled
with QT_FONT_DPI=240 wps