Last active
May 11, 2023 16:28
-
-
Save diegocostares/bfe73eafb2d2b6c0cd932bb468c6ea52 to your computer and use it in GitHub Desktop.
My .zshrc config
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
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export ZSH="$HOME/.oh-my-zsh" | |
# ZSH THEME | |
ZSH_THEME="robbyrussell" | |
# configurate: p10k configure | |
ZSH_THEME="powerlevel10k/powerlevel10k" | |
# Uncomment the following line to enable command auto-correction. | |
ENABLE_CORRECTION="true" | |
# You can set one of the optional three formats: | |
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
HIST_STAMPS="dd.mm.yyyy" | |
# Would you like to use another custom folder than $ZSH/custom? | |
ZSH_CUSTOM=$HOME/.oh-my-zsh/custom | |
# git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions | |
# brew install autoenv | |
VSCODE=code | |
plugins=( | |
git | |
zsh-autosuggestions | |
copydir | |
emoji | |
history | |
vscode | |
osx | |
dotenv | |
docker | |
autoenv | |
git-tree-zsh | |
jsontools | |
pip | |
) | |
source $ZSH/oh-my-zsh.sh | |
# echo "source $(brew --prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme" >>~/.zshrc | |
source /opt/homebrew/opt/powerlevel10k/powerlevel10k.zsh-theme | |
# echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc | |
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
# You may need to manually set your language environment | |
LANG=es_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
# if [[ -n $SSH_CONNECTION ]]; then | |
# export EDITOR='vim' | |
# else | |
# export EDITOR='mvim' | |
# fi | |
# Compilation flags | |
ARCHFLAGS="-arch x86_64" | |
alias zshconfig="nano ~/.zshrc" | |
alias zshreload="source ~/.zshrc" | |
alias cdplugins="cd /Users/diegocosta/.oh-my-zsh/plugins" | |
alias cdgithub="cd /Users/diegocosta/Downloads/github" | |
alias portlist="lsof -i -P | grep LISTEN" | |
alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'" | |
alias dockerstop= 'docker stop $(docker ps -a -q)' | |
alias dockerlist='docker ps' | |
alias dockerkill='docker compose down --rmi all -v --remove-orphans' | |
alias dockerdelete='docker system prune -af' | |
# Aliases | |
alias del='echo Moving to ~/.Trash/ ...; mv -i $* ~/.Trash/' | |
alias ls='ls -FG' | |
alias dir='ls -FGl' | |
alias ll="ls -l" | |
# Safe options | |
alias rm='rm -i' | |
alias mv='mv -i' | |
alias cp='cp -i' | |
# cd, because typing the backslash sucks | |
alias .='cd ../' | |
alias ..='cd ../../' | |
alias ...='cd ../../../' | |
alias ....='cd ../../../../' | |
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | |
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment