-
Notifications
You must be signed in to change notification settings - Fork 80
Customize zsh and bash
You can switch between zsh and bash with the ML4W Welcome App.
Click on Installation Options and change your shell.
If you want to bring in additional configurations to the zsh settings you can create a file .zshrc_custom in your home directory.
For more complex changes try the following possibilities.
The .zshrc is loading the files from folder ~/.config/zshrc in the following order:
- 00-init
- 10-aliases
- 20-customization
- 30-autostart
You can inject a custom file into the loading order. If you want to inject a file after 20-customization, create a file 25-my-additions.
If you want to overwrite a shipped file, copy the file into the subfolder custom. That means if you want to add more plugins from oh-my-posh, copy the file 20-customization into the folder custom with the same file name and make your adjustments.
Your customization is protected from ML4W Updates.
The zsh configuration is based on oh-my-zsh to manage plugins and oh-my-posh to setup the promt. The following plugins are installed:
plugins=(
git
sudo
web-search
archlinux
zsh-autosuggestions
zsh-syntax-highlighting
fast-syntax-highlighting
copyfile
copybuffer
dirhistory
)
The keybinding for FZF key is CTRL + R for fuzzy history finder
The promt is based on oh-my-posh and the awesome configuration of the minimal but powerful zen promt by Dreams of Autonomy (https://youtu.be/9U8LCjuQzdc?si=wky5QoR16C26ErR3)
If you want to create your own custom theme save your configuration in ~/.config/ohmyposh and link it like
# -----------------------------------------------------
# oh-my-posh promt
# -----------------------------------------------------
# Custom Theme
eval "$(oh-my-posh init zsh --config $HOME/.config/ohmyposh/zen.toml)"
You can use any oh-my-posh compatible theme by activating the following line:
# Shipped Theme
eval "$(oh-my-posh init zsh --config /usr/share/oh-my-posh/themes/agnoster.omp.json)"
If you want to bring in additional configurations to the bash settings you can create a file .bashrc_custom in your home directory.
For more complex changes try the following possibilities.
The .bashrc is loading the files from folder ~/.config/bashrc in the following order:
- 00-init
- 10-aliases
- 20-customization
- 30-autostart
You can inject a custom file into the loading order. If you want to inject a file after 20-customization, create a file 25-my-additions.
If you want to overwrite a shipped file, copy the file into the subfolder custom.
Your customization is protected from ML4W Updates.
- Installation
- Update
- Uninstall
- Installation options
- Installation in a KVM Virtual Machine
- Protect your configuration and customize the installation
- Activate another ML4W Dotfiles installation
- Automate the installation and update
- Using the ML4W Dotfiles on other Distributions
- Hyprland and NVIDIA
- Switch SDL Videodriver between Wayland and X11