Introduce a self-contained repo with an interactive install.sh that provisions zsh, oh-my-zsh, aliases, bat/yazi configs, docker shortcuts, and git-delta pager setup. Configs are adapted from dotfiles for SSH-only servers — no desktop or neovim dependencies. Installer supports --all, --update (git pull + re-run), and --uninstall with backup restore. Core packages include vim (default editor), yazi via apt, and idempotent apt installs with warnings for eza and git-delta when repos lack them.
12 lines
293 B
Plaintext
12 lines
293 B
Plaintext
gco() {
|
|
git checkout "$@"
|
|
}
|
|
# Enable git completion if available
|
|
if [ -f /usr/share/bash-completion/completions/git ]; then
|
|
. /usr/share/bash-completion/completions/git
|
|
fi
|
|
# Enable git branch completion for gc
|
|
if type __git_complete &>/dev/null; then
|
|
__git_complete gco _git_checkout
|
|
fi
|