Change zsh theme

Custom theme is very minimal and has little info about your whereabouts
on the server. "bira" theme set as default.

Custom theme wasn't removed, just commented-out.
This commit is contained in:
2026-06-05 11:33:51 +02:00
parent 41a7eb370b
commit eda09583b5
3 changed files with 430 additions and 421 deletions

View File

@@ -18,12 +18,15 @@ cd ~/server_cli_tools
| # | Component | What it does | | # | Component | What it does |
|---|-----------|-------------| |---|-----------|-------------|
| 1 | **Core packages** | `vim`, `bat`, `eza`, `fzf`, `htop`, `tmux`, `zsh`, `ripgrep`, `fd-find`, `zoxide`, `git-delta` | | 1 | **Core packages** | `vim`, `bat`, `eza`, `fzf`, `htop`, `tmux`, `zsh`, `ripgrep`, `fd-find`, `zoxide`, `git-delta` |
| 2 | **Zsh + Oh-My-Zsh** | Shell, plugins (`zsh-autosuggestions`, `zsh-syntax-highlighting`, `z`), custom prompt theme | | 2 | **Zsh + Oh-My-Zsh** | Shell, plugins (`zsh-autosuggestions`, `zsh-syntax-highlighting`, `z`), `bira` prompt theme |
| 3 | **Aliases + tools** | General, git, and docker aliases with a self-documenting help system (`h`) | | 3 | **Aliases + tools** | General, git, and docker aliases with a self-documenting help system (`h`) |
| 4 | **Terminal configs** | `bat` theme (base16) | | 4 | **Terminal configs** | `bat` theme (base16) |
| 5 | **Docker** | `docker.io` via apt, service enabled, user added to `docker` group, management aliases | | 5 | **Docker** | `docker.io` via apt, service enabled, user added to `docker` group, management aliases |
| 6 | **Git config** | `git-delta` as pager with side-by-side diffs | | 6 | **Git config** | `git-delta` as pager with side-by-side diffs |
> **NOTE:** There's minimal custom theme in `<repo>/configs/zsh/zhann-elvis.zsh-theme`. To apply it toggle `ZSH_THEME` and uncomment sourcing it in `~/.zshrc` after install.
> For more themes, see [Oh-My-Zsh themes](https://github.com/ohmyzsh/ohmyzsh/wiki/themes).
## Alias highlights ## Alias highlights
Type `h` after installation to see all aliases with descriptions. Some highlights: Type `h` after installation to see all aliases with descriptions. Some highlights:
@@ -63,8 +66,7 @@ server_cli_tools/
custom_tools/ custom_tools/
backup_dotfiles.sh # backup conflicting dotfiles backup_dotfiles.sh # backup conflicting dotfiles
bat/config # bat theme bat/config # bat theme
zsh/zhann-elvis.zsh-theme # custom zsh prompt (git-aware) zshrc # .zshrc with oh-my-zsh, bira theme, plugins
zshrc # .zshrc with oh-my-zsh + plugins
``` ```
## Customization ## Customization

View File

@@ -2,7 +2,8 @@ export ZSH="$HOME/.oh-my-zsh"
export ALIASES="$HOME/.config/aliases" export ALIASES="$HOME/.config/aliases"
export CT_DIR="$HOME/.config/custom_tools" export CT_DIR="$HOME/.config/custom_tools"
export EDITOR="vim" export EDITOR="vim"
ZSH_THEME="" # ZSH_THEME=""
ZSH_THEME="bira"
DISABLE_AUTO_TITLE="true" DISABLE_AUTO_TITLE="true"
plugins=( plugins=(
git git
@@ -11,7 +12,7 @@ plugins=(
z z
) )
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
source $HOME/.config/zsh/zhann-elvis.zsh-theme # source $HOME/.config/zsh/zhann-elvis.zsh-theme
source $ALIASES/.aliases source $ALIASES/.aliases
autoload -Uz zcalc autoload -Uz zcalc
[ -f /usr/share/doc/fzf/examples/key-bindings.zsh ] && source /usr/share/doc/fzf/examples/key-bindings.zsh [ -f /usr/share/doc/fzf/examples/key-bindings.zsh ] && source /usr/share/doc/fzf/examples/key-bindings.zsh

View File

@@ -175,9 +175,9 @@ install_zsh() {
fi fi
# Theme # Theme
mkdir -p "$HOME/.config/zsh" # mkdir -p "$HOME/.config/zsh"
copy_config "$CONFIGS/zsh/zhann-elvis.zsh-theme" "$HOME/.config/zsh/zhann-elvis.zsh-theme" # copy_config "$CONFIGS/zsh/zhann-elvis.zsh-theme" "$HOME/.config/zsh/zhann-elvis.zsh-theme"
e_info " Installed zhann-elvis.zsh-theme" # e_info " Installed zhann-elvis.zsh-theme"
# .zshrc # .zshrc
copy_config "$CONFIGS/zshrc" "$HOME/.zshrc" copy_config "$CONFIGS/zshrc" "$HOME/.zshrc"
@@ -225,8 +225,8 @@ install_docker() {
apt_install docker.io apt_install docker.io
if command_exists systemctl; then if command_exists systemctl; then
sudo systemctl enable --now docker 2>/dev/null \ sudo systemctl enable --now docker 2>/dev/null ||
|| e_warn " Could not enable docker service — start manually: sudo systemctl start docker" e_warn " Could not enable docker service — start manually: sudo systemctl start docker"
fi fi
if id -nG "$USER" 2>/dev/null | grep -qw docker; then if id -nG "$USER" 2>/dev/null | grep -qw docker; then
@@ -288,7 +288,10 @@ uninstall() {
read -r confirm read -r confirm
case "$confirm" in case "$confirm" in
y | Y) ;; y | Y) ;;
*) echo "Aborted."; exit 0 ;; *)
echo "Aborted."
exit 0
;;
esac esac
local removed=() local removed=()
@@ -391,7 +394,7 @@ uninstall() {
COMPONENTS=( COMPONENTS=(
"Core packages (vim, bat, eza, fzf, htop, tmux, rg, fd, zoxide, delta)" "Core packages (vim, bat, eza, fzf, htop, tmux, rg, fd, zoxide, delta)"
"Zsh + Oh-My-Zsh (shell, plugins, theme)" "Zsh + Oh-My-Zsh (shell, plugins)"
"Aliases + custom tools" "Aliases + custom tools"
"Terminal configs (bat)" "Terminal configs (bat)"
"Docker (engine + aliases)" "Docker (engine + aliases)"
@@ -558,7 +561,10 @@ main() {
;; ;;
--update) --update)
e_info "Pulling latest changes..." e_info "Pulling latest changes..."
git -C "$SCRIPT_DIR" pull || { e_err "git pull failed"; exit 1; } git -C "$SCRIPT_DIR" pull || {
e_err "git pull failed"
exit 1
}
echo "" echo ""
check_os check_os
if [ "${2:-}" = "--all" ] || [ "${2:-}" = "-a" ]; then if [ "${2:-}" = "--all" ] || [ "${2:-}" = "-a" ]; then