Last active
January 4, 2016 18:39
-
-
Save msmol/8662515 to your computer and use it in GitHub Desktop.
My .zshrc
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
#!/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