Last active
September 11, 2024 12:25
-
-
Save joaogabriels/e0482112f70148f1879a0e60c0e45a51 to your computer and use it in GitHub Desktop.
my ohmyzsh config
This file contains 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
# My oh-my-zsh + Spaceship Prompt Configuration | |
# This configuration sets up your terminal using oh-my-zsh with the Spaceship Prompt theme, | |
# along with a few useful plugins and custom aliases for a better developer experience. | |
## Prerequisites | |
# 1. Install oh-my-zsh - a popular framework for managing your Zsh configuration. | |
# 2. Install Spaceship Prompt - a minimalistic, customizable Zsh prompt. | |
# 3. Ensure the required plugins (git, zsh-syntax-highlighting, zsh-autosuggestions) are installed. | |
## Configuration Details | |
# Zsh Path: Set the installation path for oh-my-zsh. | |
# Theme: This configuration uses the Spaceship Prompt theme. | |
# Prompt Customization: The order and appearance of the prompt elements are tailored for efficiency, displaying time, user, directory, git status, Docker, and more. | |
# Plugins: The plugins used enhance command-line productivity with syntax highlighting, auto-suggestions, and git integration. | |
# Aliases: Handy shortcuts for common Docker commands and Zsh configuration editing. | |
# Zsh Path | |
export ZSH="$HOME/.oh-my-zsh" | |
# Theme | |
ZSH_THEME="spaceship" | |
# Prompt Customization | |
SPACESHIP_PROMPT_ORDER=( | |
time | |
user | |
dir | |
host | |
git | |
docker | |
exec_time | |
jobs | |
exit_code | |
char | |
) | |
SPACESHIP_USER_SHOW=always | |
SPACESHIP_PROMPT_ADD_NEWLINE=true | |
SPACESHIP_CHAR_SYMBOL="❯" | |
SPACESHIP_CHAR_SUFFIX=" " | |
# Plugins | |
plugins=( | |
git | |
zsh-syntax-highlighting | |
zsh-autosuggestions | |
) | |
source $ZSH/oh-my-zsh.sh | |
# Aliases | |
alias zshconfig="vim ~/.zshrc" | |
alias dr="docker run" | |
alias de="docker exec" | |
alias dcu="docker compose up" | |
alias dcr="docker compose run" | |
alias dce="docker compose exec" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment