Hi! ( ͡° ͜ʖ ͡°)
I'm Daniel and I'm passionate about creating network services and network technologies. In short, I'm a Homelab nerd.
This Repository Dotfiles contain my personal config files. Here you'll find configs, customizations, themes, and whatever I need to personalize my Ubuntu WSL2 on Windows experience.
⚠️ Be aware, products can change over time. I do my best to keep up with the latest changes and releases, but please understand that this won’t always be the case.
I created them as free resources to be used in your specific use cases.
- A Nerd Font installed and enabled in your terminal (for example, try the AnonymicePro Nerd Font).
Ensure that ZSH is installed on your system.
sudo apt update
sudo apt install zsh
sudo dnf install zsh
chsh -s $(which zsh)
You may need to log out and log back in for the changes to take effect.
Install Oh My Zsh using curl:
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Download and install Starship:
sh -c "$(curl -fsSL https://starship.rs/install.sh)" --yes
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
EZA - A modern, maintained replacement for ls
Eza is available from deb.gierens.de. The GPG public key is in this repo under deb.asc.
First make sure you have the gpg
command, and otherwise install it via:
sudo apt update
sudo apt install -y gpg
Then install eza via:
sudo mkdir -p /etc/apt/keyrings
wget -qO- https://raw.githubusercontent.com/eza-community/eza/main/deb.asc | sudo gpg --dearmor -o /etc/apt/keyrings/gierens.gpg
echo "deb [signed-by=/etc/apt/keyrings/gierens.gpg] http://deb.gierens.de stable main" | sudo tee /etc/apt/sources.list.d/gierens.list
sudo chmod 644 /etc/apt/keyrings/gierens.gpg /etc/apt/sources.list.d/gierens.list
sudo apt update
sudo apt install -y eza
Fedora support is in the works. https://bugzilla.redhat.com/show_bug.cgi?id=2238264
Open the configuration file .zshrc
in an editor:
nano ~/.zshrc
Add configuration for Starship:
eval "$(starship init zsh)"
Add plugins to the list in the .zshrc
file:
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
Ensure that the initialization of zsh-syntax-highlighting
plugin is at the end of the .zshrc
file:
source ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
Clone my dotfiles repository from GitHub to the /tmp directory and apply the settings:
git clone https://github.com/haooxin/.dotfiles.git /tmp/dotfiles
Move all .dotfiles to your home directory.
Apply the changes by reloading the configuration file:
source ~/.zshrc
Check if all components are working properly:
- Open the terminal and see if Starship is displaying its prompt.
- Start typing commands to see suggestions from
zsh-autosuggestions
. - Check if the syntax is highlighted by
zsh-syntax-highlighting
.
As this is my personal Homelab documentation, I don't accept any contributions. But feel free to fork this repository and use it for your own documentation.