Skip to content

Instantly share code, notes, and snippets.

@JeyDi
Created February 27, 2023 22:36
Show Gist options
  • Select an option

  • Save JeyDi/e58446464c6b48eb66cf25b3bf831534 to your computer and use it in GitHub Desktop.

Select an option

Save JeyDi/e58446464c6b48eb66cf25b3bf831534 to your computer and use it in GitHub Desktop.
ZSH standard config
#### My personal zsh minimal standard config ####
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Configure language
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export POWERLEVEL9K_INSTANT_PROMPT=quiet
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="robbyrussell"
source $ZSH/oh-my-zsh.sh
source $HOME/.oh-my-zsh/custom/themes/powerlevel10k/powerlevel10k.zsh-theme
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
# Pyenv and poetry config
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
export PATH="$HOME/.poetry/bin:$PATH"
export PATH="$HOME/.local/share/pypoetry/venv/bin/poetry:$PATH"
eval "$(pyenv init --path)"
# User specific environment
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
export PATH
# Uncomment the following line to enable command auto-correction.
ENABLE_CORRECTION="true"
plugins=(
colored-man-pages
command-not-found
dotenv
docker
docker-compose
git
git-flow
kubectl
npm
python
poetry
pyenv
sublime
sudo
wd
)
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
alias ..="cd .."
alias ...="cd ../../"
alias .="cd ."
alias .p="cd -"
alias ds="docker ps -a"
alias dcu="docker-compose up --build -d"
alias dcs="docker-compose stop"
alias dcr="docker rm $(docker ps --filter status=exited -q)"
alias dcd="docker-compose down --volumes"
alias dpurge="docker system prune --all"
alias k="kubectl"
alias monitor="bashtop"
alias git-update="find . -type d -depth 1 -exec git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \;"
alias finder="open"
alias show="open"
alias ga="git add"
alias gc="git commit"
alias gpu="git push"
alias gpl="git pull"
alias python-project="cookiecutter https://github.com/PythonBiellaGroup/Bear"
alias dstore="find . -name ".DS_Store" -delete"
# python3 Alias
#alias python="python3"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment