Created
July 14, 2026 16:03
-
-
Save 17twenty/8c94d66d31f89904996608a317b09e71 to your computer and use it in GitHub Desktop.
Basic zshrc to make things nicer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Zsh Config | |
| # | |
| # Shorten 'ls' command with colors | |
| alias ls='ls -G' | |
| # Simple fast serve | |
| alias serve='python3 -m http.server 8000' | |
| export PATH="${PATH}:$(go env GOPATH)/bin" | |
| # Improve history | |
| HISTFILE=~/.zsh_history | |
| HISTSIZE=50000 # lines kept in memory | |
| SAVEHIST=50000 # lines saved to disk | |
| setopt SHARE_HISTORY # share across open terminals live | |
| setopt HIST_IGNORE_DUPS # don't record an entry that just ran | |
| setopt HIST_IGNORE_SPACE # ' command' with leading space isn't saved | |
| setopt HIST_VERIFY # expand !! etc. onto the line before running | |
| setopt EXTENDED_HISTORY # record timestamps | |
| # Enable Git Auto-Completion | |
| autoload -Uz compinit && compinit | |
| # Grab the VCS module and build prompt | |
| autoload -Uz vcs_info | |
| precmd() { vcs_info } | |
| zstyle ':vcs_info:git:*' formats ' (%b)' | |
| # Sexy up prompt | |
| setopt PROMPT_SUBST | |
| PROMPT='%(!.%F{red}.%F{green})%n@%m%f:%F{blue}%~%f%F{red}${vcs_info_msg_0_}%f $ ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment