Skip to content

Instantly share code, notes, and snippets.

@msmol
Last active January 4, 2016 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msmol/8662515 to your computer and use it in GitHub Desktop.
Save msmol/8662515 to your computer and use it in GitHub Desktop.
My .zshrc
#!/bin/zsh
# ZSH configuration
export HISTSIZE=2000
export HISTFILE="$HOME/.zsh_history"
export SAVEHIST=$HISTSIZE
setopt INC_APPEND_HISTORY
zstyle ':completion:*' rehash true
# ZSH prompt (colors and git branch)
setopt prompt_subst
autoload -Uz vcs_info
autoload -U colors && colors
zstyle ':vcs_info:*' actionformats '%F{yellow}[%b|%a]%f '
zstyle ':vcs_info:*' formats '%F{yellow}(%b) %c%u%f'
zstyle ':vcs_info:*' enable git
precmd () { vcs_info }
PROMPT='%F{green}%n@%m%F{blue}:%3~ ${vcs_info_msg_0_}%F{blue}%#%f '
# Aliases
alias ls="ls -F --color"
alias perm="stat -c %a"
alias google-chrome='google-chrome --user-agent="Mozilla/5.0 (Windows NT 6.2; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/32.0.1667.0 Safari/537.36"'
# IntelliJ Idea
export IDEA_HOME="$HOME/opt/idea"
export PATH=$PATH:$IDEA_HOME/bin
# PyCharm
export PYCHARM_HOME="$HOME/opt/pycharm"
export PATH=$PATH:$IDEA_HOME/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment