Created
March 28, 2019 11:34
-
-
Save brownsmith/1dad89a3ebfcd3e2f76835f6c272617c to your computer and use it in GitHub Desktop.
zsh config
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="/Users/paulbrownsmith/.oh-my-zsh" | |
SPACESHIP_PROMPT_ORDER=( | |
battery # Battery level and status | |
dir # Current directory section | |
git # Git section (git_branch + git_status) | |
# node # Node.js section | |
exec_time # Execution time | |
exit_code | |
line_sep # Line break | |
vi_mode # Vi-mode indicator | |
jobs # Background jobs indicator | |
exit_code # Exit code section | |
char # Prompt character | |
) | |
# User Configuration | |
SPACESHIP_CHAR_SYMBOL=$'//→ ' | |
# Theme Options | |
SPACESHIP_BATTERY_THRESHOLD=34 | |
SPACESHIP_KUBECONTEXT_SHOW="${SPACESHIP_KUBECONTEXT_SHOW:=false}" | |
export UPDATE_ZSH_DAYS=28 | |
plugins=( | |
git git-extras zsh-nvm ssh-agent osx zsh-autosuggestions zsh-syntax-highlighting zsh-wakatime | |
) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
# https://draculatheme.com/iterm/ | |
# Set Spaceship ZSH as a prompt | |
autoload -U promptinit; promptinit | |
prompt spaceship | |
function blatdocker() { | |
docker system prune --all | |
docker stop $(docker ps -a -q) | |
docker rm -f $(docker ps -a -q) | |
docker rmi -f $(docker images -q) | |
} | |
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