Last active
November 11, 2019 06:50
-
-
Save rosnovsky/7a57c3bb4fc6b2f599918650fc98df3d to your computer and use it in GitHub Desktop.
My zsh & oh-my-zsh configuration 🔥
This file contains 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 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 | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
POWERLEVEL9K_MODE="nerdfont-complete" | |
ZSH_THEME="powerlevel9k/powerlevel9k" | |
# The following line sets auto-update period (in days). | |
export UPDATE_ZSH_DAYS=7 | |
# Command auto-correction. | |
ENABLE_CORRECTION="true" | |
# Display red dots whilst waiting for completion. | |
COMPLETION_WAITING_DOTS="true" | |
# Uncomment the following line if you want to disable marking untracked files | |
# under VCS as dirty. This makes repository status check for large repositories | |
# much, much faster. | |
DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=( | |
z brew common-aliases docker gitfast github node npm yarn osx web-search nvm zsh-autosuggestions zsh-syntax-highlighting) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
# Show context with remote sessions | |
if [[ -n $SSH_CONNECTION ]]; then | |
POWERLEVEL9K_CONTEXT_TEMPLATE="%n@`hostname -f`" | |
fi | |
# ssh | |
export SSH_KEY_PATH="~/.ssh/rsa_id" | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs) | |
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status ram battery time) | |
POWERLEVEL9K_TIME_FORMAT="%D{%m/%d %H:%M}" | |
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2 | |
POWERLEVEL9K_STATUS_VERBOSE=false | |
POWERLEVEL9K_HIDE_BRANCH_ICON=true | |
POWERLEVEL9K_PROMPT_ON_NEWLINE=true | |
POWERLEVEL9K_CUSTOM_WIFI_SIGNAL_BACKGROUND="gray" | |
POWERLEVEL9K_CUSTOM_WIFI_SIGNAL_FOREGROUND="yellow" | |
# Set personal aliases, overriding those provided by oh-my-zsh libs, | |
# plugins, and themes. Aliases can be placed here, though oh-my-zsh | |
# users are encouraged to define aliases within the ZSH_CUSTOM folder. | |
# For a full list of active aliases, run `alias`. | |
# | |
# Example aliases | |
alias zshconfig="code ~/.zshrc" | |
alias ohmyzsh="code ~/.oh-my-zsh" | |
alias zshreset="source ~/.zshrc" | |
alias yarnclean="rm -rf node_modules/ && yarn install" | |
alias npmclean="rm -rf node_modules/ && npm install" | |
alias ls="colorls --dark --sort-dirs --report" | |
alias lc="colorls --tree --dark" | |
alias mvnci="mvn clean install -DskipTests" | |
alias mvnrun="mvn spring-boot:run" | |
alias dcstop="cd ~/Source/devops/docker && docker-compose stop" | |
alias dcstart="cd ~/Source/devops/docker && docker-compose start" | |
alias dc="docker-compose" | |
alias weather="curl -3 http://wttr.in/98011" | |
alias python='python3' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment