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:
@@ -18,12 +18,15 @@ cd ~/server_cli_tools
|
||||
| # | Component | What it does |
|
||||
|---|-----------|-------------|
|
||||
| 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`) |
|
||||
| 4 | **Terminal configs** | `bat` theme (base16) |
|
||||
| 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 |
|
||||
|
||||
> **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
|
||||
|
||||
Type `h` after installation to see all aliases with descriptions. Some highlights:
|
||||
@@ -63,8 +66,7 @@ server_cli_tools/
|
||||
custom_tools/
|
||||
backup_dotfiles.sh # backup conflicting dotfiles
|
||||
bat/config # bat theme
|
||||
zsh/zhann-elvis.zsh-theme # custom zsh prompt (git-aware)
|
||||
zshrc # .zshrc with oh-my-zsh + plugins
|
||||
zshrc # .zshrc with oh-my-zsh, bira theme, plugins
|
||||
```
|
||||
|
||||
## Customization
|
||||
|
||||
@@ -2,7 +2,8 @@ export ZSH="$HOME/.oh-my-zsh"
|
||||
export ALIASES="$HOME/.config/aliases"
|
||||
export CT_DIR="$HOME/.config/custom_tools"
|
||||
export EDITOR="vim"
|
||||
ZSH_THEME=""
|
||||
# ZSH_THEME=""
|
||||
ZSH_THEME="bira"
|
||||
DISABLE_AUTO_TITLE="true"
|
||||
plugins=(
|
||||
git
|
||||
@@ -11,7 +12,7 @@ plugins=(
|
||||
z
|
||||
)
|
||||
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
|
||||
autoload -Uz zcalc
|
||||
[ -f /usr/share/doc/fzf/examples/key-bindings.zsh ] && source /usr/share/doc/fzf/examples/key-bindings.zsh
|
||||
|
||||
22
install.sh
22
install.sh
@@ -175,9 +175,9 @@ install_zsh() {
|
||||
fi
|
||||
|
||||
# Theme
|
||||
mkdir -p "$HOME/.config/zsh"
|
||||
copy_config "$CONFIGS/zsh/zhann-elvis.zsh-theme" "$HOME/.config/zsh/zhann-elvis.zsh-theme"
|
||||
e_info " Installed zhann-elvis.zsh-theme"
|
||||
# mkdir -p "$HOME/.config/zsh"
|
||||
# copy_config "$CONFIGS/zsh/zhann-elvis.zsh-theme" "$HOME/.config/zsh/zhann-elvis.zsh-theme"
|
||||
# e_info " Installed zhann-elvis.zsh-theme"
|
||||
|
||||
# .zshrc
|
||||
copy_config "$CONFIGS/zshrc" "$HOME/.zshrc"
|
||||
@@ -225,8 +225,8 @@ install_docker() {
|
||||
apt_install docker.io
|
||||
|
||||
if command_exists systemctl; then
|
||||
sudo systemctl enable --now docker 2>/dev/null \
|
||||
|| e_warn " Could not enable docker service — start manually: sudo systemctl start docker"
|
||||
sudo systemctl enable --now docker 2>/dev/null ||
|
||||
e_warn " Could not enable docker service — start manually: sudo systemctl start docker"
|
||||
fi
|
||||
|
||||
if id -nG "$USER" 2>/dev/null | grep -qw docker; then
|
||||
@@ -288,7 +288,10 @@ uninstall() {
|
||||
read -r confirm
|
||||
case "$confirm" in
|
||||
y | Y) ;;
|
||||
*) echo "Aborted."; exit 0 ;;
|
||||
*)
|
||||
echo "Aborted."
|
||||
exit 0
|
||||
;;
|
||||
esac
|
||||
|
||||
local removed=()
|
||||
@@ -391,7 +394,7 @@ uninstall() {
|
||||
|
||||
COMPONENTS=(
|
||||
"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"
|
||||
"Terminal configs (bat)"
|
||||
"Docker (engine + aliases)"
|
||||
@@ -558,7 +561,10 @@ main() {
|
||||
;;
|
||||
--update)
|
||||
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 ""
|
||||
check_os
|
||||
if [ "${2:-}" = "--all" ] || [ "${2:-}" = "-a" ]; then
|
||||
|
||||
Reference in New Issue
Block a user