Last active
May 12, 2025 17:58
-
-
Save gustavofalcao1/220ea7bfb06b7ee5213302523af35823 to your computer and use it in GitHub Desktop.
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
# ============================== | |
# ☑️ ENVIRONMENT & PATHS | |
# ============================== | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" | |
[ -s "$NVM_DIR/bash_completion" ] && . "$NVM_DIR/bash_completion" | |
export ZSH="$HOME/.oh-my-zsh" | |
# ============================== | |
# 🌟 SPACESHIP THEME | |
# ============================== | |
ZSH_THEME="spaceship" | |
# ============================== | |
# 🛠️ PLUGINS | |
# ============================== | |
plugins=(git nvm) | |
# ============================== | |
# 📦 OH MY ZSH FRAMEWORK | |
# ============================== | |
source $ZSH/oh-my-zsh.sh | |
# ============================== | |
# ⚡ ALIASES | |
# ============================== | |
alias l='eza -lah --git --icons' | |
alias ls='eza --color=always --long --git --no-filesize --icons=always --no-time --no-user --no-permissions' | |
alias cat='batcat' | |
alias code='code-insiders' | |
alias py='python3' | |
alias gs='git status' | |
alias gc='git commit' | |
alias ga='git add' | |
alias gp='git push' | |
alias gl='git log --oneline --graph --decorate' | |
alias gco='git checkout' | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias back='cd -' | |
alias workspace='cd ~/workspace' | |
# ============================== | |
# ✨ SPACESHIP PROMPT | |
# ============================== | |
SPACESHIP_PROMPT_ORDER=( | |
user # Username section | |
dir # Current directory section | |
host # Hostname section | |
package # Package version | |
node # Node.js section | |
git # Git section (git_branch + git_status) | |
hg # Mercurial section (hg_branch + hg_status) | |
exec_time # Execution time | |
line_sep # Line break | |
jobs # Background jobs indicator | |
exit_code # Exit code section | |
char # Prompt character | |
) | |
SPACESHIP_USER_SHOW=always | |
SPACESHIP_PROMPT_ADD_NEWLINE=false | |
SPACESHIP_CHAR_SYMBOL="❯" | |
SPACESHIP_CHAR_SUFFIX=" " | |
### Added by Zinit's installer | |
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then | |
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f" | |
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit" | |
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \ | |
print -P "%F{33} %F{34}Installation successful.%f%b" || \ | |
print -P "%F{160} The clone has failed.%f%b" | |
fi | |
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh" | |
autoload -Uz _zinit | |
(( ${+_comps} )) && _comps[zinit]=_zinit | |
### End of Zinit's installer chunk | |
zinit light zdharma/fast-syntax-highlighting | |
zinit light zsh-users/zsh-autosuggestions | |
zinit light zsh-users/zsh-completions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment