Skip to content

Repository files navigation

ZSH Setup & Custom Scripts

A complete zsh environment setup with Oh My Zsh, essential plugins, Powerlevel10k theme, and custom shortcuts.


Install

One-liner install:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Anmolnoor/scripts/main/setup.sh)"

Or clone and run:

git clone https://github.com/Anmolnoor/scripts.git ~/.scripts
~/.scripts/setup.sh

The setup will guide you step by step:

  1. Install Oh My Zsh
  2. Install plugins (autosuggestions, syntax-highlighting, etc.)
  3. Install Powerlevel10k theme with preset config
  4. Install MesloLGS NF fonts (required for Powerlevel10k icons)
  5. Ask if you want utility commands
  6. Ask if you want git shortcuts

Important: After installation, configure your terminal to use the MesloLGS NF font for proper icon display.

On a bash system?

Run this instead — it installs zsh, sets it as your default shell, then runs setup.sh:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Anmolnoor/scripts/main/setup_on_bash.sh)"

After it finishes, log out and back in (or run exec zsh) so your shell switches over.


Update

Check for updates and pull latest changes:

update-scripts

Or manually:

cd~/.scripts && git pull

Uninstall

To completely remove everything:

~/.scripts/uninstall.sh

Or run directly:

bash -c "$(curl -fsSL https://raw.githubusercontent.com/Anmolnoor/scripts/main/uninstall.sh)"

The uninstaller will:

  • Ask for feedback (help us improve!)
  • Show what will be removed
  • Clean your .zshrc (backup created)
  • Remove Oh My Zsh, plugins, Powerlevel10k theme + config, MesloLGS NF fonts, and the scripts directory

Plugins

Installed automatically by the setup script:

PluginDescription
zsh-autosuggestionsFish-like autosuggestions
zsh-syntax-highlightingSyntax highlighting for commands
fast-syntax-highlightingFaster syntax highlighting
zsh-autocompleteReal-time autocomplete
zsh-zQuick directory jumping

Commands

Utility Commands

CommandDescription
reloadReload .zshrc configuration
editrcOpen .zshrc in your default editor
update-scriptsCheck and update scripts from git
scripts-statusShow scripts version and status
chelpShow all utility commands

Git Shortcuts

CommandDescription
gsgit status
glPretty git log with graph
gdgit diff
gbList branches
gcogit checkout
gswgit switch
gcb "name"Create and switch to new branch
commit "msg"Stage all + commit with message
pushPush current branch to origin
pullPull current branch from origin
dropDiscard all uncommitted changes
uncommitUndo last commit, keep changes
dropcommitUndo last commit, discard changes

AI-Powered Commands

CommandDescription
sumGenerate AI commit summary
cwsCommit with AI summary (asks for confirmation)
cwspCommit with AI summary + push
ghelpShow all git shortcuts

Files

FileDescription
setup.shMain setup script (zsh)
setup_on_bash.shBootstrap for bash users — installs zsh, then runs setup.sh
uninstall.shComplete uninstaller
commands.zshUtility commands (reload, update, etc.)
git-shortcuts.zshGit shortcut commands
help.zshHelp command for git shortcuts
completions.zshZsh auto-completions
powerlevel10k/Powerlevel10k theme files directory
powerlevel10k/p10k.zshPowerlevel10k theme preset config
powerlevel10k/fonts/MesloLGS NF font files

About

Author:Anmol Noor

Built with:Claude (Anthropic's AI assistant)


License

MIT License - Feel free to use and modify.

About

Personal shell scripts & shortcuts for a consistent dev environment across machines.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages