#!/bin/bash # # Purpose : Hook MiniServer's shell setup (prompt, zoxide, fzf key bindings, # aliases and functions in shell/) into ~/.bashrc LINE='[[ -f "$HOME/.local/share/MiniServer/shell/bashrc" ]] && source "$HOME/.local/share/MiniServer/shell/bashrc"' if grep -qF "$LINE" ~/.bashrc 2>/dev/null; then echo "MiniServer shell setup already in .bashrc" else echo "$LINE" >> ~/.bashrc echo "MiniServer shell setup added to .bashrc" fi