Last active
March 31, 2019 22:27
-
-
Save martinlaws/276511ad6ad4df521ee2af9130ff330d to your computer and use it in GitHub Desktop.
Martin's optimal zsh 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
# Lines configured by zsh-newuser-install | |
HISTFILE=~/.histfile | |
HISTSIZE=100000 | |
SAVEHIST=100000 | |
bindkey -v | |
# End of lines configured by zsh-newuser-install | |
# The following lines were added by compinstall | |
zstyle :compinstall filename '/Users/martin/.zshrc' | |
autoload -Uz compinit | |
compinit | |
# End of lines added by compinstall | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "/usr/local/opt/nvm/nvm.sh" ] && . "/usr/local/opt/nvm/nvm.sh" # This loads nvm | |
[ -s "/usr/local/opt/nvm/etc/bash_completion" ] && . "/usr/local/opt/nvm/etc/bash_completion" # This loads nvm bash_completion | |
# Set Spaceship ZSH as a prompt | |
autoload -U promptinit; promptinit | |
prompt spaceship | |
# spaceship-prompt configuration options | |
SPACESHIP_VI_MODE_SHOW=false | |
# Custom aliases | |
alias g="git" | |
alias gs="git status" | |
alias ga="git add ." | |
alias gc="git commit" | |
alias gd="git diff" | |
alias gl="git log" | |
alias gco="git checkout" | |
alias gcob="git checkout -b" | |
alias gcm="git commit -m" | |
alias gfap="git fetch -ap" | |
alias zshconfig="vi ~/.zshrc" | |
alias ll="ls -halG" | |
# Adding in zsh syntax highlighting | |
source /Users/martin/code/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | |
# Fixes pasting in zsh being unreadable | |
unset zle_bracketed_paste |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment