Skip to content

Instantly share code, notes, and snippets.

@arthursvpb
Last active September 13, 2025 05:01
Show Gist options
  • Save arthursvpb/13ac7a451b112a17484fff5198f22053 to your computer and use it in GitHub Desktop.
Save arthursvpb/13ac7a451b112a17484fff5198f22053 to your computer and use it in GitHub Desktop.
My base .zshrc
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH
export ZSH="$HOME/.oh-my-zsh"
export DOCKER_BUILDKIT=1
ZSH_THEME="spaceship"
plugins=(
git
zsh-autosuggestions
zsh-completions
zsh-syntax-highlighting
)
fpath+=${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions/src
autoload -U compinit && compinit
source "$ZSH/oh-my-zsh.sh"
# Auto-start ssh-agent (silent)
if [ -z "$SSH_AUTH_SOCK" ]; then
eval "$(ssh-agent -s)" &>/dev/null
if [ -f ~/.ssh/id_1 ]; then
ssh-add ~/.ssh/id_1 &>/dev/null
fi
if [ -f ~/.ssh/id_2 ]; then
ssh-add ~/.ssh/id_2 &>/dev/null
fi
fi
# Homebrew
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
SPACESHIP_PROMPT_ORDER=(
user # Username section
dir # Current directory section
host # Hostname 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_SUFFIX=" 🐧 "
SPACESHIP_USER_SHOW=always
SPACESHIP_PROMPT_ADD_NEWLINE=false
SPACESHIP_CHAR_SYMBOL="❯"
SPACESHIP_CHAR_SUFFIX=" "
# Aliases
alias ghc="gh copilot"
alias python='python3'
alias free-ram='echo 1 | sudo tee /proc/sys/vm/drop_caches'
# NVM
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment