Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
14 additions
and
67 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,79 +1,26 @@ | ||
#!/bin/zsh | ||
# Path to your oh-my-zsh configuration. | ||
ZSH=$HOME/.oh-my-zsh | ||
|
||
# ZSH config files by Philippe Mongeau | ||
# Set name of the theme to load. | ||
# Look in ~/.oh-my-zsh/themes/ | ||
# Optionally, if you set this to "random", it'll load a random theme each | ||
# time that oh-my-zsh is loaded. | ||
export ZSH_THEME="phmongeau" | ||
|
||
#----------------------------------------------------------------------------- | ||
# Zsh opts | ||
#----------------------------------------------------------------------------- | ||
autoload -U compinit | ||
compinit | ||
plugins=(osx git python brew pip history-substring-search) | ||
|
||
autoload -U promptinit | ||
promptinit | ||
source $ZSH/oh-my-zsh.sh | ||
|
||
setopt autolist | ||
setopt nolistbeep | ||
setopt menucomplete | ||
setopt completealiases | ||
|
||
zstyle ':completion:*' verbose yes | ||
zstyle ':completion:*:description' format '%B%d%b' | ||
zstyle ':completion:*:message' format '%d' | ||
zstyle ':completion:*:warnings' format 'No matches for: %d' | ||
#----------------------------------- | ||
fpath=(~/.zsh/zsh-completions $fpath) | ||
fpath=(~/.zsh/custom/completions $fpath) | ||
|
||
# vi mode | ||
set -o vi | ||
source ~/.oh-my-zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh | ||
|
||
# --- edit line in editor --- | ||
autoload -U edit-command-line | ||
zle -N edit-command-line | ||
bindkey '\C-x\C-e' edit-command-line | ||
bindkey -M vicmd v edit-command-line | ||
autoload zmv | ||
|
||
|
||
# Par | ||
PARINIT=rTbgqR\ B=.,\?_A_a\ Q=_s\>\| | ||
|
||
#----------------------------------------------------------------------------- | ||
# Source | ||
#----------------------------------------------------------------------------- | ||
|
||
# GIT PROMPT | ||
. ~/.zsh/git_prompt_rc | ||
|
||
# ENV VARS | ||
. ~/.zsh/env_vars_rc | ||
|
||
# PATH | ||
. ~/.zsh/path_rc | ||
|
||
# ALIASES | ||
. ~/.zsh/alias_rc | ||
|
||
# NOTES | ||
. ~/.zsh/notes | ||
|
||
# FUNCTIONS | ||
. ~/.zsh/general_functions | ||
|
||
# COMPLETIONS | ||
. ~/.zsh/completions | ||
|
||
# Z | ||
. `brew --prefix`/etc/profile.d/z.sh | ||
function precmd () { | ||
z --add "$(pwd -P)" | ||
} | ||
|
||
#----------------------------------------------------------------------------- | ||
# Plugins | ||
#----------------------------------------------------------------------------- | ||
|
||
# Syntax hiligth | ||
. ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh | ||
# HISTORY SEARCH | ||
. ~/.zsh/plugins/zsh-history-substring-search.zsh | ||
|
||
#----------------------------------------------------------------------------- | ||
# Other | ||
#----------------------------------------------------------------------------- |