|
# ============================================ |
|
# Minimal zsh Configuration |
|
# ============================================ |
|
|
|
# --- Basic zsh settings --- |
|
setopt AUTO_CD # Type directory name to cd into it |
|
setopt HIST_IGNORE_DUPS # Don't save duplicate commands in history |
|
setopt SHARE_HISTORY # Share history across all terminals |
|
HISTFILE=~/.zsh_history |
|
HISTSIZE=10000 |
|
SAVEHIST=10000 |
|
|
|
# --- Initialize Starship Prompt --- |
|
eval "$(starship init zsh)" |
|
|
|
# --- Syntax Highlighting --- |
|
if [ -f ~/.zsh-plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh ]; then |
|
source ~/.zsh-plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh |
|
fi |
|
|
|
# --- Git Command Shortcuts --- |
|
alias gs='git status' |
|
alias gf='git fetch' |
|
alias gc='git checkout' |
|
alias gl='git log --oneline' |
|
alias gup='git push -u origin' |
|
alias gu='git submodule update --init --recursive' |
|
alias gst='git stash' |
|
alias gst-export='git stash show stash@{0} -p > changes.patch' |
|
alias git-discard='git reset --hard @{u}' |
|
alias gwhere='git remote -v' |
|
|
|
# Git help - show all git aliases |
|
alias git-help='cat << "EOF" |
|
Git Aliases: |
|
--------------------------------------------------------------- |
|
gs git status |
|
gf git fetch |
|
gc git checkout |
|
gl git log --oneline |
|
gup git push -u origin (set upstream and push) |
|
gu git submodule update --init --recursive |
|
gst git stash |
|
gst-export git stash show stash@{0} -p > changes.patch |
|
git-discard git reset --hard @{u} (discard local changes) |
|
gwhere git remote -v (show remotes) |
|
--------------------------------------------------------------- |
|
EOF |
|
' |
|
|
|
# --- Load Turo Configuration --- |
|
# (includes NVM, SDKMAN, pyenv, tfenv, yarn - all lazy loaded) |
|
source "$HOME/.turorc" |
|
|
|
# --- Add local bin to PATH --- |
|
export PATH="$HOME/.local/bin:$PATH" |