Skip to content

Instantly share code, notes, and snippets.

@dreamorosi
Last active March 31, 2023 14:07
Show Gist options
  • Save dreamorosi/eb450712df6d2dc50b8dea55a6810eb9 to your computer and use it in GitHub Desktop.
Save dreamorosi/eb450712df6d2dc50b8dea55a6810eb9 to your computer and use it in GitHub Desktop.
.zshrc for remote boxes
fpath+=$HOME/.zsh/pure
# Theme
# Commented since pure is used https://github.com/sindresorhus/pure
# ZSH_THEME="refined"
ZSH_THEME=""
autoload -U promptinit; promptinit
prompt pure
# Case-sensitive completion.
CASE_SENSITIVE="true"
zstyle ':omz:update' mode auto # update automatically without asking
zstyle ':omz:update' frequency 7
ENABLE_CORRECTION="true"
COMPLETION_WAITING_DOTS="true"
plugins=(
git
aws
docker
gitignore
)
source /home/ec2-user/.oh-my-zsh/oh-my-zsh.sh
# User configuration
export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='nano'
else
export EDITOR='nano'
fi
# docker
# advanced completion, remove if docker plugin is removed.
zstyle ':completion:*:*:docker:*' option-stacking yes
zstyle ':completion:*:*:docker-*:*' option-stacking yes
# fnm
export PATH="/home/ec2-user/.local/share/fnm:$PATH"
eval "`fnm env`"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment